ArchitectMind
  1. Home
  2. Java Ecosystem
  3. Book 9 · Cloud, Containers, DevOps & Production Architecture
  4. Volume V
  5. Development + Operations
Book 9 · Volume V — CI/CD & DevOps Architecture · Topic 1.2

Development + Operations

Shared ownership of building and running software

11 min readStage 4 · Production & architecture10 interview questions
Chapter
Chapter 1 — DevOps Fundamentals
Prerequisites
Topic 1.1
You will be able to
Design team structures where development and operations share ownership, apply SRE practices such as SLOs and error budgets, set up sustainable on-call and incident management, run production-readiness reviews, align incentives and metrics, and choose production access models
Covers
Development + operations
On this page
  1. 1. Concept / Definition
  2. 2. Why It Exists
  3. 3. Core Concepts — Development + Operations
  4. 4. How It Works Internally — On-Call and Incidents
  5. 4A. Deep Dive — Production Readiness Review (PRR)
  6. 4B. Deep Dive — Operating Model Evolution at ShopNow
  7. 4C. Deep Dive — Production Access Models
  8. 5. APIs / Features / Syntax
  9. 6. Practical Examples
  10. 7. Common Problems & Mistakes
  11. 8. Performance & Production Considerations
  12. 9. Architecture & Design Considerations
  13. 10. Interview Questions & Answers

1Concept / Definition

Development + Operations describes the organisational integration at the heart of DevOps: the people who build software also share responsibility for running it, supported by platform and reliability specialists. Instead of developers optimising for change and operators for stability, both optimise for customer outcomes measured by shared metrics such as SLOs.

Silos vs shared ownership
Figure 1 — Silos vs shared ownership
Team interaction models
Figure 2 — Team interaction models
VocabularyMeaning
SRESite reliability engineering
SLOService level objective
Error budgetAllowed unreliability (1 − SLO)
ToilManual, repetitive operational work
Table 1 — Terms

2Why It Exists

Silo symptomIntegrated model
Changes blocked by opsTeams deploy themselves with guardrails
Poor operability (no metrics, logs)Builders feel operational pain → fix it
Slow incident resolutionExperts on-call for their code
BlameShared outcomes
Table 2 — Why

3Core Concepts — Development + Operations

Team type (Team Topologies)Responsibility
Stream-alignedBuild and run a business service
PlatformSelf-service infrastructure and tooling
EnablingCoach practices (SRE, security, testing)
Complicated subsystemSpecialist components (payments core, ML)
Table 3 — Team types
SRE practiceImplementation
SLOs per user journeyCheckout 99.95% success, p99 < 400 ms
Error budget policyBudget exhausted → reliability work prioritised
Toil cap< 50% of SRE time
PostmortemsBlameless, tracked actions
Table 4 — SRE practices
Error budget policy
Figure 3 — Error budget policy

4How It Works Internally — On-Call and Incidents

ElementShopNow design
RotationWeekly primary/secondary per team (≥ 6 people)
PagingSLO burn-rate alerts only; everything else tickets
EscalationTeam → platform/SRE → incident commander
Incident rolesCommander, communications, operations lead, scribe
CompensationOn-call allowance + time off after night pages
Load target≤ 2 pages per on-call week
Table 5 — On-call model

4ADeep Dive — Production Readiness Review (PRR)

AreaChecks before tier-0/1 launch
ObservabilityRED metrics, traces, dashboards, SLOs
AlertingBurn-rate alerts, runbooks linked
ResilienceTimeouts, retries, circuit breakers, multi-AZ
CapacityLoad test, HPA limits, dependencies' limits
DeploymentsCanary, rollback tested
SecurityThreat model, scans clean
OwnershipOn-call rota, escalation, catalog entry
Table 6 — Readiness is a shared checklist

4BDeep Dive — Operating Model Evolution at ShopNow

StageModelProblem
1Dev teams + central opsSlow deploys, finger-pointing
2"DevOps team" does deploymentsNew bottleneck
3Teams own deploys, ops on-callOps paged for dev issues
4 (now)Teams on-call for services; platform + SRE enable; shared SLOsBalanced
Table 7 — Getting to shared ownership

4CDeep Dive — Production Access Models

ModelAccessUse
No human accessPipelines/GitOps onlyDefault for prod changes
Read-only observabilityDashboards, logs, tracesAll engineers
JIT elevatedTime-bound, approved, recordedIncidents
Break-glassEmergency adminRare, audited
Table 8 — Ownership without standing privilege

5APIs / Features / Syntax

