ArchitectMind
  1. Home
  2. Java Ecosystem
  3. Book 10 · Security, System Design & Solution Architecture
  4. Volume VII
  5. Architecture & Operations
Book 10 · Volume VII — Solution Architecture Delivery & Governance · Topic 1.4

Architecture & Operations

Designing systems to be run — SLOs, failure modes, readiness and learning from production

10 min readStage 4 · Production & architecture10 interview questions
Chapter
Chapter 1 — Architecture in Software Delivery
Prerequisites
Topics 1.1–1.3; Volume V Topic 5.5
You will be able to
Treat operability as a first-class quality attribute, set SLOs and design degraded modes, analyse failure modes during design, run production readiness with operations, design on-call and runbooks, and turn incidents into architectural improvements
Covers
Architecture & operations
On this page
  1. 1. Concept / Definition
  2. 2. Why It Exists
  3. 3. Core Concepts — Operability Attributes
  4. 4. How It Works Internally — Designing Failure Modes
  5. 4A. Deep Dive — SLOs as Architecture Inputs
  6. 4B. Deep Dive — Production Readiness With Operations
  7. 4C. Deep Dive — Incident Feedback Into Architecture
  8. 4D. Deep Dive — On-Call and Runbooks
  9. 4E. Deep Dive — Operational Metrics for Architects
  10. 4F. Deep Dive — Blameless Post-Incident Reviews
  11. 5. APIs / Features / Syntax
  12. 6. Practical Examples
  13. 7. Common Problems & Mistakes
  14. 8. Performance & Production Considerations
  15. 9. Architecture & Design Considerations
  16. 10. Interview Questions & Answers

1Concept / Definition

Architecture and operations are joined by a simple fact: every architectural decision is eventually tested in production. Architects therefore design for operability — the ease with which a system can be observed, deployed, diagnosed, scaled and recovered — set SLOs and degraded modes as design inputs, involve operations (SRE, support) from the first design review, and close the loop by feeding incident learning back into architecture.

Architecture ↔ operations loop
Figure 1 — Architecture ↔ operations loop
Operability requirements per component
Figure 2 — Operability requirements per component
VocabularyMeaning
SLO / error budgetTarget reliability and the allowed unreliability
Degraded modeReduced functionality that keeps core journeys working
PRRProduction readiness review
ToilManual, repetitive operational work
MTTRMean time to restore service
Table 1 — Terms

2Why It Exists

Ops as afterthoughtConsequence
No SLOsNo shared definition of "good"
No degraded modesDependency failure = outage
Observability bolted onLong diagnosis
Local incident fixesSame failure elsewhere
Table 2 — Why

3Core Concepts — Operability Attributes

AttributeDesign means
ObservabilityOTel traces, structured logs, RED/USE metrics, business metrics
DeployabilitySmall, independent deploys; flags; automated rollback
RecoverabilityIdempotency, replay, backups tested, DR runbooks
DiagnosabilityCorrelation IDs, error taxonomy, health endpoints
ScalabilityStateless services, autoscaling signals
Cost awarenessUnit cost metrics, budgets
Table 3 — Operability as quality attribute

4How It Works Internally — Designing Failure Modes

DependencyFailureDesigned response
Mainframe PASBatch overrun, slowRead model; FNOL accepts with "policy check pending"
fraud-svcDown or slowRules-only fallback; async re-score
Document OCRThrottledQueue, deferred OCR, user notified
Payments gatewayErrorsHold + retry; secondary gateway
MSKBroker lossMulti-AZ; outbox buffers
Table 4 — Failure-mode table from design review

4ADeep Dive — SLOs as Architecture Inputs

SLOArchitectural consequence
FNOL 99.95%Multi-AZ, no synchronous dependency on PAS
FNOL p95 400 msAsync fraud; local read models
Docs processed ≤ 5 min at 20× surgeQueue-based, autoscaled workers
Error budget policyBudget exhausted → reliability work prioritised
Table 5 — Targets shape structure