YAML
# SLO definition (as code) for checkout success rate
apiVersion: openslo/v1
kind: SLO
metadata: { name: checkout-availability }
spec:
  service: checkout
  indicator:
    metadata: { name: checkout-success-ratio }
    spec:
      ratioMetric:
        good:
          metricSource:
            type: Prometheus
            spec:
              query: >-
                sum(rate(http_server_requests_seconds_count{
                  app="checkout",status!~"5.."}[5m]))
        total:
          metricSource:
            type: Prometheus
            spec:
              query: sum(rate(http_server_requests_seconds_count{app="checkout"}[5m]))
  timeWindow: [{ duration: 28d, isRolling: true }]
  objectives: [{ target: 0.9995 }]
YAML
# Error budget policy (team agreement stored with service docs)
policy:
  slo: checkout-availability
  when_budget_remaining_below: 25%
  actions:
    - require_canary_analysis_for_all_changes
    - pause_non_critical_feature_releases
  when_budget_exhausted:
    - feature_freeze_until_budget_recovers
    - top_postmortem_actions_prioritised
BASH
# Runbook automation: SSM Automation document for a common mitigation
aws ssm start-automation-execution --document-name "ShopNow-ScaleCheckout" \
  --parameters "Replicas=120,Reason=INC-2291"

6Practical Examples

6.1 Operability improved by ownership

After teams went on-call, they added structured logs, trace IDs and dashboards within weeks — pages went from 11 to 2 per week because noisy alerts were fixed by those who felt them.

6.2 Error budget freeze

Checkout exhausted its error budget after two incidents; the team paused features for two weeks to fix connection pool issues. The next quarter had zero budget burns.

6.3 PRR caught missing limits

A new loyalty service's PRR found no timeouts on a partner API; adding them prevented cascading failure during a partner outage later.

6.4 Worked example — SLO selection

JourneySLISLO
BrowseLatency p99 < 300 ms99.9%
CheckoutSuccess ratio99.95%
Order historyAvailability99.5%
Table 9 — SLOs per user journey

6.5 Worked example — alert classes

ClassRoute
SLO fast burnPage
SLO slow burnTicket
Resource warningsDashboard only
Table 10 — Page on symptoms

6.6 Worked example — toil inventory

ToilAutomation
Manual certificate renewalscert-manager
Scaling for salesScheduled pre-scaling
Restarting stuck consumersLiveness + self-healing
Table 11 — Eliminate toil

6.7 Worked example — interview whiteboard

PromptAnswer outline
"How should development and operations be organised?""Stream-aligned teams build and run their services (on-call, SLOs, dashboards) using a platform team's paved roads; enabling SRE/security teams coach; SLOs per journey with error budget policies balancing speed and reliability; sustainable on-call (≥ 6 per rotation, burn-rate paging, runbooks, compensation); PRRs before launch; blameless incident process; production access via pipelines, read-only observability, JIT elevation."
Table 12 — Structured answer

6.8 Worked example — PayGrid model

ElementDetail
Central SRE for cellsDeep expertise
Service teams own CDE servicesWith dual-approval deploys
Table 13 — Hybrid for complex platforms

6.9 Worked example — anti-patterns

Anti-patternEffect
On-call without authority to fixBurnout
Paging on CPU thresholdsAlert fatigue
Ops as change gatekeeperSlow delivery
No compensation for on-callAttrition
Table 14 — Common mistakes

6.10 Worked example — incident communication

ChannelAudience
Incident Slack channelResponders
Status pageCustomers
Exec summaryLeadership
Table 15 — Structured comms

6.11 Worked example — handoffs

PracticeDetail
On-call handoff notesOpen issues, risks
Table 16 — Continuity

6.12 Worked example — shared metrics

MetricOwner
SLO attainmentTeam + SRE
Deploy frequencyTeam
Platform SLOsPlatform
Table 17 — Aligned incentives

6.13 Worked example — embedded vs central SRE

ModelProsCons
EmbeddedContextSpread thin
CentralConsistencyDistance
Hybrid (ShopNow)SRE enabling team + consultations—
Table 18 — Choose by scale

6.14 Worked example — game days

ExerciseLearning
AZ failureRunbooks, capacity
Dependency slowdownTimeouts, fallbacks
Table 19 — Practice incidents

6.15 Worked example — runbook quality

CriterionExample
Linked from alertYes
Steps tested in last quarterYes
Table 20 — Usable at 3 a.m.

6.16 Worked example — interview follow-ups

Follow-upAnswer
"What if error budget is exhausted?"Prioritise reliability; slow feature releases
"Who is on-call for the platform?"Platform/SRE team
Table 21 — Common probes

6.17 Worked example — checklist

Item✔
Teams own services end to end✔
SLOs + error budgets✔
Sustainable on-call✔
PRRs✔
Blameless incidents✔
JIT production access✔
Table 22 — Operating model baseline

6.18 Worked example — on-call load metric

MetricTarget
Pages per week≤ 2
Night pages per month≤ 1
Table 23 — Sustainability

6.19 Worked example — knowledge sharing

PracticeDetail
Monthly incident review forumCross-team learning
Table 24 — Sharing (CALMS)

6.20 Worked example — hiring and skills

SkillDevelopment
Observability, incident responseTraining, shadowing
Table 25 — Invest in operational skills

6.21 Worked example — interview scenario

QuestionAnswer
"Developers refuse on-call"Fix alert quality, runbooks, platform support, fair compensation; start with business hours
Table 26 — Make ownership humane

6.22 Worked example — incident severity levels

SevDefinitionResponse
SEV1Checkout down / data riskIC + exec comms, 5 min
SEV2Degraded tier-0IC, 15 min
SEV3Minor, workaroundTeam, business hours
Table 27 — Shared language for incidents

6.23 Worked example — postmortem action tracking

MetricTarget
Actions closed within 30 days> 80%
Table 28 — Learning must lead to change

6.24 Worked example — service ownership in catalog

FieldUse
owner team, on-call schedule, runbookRouting during incidents
Table 29 — Ownership must be discoverable

6.25 Worked example — dev-ops shared rituals

RitualPurpose
Weekly ops review per teamSLOs, alerts, toil
Monthly reliability review (org)Trends, cross-team issues
Table 30 — Operations as part of development cadence

6.26 Worked example — capacity planning ownership

ActivityOwner
Load tests before salesService teams
Cluster capacityPlatform
Table 31 — Shared, explicit responsibilities

7Common Problems & Mistakes

MistakeFix
Pager without platformPaved roads first
Noisy alertsSLO-based paging
Gatekeeping opsGuardrails + automation
BlameBlameless reviews
Table 32 — Mistakes and fixes

The model fails most often when ownership is handed over without the means to exercise it. Putting developers on call before there is a platform, good observability and runbooks simply moves the pain, so build paved roads first. Noisy, cause-based alerts follow close behind: CPU thresholds and single pod restarts page people for things users never notice, and teams quickly learn to ignore the pager. Another mistake is keeping operations as a gatekeeper that approves changes by hand, which slows delivery without making it safer; replace approval queues with automated guardrails, canaries and policy checks. Finally, blame in incident reviews teaches people to hide mistakes, so run blameless postmortems focused on system causes and track their actions to completion.

8Performance & Production Considerations

ConsiderationPractice
Incident MTTRRunbooks, automation
BurnoutOn-call limits
Reliability vs speedError budgets
Table 33 — Operating the model

Measure the operating model like any production system. Mean time to restore depends less on heroics than on preparation: runbooks linked from alerts, one-click mitigations, clear severity levels and practised incident roles. Track on-call health per team, including pages per week, night pages and the share of pages that needed no action, and treat breaches as work to prioritise, because burnout is an availability risk that eventually shows up as attrition. Track SLO attainment next to deployment frequency, so gains in speed cannot hide falling reliability. Postmortem actions need owners and deadlines; ShopNow targets more than 80% closed within 30 days. Review these numbers in weekly team ops reviews and a monthly organisation-wide reliability review.

9Architecture & Design Considerations

GuidelineDetail
Operability as a requirementPRR
SLOs drive designResilience patterns
Access via automationSafety
Table 34 — Design guidance

10Interview Questions & Answers

Q1L1 · BasicConcept

What does "you build it, you run it" mean?

It means the team that builds a service also operates it in production: it deploys it, is on call for it, watches its dashboards and SLOs, handles its incidents and fixes their causes. The phrase comes from Werner Vogels at Amazon. The point is the feedback loop. When builders feel the pain of noisy alerts, missing logs or fragile deployments, they fix them quickly, which is why ShopNow's pages fell from 11 to 2 a week after teams went on call. It only works with support: a platform team providing paved roads, SRE coaching, good tooling and the authority to change what hurts. Without that, it simply moves the pager to another desk.

Q2L1 · BasicConcept

What is an SLO?

An SLO, or service level objective, is a target for how reliable a service should be, measured through a service level indicator over a time window. The SLI is a ratio of good events to total events, such as successful checkout requests or requests served in under 400 milliseconds, and the SLO sets the target, for example 99.95% success over 28 days. SLOs should reflect what users experience on a journey, not internal resource metrics. They differ from SLAs, which are contractual promises with penalties and are usually looser. ShopNow defines SLOs per journey as code in OpenSLO format: browse at 99.9%, checkout at 99.95% and order history at 99.5%.

Q3L2 · IntermediateConcept

What is an error budget?