4BDeep Dive — Production Readiness With Operations

PRR areaEvidence
ObservabilityDashboards, alerts tied to SLOs
ResilienceChaos/game day results
CapacityLoad test at 1.5× peak
DeploymentRollback tested
RunbooksTop failure modes covered
On-callRota, escalation, training
Table 6 — Readiness is joint work (Volume V 5.5)

4CDeep Dive — Incident Feedback Into Architecture

Incident root causes (12 months)
Figure 3 — Incident root causes (12 months)
Pattern foundArchitectural fix
9 incidents from missing timeoutsResilience defaults in golden path; ArchUnit check for clients without timeouts
8 from config/deploymentProgressive delivery, config validation in CI
6 capacity assumptionsLoad-test enablers per epic; autoscaling standards
4 schema changesSchema registry compatibility; expand/contract migrations
Table 7 — Fix the class, not just the instance

4DDeep Dive — On-Call and Runbooks

PracticeDetail
Team owns on-call for its servicesIncentive for operability
Runbooks per alertWhat, why, how to diagnose, how to mitigate
Escalation pathsPlatform, vendors, architect for systemic issues
Toil budget≤ 30% of SRE time; automate above
Table 8 — Humans in the loop designed too

4EDeep Dive — Operational Metrics for Architects

MetricUse
Incidents by root cause categoryArchitectural patterns to fix
MTTRDiagnosability
Change failure rateDeployability
Error budget burnReliability priorities
Toil hoursAutomation candidates
Cost per claimEfficiency
Table 9 — Architects read ops dashboards

4FDeep Dive — Blameless Post-Incident Reviews

SectionArchitect's contribution
TimelineUnderstand system behaviour
Contributing factorsIdentify design weaknesses
What went wellValidate patterns (e.g., fallback worked)
ActionsClassify: local fix vs architectural change
Follow-upADRs, fitness functions, standards updates
Table 10 — Learning without blame

5APIs / Features / Syntax

YAML
# SLO definition (OpenSLO style) — FNOL submission availability
apiVersion: openslo/v1
kind: SLO
metadata: { name: fnol-submit-availability }
spec:
  service: claims-fnol
  indicator:
    ratioMetric:
      good:
        metricSource:
          spec:
            query: >-
              sum(rate(http_server_requests_seconds_count{uri="/fnol",status!~"5.."}[5m]))
      total:
        metricSource:
          spec:
            query: >-
              sum(rate(http_server_requests_seconds_count{uri="/fnol"}[5m]))
  objectives: [{ target: 0.9995 }]
  timeWindow: [{ duration: 28d, isRolling: true }]
JAVA
// Degraded mode: "policy check pending" when the PAS read model is unavailable
public FnolAcceptance accept(FnolRequest r) {
    PolicyStatus status = policyPort.findCached(r.policyNumber())
        .map(PolicyStatus::from)
        .orElse(PolicyStatus.CHECK_PENDING);  // don't fail FNOL on PAS problems
    return fnolService.register(r, status);
}
CODEMARKDOWN
## Runbook: FNOL error rate high (alert: fnol-slo-burn-fast)
1. Check dashboard "FNOL overview": which dependency shows errors?
2. If PAS read model lag > 10 min → confirm CHECK_PENDING path active; notify Policy IT.
3. If DB connections saturated → scale claims-core (HPA max 30); check slow queries.
4. If recent deploy → roll back via Argo CD (app: claims-core, previous revision).
Escalate: #claims-oncall → platform on-call → solution architect (systemic).

6Practical Examples

6.1 Claims 360 failure modes

Design reviews with SRE produced a failure-mode table per dependency; when the mainframe batch overran during cyclone season, FNOL continued with "policy check pending" and no outage was declared.

6.2 Timeouts as a pattern

Nine incidents traced to missing timeouts led to resilience defaults in the golden path and a CI check; timeout-related incidents dropped to zero the following two quarters.

6.3 NovaBank ops at go-live

Operations first saw the new payments platform two weeks before launch; missing runbooks delayed go-live by a month. Later programmes included SRE from the first design review.

6.4 Worked example — SLO consequence

99.95% FNOLNo sync PAS dependency
Table 11 — Design input

6.5 Worked example — degraded mode

CHECK_PENDINGFNOL keeps working
Table 12 — Resilience

6.6 Worked example — pattern fix

TimeoutsGolden path default
Table 13 — Learning

6.7 Worked example — interview whiteboard

PromptAnswer outline
"How do you make sure your architecture works well in operations?""Operability as quality attribute: observability, deployability, recoverability, diagnosability, scalability, cost. SRE in design reviews from day one; SLOs and error budgets as design inputs; failure-mode table per dependency with degraded modes. PRR with evidence (dashboards, chaos, load, rollback, runbooks, on-call). Teams own on-call. Blameless PIRs; classify incident actions as local vs architectural; fix classes via golden paths, standards, fitness functions, ADRs. Watch incidents by root cause, MTTR, CFR, burn, toil, cost."
Table 14 — Structured answer

6.8 Worked example — error budget policy

Budget exhaustedReliability work first
Table 15 — Governance

6.9 Worked example — anti-patterns

Anti-patternEffect
Over the wallUnrunnable systems
Ops at go-liveDelays
Local fixes onlyRepeats
Table 16 — Common mistakes

6.10 Worked example — runbook

Per alertDiagnose + mitigate
Table 17 — Operations

6.11 Worked example — toil budget

≤ 30%Automate rest
Table 18 — SRE

6.12 Worked example — game day

PAS outage simulatedDegraded mode verified
Table 19 — Evidence

6.13 Worked example — schema incidents

Registry compatibilityPrevention
Table 20 — Pattern fix

6.14 Worked example — cost per claim

TrackedEfficiency
Table 21 — Metric

6.15 Worked example — MTTR

3 h → 40 minDiagnosability
Table 22 — Metric

6.16 Worked example — interview follow-ups

Follow-upAnswer
"Who runs the services?"Teams that build them, with SRE support
"How use incidents?"Fix the class architecturally
Table 23 — Common probes

6.17 Worked example — checklist

Item✔
SLOs per service✔
Failure-mode table✔
Degraded modes✔
PRR✔
Runbooks + on-call✔
PIR feedback✔
Table 24 — Ops baseline

6.18 Worked example — service catalogue

Owner, tier, dependenciesIncident routing
Table 25 — Ownership

6.19 Worked example — config validation

CI checksFewer config incidents
Table 26 — Pattern fix

6.20 Worked example — escalation to architect

Systemic issuesDefined path
Table 27 — Process

6.21 Worked example — interview scenario

QuestionAnswer
"Same outage type thrice"Architectural fix + fitness function
Table 28 — Apply

6.22 Worked example — capacity enabler

Load test per epicPrevention
Table 29 — Backlog

6.23 Worked example — business metrics

Claims registered/minEarly anomaly signal
Table 30 — Observability

6.24 Worked example — deployment rollback

Argo CD revisionMinutes
Table 31 — Deployability

6.25 Worked example — PIR actions

Local vs architecturalClassified
Table 32 — Learning

6.26 Worked example — deliverables

DeliverableOwner
SLOs, failure modes, PRR, runbooks, incident learning backlogArchitect + SRE
Table 33 — Outputs

7Common Problems & Mistakes

MistakeFix
Late ops involvementDay one
No degraded modesFailure-mode design
Missing runbooksPer alert
No learning loopClassify actions
Table 34 — Mistakes and fixes