An error budget is the amount of unreliability an SLO allows: one minus the SLO over the window. A 99.95% success SLO over 28 days permits 0.05% of requests to fail, roughly 20 minutes of full-outage equivalent. The budget turns reliability into a shared, measurable resource. While budget remains, teams can ship quickly and take reasonable risks; when it runs low, the agreed error budget policy slows change. At ShopNow, below 25% remaining every change needs canary analysis and non-critical releases pause, and an exhausted budget triggers a feature freeze until it recovers. Checkout used this after two incidents, fixed its connection pool problems and had no budget burn the next quarter.

Q4L2 · IntermediateConcept

What team types exist in Team Topologies?

Team Topologies, by Matthew Skelton and Manuel Pais, defines four team types. Stream-aligned teams own a flow of business value, such as checkout, and build and run their services end to end; most teams should be of this type. Platform teams provide self-service infrastructure, paved roads and tooling that reduce the cognitive load on stream-aligned teams. Enabling teams, such as SRE or security specialists, coach other teams in new practices and then step back rather than doing the work for them. Complicated-subsystem teams own components that need deep specialist knowledge, like a payments core or an ML model. The book also defines three interaction modes: collaboration, X-as-a-service and facilitating.

Q5L3 · Senior EngineerTricky

What should trigger a page?

A page should fire only for user-impacting symptoms that need a human now, typically a fast SLO burn rate, such as consuming 2% of the monthly error budget within an hour. Slower burns become tickets for working hours. Cause-based alerts, such as high CPU, memory or disk, or a single pod restart, should not page: they often do not hurt users, they fire constantly in elastic systems, and they train people to ignore the pager. Keep them on dashboards for diagnosis. Every paging alert needs an owner, a linked runbook and a clear action. ShopNow targets no more than two pages per on-call week and treats a page with no action as a defect.

Q6L3 · Senior EngineerConcept

What is a production readiness review?

A production readiness review is a structured check, before a service launches or takes tier-0 or tier-1 traffic, that it can be operated safely. It uses a shared checklist: observability, with RED metrics, traces, dashboards and SLOs; alerting, with burn-rate alerts and linked runbooks; resilience, with timeouts, retries, circuit breakers and multi-AZ deployment; capacity, through load tests and dependency limits; deployment, with canaries and tested rollback; security, with a threat model and clean scans; and ownership, with an on-call rota and catalog entry. It is a collaboration with SRE, not a gate run by a separate ops team. ShopNow's review once caught a missing partner API timeout that later prevented a cascade.

Q7L4 · Technical ArchitectDesign

How do you make on-call sustainable?

Treat on-call as a system with measurable load. Rotations need enough people, at least six, so each person is on call about one week in six, with primary and secondary roles. Alert quality matters most: page only on SLO burn, delete or downgrade alerts that need no action, and review every page weekly. Each alert links to a tested runbook, and recurring mitigations become automation, such as SSM documents or self-healing. Compensate fairly with an allowance and time off after night pages. Set targets, such as two pages a week and one night page a month, and give teams the authority and platform support to fix whatever keeps waking them.

Q8L4 · Technical ArchitectDesign

How should humans access production?

By default, humans should not change production directly. Changes flow through pipelines and GitOps, where they are reviewed, tested and audited. Every engineer gets read-only observability, meaning dashboards, logs and traces with sensitive data masked. When an incident needs more, use just-in-time elevation that is time-bound, approved and recorded, for example a one-hour role granted through an access tool with the session logged. Break-glass admin access exists for emergencies, but it is rare, alarmed and reviewed afterwards. This gives teams the ownership they need without standing privilege, which limits both accidental damage and the impact of stolen credentials, and satisfies auditors in regulated systems such as PayGrid's.

Q9L5 · Solution ArchitectTricky

Why did "DevOps teams" fail?

Because many organisations renamed their operations team, or created a new team called DevOps, and gave it deployments and pipelines, which recreated a silo between the people who write code and the people who run it. Developers still threw changes over the wall, just to a different team, and that team became the new bottleneck; ShopNow went through exactly this at stage two of its evolution. DevOps is a way of working, not a job title or a team. Ownership must sit with stream-aligned product teams who build and run their services, supported by a platform team offering self-service tooling and enabling SRE who coach. Shared SLOs and DORA metrics keep incentives aligned.

Q10L5 · Solution ArchitectTrade-off

How do you balance speed and reliability?

Make the trade-off explicit with SLOs and an error budget policy agreed with the business, instead of arguing it release by release. Product owners and engineering agree what reliability users need on each journey and what happens when the budget is spent. Within budget, teams ship as fast as they like, using canaries, feature flags and automated rollback to keep each change's risk small. As budget runs low, changes need more verification; when it is exhausted, feature work pauses for reliability fixes. This removes the old conflict in which developers wanted speed and operations wanted stability. Speed and reliability also reinforce each other: small, frequent, reversible changes are safer than large, rare releases.

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.