Most operational pain is designed in long before the first incident. The classic pattern is throwing the system over the wall: a project team builds it, operations sees it two weeks before go-live, and missing runbooks, dashboards and capacity tests push launch back, as happened with NovaBank's payments platform. Dependencies without timeouts or degraded modes turn a slow mainframe or fraud vendor into a full outage of the journeys that call it. Observability added at the end produces logs without correlation IDs and metrics that do not map to user journeys, so diagnosis takes hours. Finally, post-incident actions are often purely local, so a missing timeout is fixed in one client while the same class of failure waits in twenty other services.

8Performance & Production Considerations

ConsiderationPractice
SLO burn alertsMulti-window
CapacityLoad-tested
CostUnit metrics
Table 35 — In operation

Alert on SLOs, not on every metric. Multi-window, multi-burn-rate alerts page on-call only when the error budget is being consumed fast enough to matter, for example two percent of a 28-day budget in an hour, and raise a ticket for slow burns, which cuts noise and missed incidents at the same time. Capacity must be load-tested at about one and a half times the expected peak, with autoscaling limits and database connection pools sized for that figure rather than for averages. Watch unit cost, such as cost per claim registered, alongside reliability, because some resilience choices, like multi-region replicas, are expensive and should be justified by tier. Keep runbooks next to the alerts they serve and test them during game days, so they still match the system.

9Architecture & Design Considerations

GuidelineDetail
Operability first-classRunnable
Design failureResilience
Learn from productionImprovement
Table 36 — Design guidance

10Interview Questions & Answers

Q1L1 · BasicConcept

What is operability?

Operability is how easily a system can be observed, deployed, diagnosed, scaled and recovered by the people who run it. It is a quality attribute like performance or security, so it has to be designed in rather than added at go-live. In practice that means OpenTelemetry traces, structured logs and RED metrics tied to user journeys; small, independent deployments with automated rollback; idempotent operations and tested backups for recovery; correlation IDs and a clear error taxonomy for diagnosis; stateless services with good autoscaling signals; and unit cost metrics. A highly operable system lets an on-call engineer at three in the morning understand what is failing and restore service within minutes.

Q2L1 · BasicConcept

What is an SLO?

A service level objective is a target for a service level indicator that users care about, measured over a time window, such as 99.95 percent of FNOL submissions succeeding over a rolling 28 days or p95 latency below 400 milliseconds. The SLI is the measurement, typically good events divided by valid events; the SLO is the target; and the error budget is what remains, here about twenty minutes of failure in 28 days. SLOs give product, engineering and operations a shared definition of good enough. They should describe user journeys, not servers, and should be deliberately below one hundred percent, because perfect reliability is neither achievable nor worth the cost.

Q3L2 · IntermediateDesign

How do SLOs influence architecture?

SLOs are design inputs because they decide redundancy, dependencies, caching and synchronous versus asynchronous choices. Claims 360's 99.95 percent FNOL availability ruled out any synchronous call to the mainframe policy system, since its availability was lower, so FNOL reads from a local read model and accepts claims with policy check pending when it is stale. The 400-millisecond p95 target pushed fraud scoring onto asynchronous events. Processing documents within five minutes at a twenty-fold surge required queue-based, autoscaled workers. Availability targets also set multi-AZ or multi-region deployment. Work backwards from the SLO: the end-to-end chain cannot be more reliable than the product of its synchronous dependencies.

Q4L2 · IntermediateDesign

What is a degraded mode?

A degraded mode is a planned, reduced level of functionality that keeps the core user journey working when a dependency fails, instead of failing the whole request. Designing one starts with a failure-mode table per dependency: what fails, how it shows up and what the system does instead. In Claims 360, a slow mainframe policy system means FNOL is accepted with policy check pending; a fraud service outage falls back to rules-only scoring with asynchronous re-scoring; OCR throttling queues documents and notifies the user; and payment gateway errors hold the payment and retry, with a secondary gateway available. Each degraded mode needs an alert, a runbook and a game-day test.

Q5L3 · Senior EngineerConcept

What does a PRR check?

A production readiness review checks with evidence, not promises, that a service can be run safely before it takes real traffic. Observability means dashboards and alerts tied to SLOs. Resilience means chaos experiments and game-day results for the top failure modes. Capacity means a load test at around one and a half times expected peak. Deployment means rollback tested, ideally automated through Argo CD or similar. Runbooks must cover the top failure modes and every paging alert. On-call must have a rota, escalation path and trained engineers. Operations and SRE take part as reviewers. Gaps become tracked actions, and serious ones block launch until fixed.

Q6L3 · Senior EngineerTrade-off

Who should run services?

The teams that build services should run them, with SRE and platform teams providing tooling, standards and expertise. When the same squad is on call for what it builds, operability becomes its own incentive: noisy alerts, missing runbooks and fragile dependencies wake up the people who can fix them. Ownership should be visible in a service catalogue with owner, tier and dependencies, so incidents are routed correctly. SRE engages most deeply with tier-one services, runs reviews and guards the error budget policy, while platform teams provide golden paths. A separate operations team running everything works only for very stable systems and tends to slow change and diffuse accountability.

Q7L4 · Technical ArchitectScenario

How turn incidents into architecture changes?

Classify every post-incident action as either a local fix or an architectural change, then fix recurring classes of failure at the architecture level. Review incidents by root cause category quarterly to find patterns. At Claims 360, nine incidents traced to missing timeouts led to resilience defaults in the golden path and an ArchUnit check that fails CI for clients without timeouts, and timeout incidents dropped to zero for two quarters. Eight configuration incidents led to progressive delivery and config validation in CI, and four schema incidents to schema registry compatibility rules and expand-and-contract migrations. Record each change in an ADR or standard, and add a fitness function so it stays fixed.

Q8L4 · Technical ArchitectConcept

What operational metrics matter to architects?

Architects should watch metrics that show whether the architecture is helping or hurting in production. Incidents by root cause category reveal repeated design weaknesses. Mean time to restore reflects diagnosability; Claims 360 cut it from three hours to forty minutes once tracing and correlation IDs were in place. Change failure rate reflects deployability and test quality. Error budget burn shows where reliability work should take priority. Toil hours highlight manual operational work worth automating, with SRE toil kept below thirty percent. Unit cost, such as cost per claim, shows efficiency as volumes grow. Reviewed together quarterly, these turn production experience into architectural priorities and an improvement backlog.

Q9L5 · Solution ArchitectBehavioural

When should operations be involved?

Operations should be involved from the first design review, not two weeks before go-live. Early involvement lets SRE challenge dependencies, shape SLOs and failure modes, and request the observability and runbooks they will need while changes are still cheap. NovaBank learned this the hard way: operations first saw the new payments platform shortly before launch, missing runbooks delayed go-live by a month, and later programmes included SRE from day one. Beyond design, operations should review capacity plans, take part in game days and production readiness reviews, and feed incident learning back into architecture. Treat them as a stakeholder with veto power on readiness, not as a downstream recipient.

Q10L5 · Solution ArchitectConcept

What is an error budget policy?

An error budget policy is a pre-agreed set of rules for what happens when a service consumes its allowed unreliability. While budget remains, teams ship features at full speed and can take reasonable risks. When the budget is exhausted, for example more than about twenty minutes of FNOL failures in 28 days at 99.95 percent, the policy shifts priority to reliability: feature releases pause or slow, the next sprint focuses on the top causes, and risky changes need extra review. Exceptions such as security fixes are allowed. The value is that the trade-off between speed and stability is decided in advance by product and engineering together, not argued during every incident.

Test your knowledge on this topic →Flashcards from this topic's 10 questions, filtered by level and type.

Free question pack

Get 100 free Core Java interview questions

Subscribe for the Book 1 question pack (PDF, every answer explained) and new tutorials once a week. No spam, unsubscribe anytime. What is in the pack?

Almost done! Check your inbox and click the confirmation link. Your download link arrives as soon as you confirm.