System Reliability and Availability Questions
Engineering systems to stay available and recover from failure. Covers redundancy, failover, graceful degradation, availability targets, and reliability trade-offs and safety. Includes SRE fundamentals and capacity-aware reliability design. Frames reliability as a property designed in, not bolted on.
A team relies on an unstable internal CI/CD system and no one owns it. As a Solutions Architect, build a concrete 3-month action plan to: (1) stabilize the system, (2) assign ownership, and (3) motivate teams to contribute improvements. Include quick wins, metrics for stability, and a proposal for ongoing governance.
Sample Answer
Situation summary: An internal CI/CD is unstable, lacks clear ownership, and teams are reluctant to invest effort. Goal: stabilize in 3 months, assign ownership, and create incentives for ongoing improvements.
30-day quick wins (Weeks 0–4)
- Triage & visibility (Days 0–7): Run a 48–72h focused incident audit, collect logs, pipeline failure patterns, and runbook gaps. Publish a one-page Health Dashboard (build success rate, avg build time, MTTR).
- Emergency fixes (Days 7–21): Apply low-risk patches: increase executor quota, clear backlog of flaky tests, pin failing tool versions, add circuit-breaker configs.
- Assign interim owner: Appoint a platform on-call engineer (rotating) to own incidents until permanent ownership is decided.
Month 2 (Weeks 5–8)
- Root-cause & stabilization projects: Fix top 3 failure classes (e.g., flaky tests, network timeouts, credential expiry). Automate retries where safe.
- Metrics & SLOs: Set target SLOs — pipeline success rate ≥ 95%, MTTR ≤ 30 minutes, median queue time < 5 minutes. Implement dashboards and alerts.
- Ownership model proposal: Present RACI — Platform Team = R (maintain infra), Tooling Guild = A/C (approve changes), App Teams = C/I (adopt conventions). Propose a dedicated Platform Team head.
Month 3 (Weeks 9–12)
- Harden & automate: Add pipeline caching, ephemeral workers, blue/green agent upgrades, and safety checks for breaking changes.
- Governance: Create a CI/CD Steering Committee (Platform Lead, 2 senior eng reps, SRE, Security, Product). Monthly roadmap, quarterly backlog, change approval board for infra-impacting changes.
- Handoff & SLA: Transition interim owner to permanent Platform Team; publish runbooks, on-call rota, and SLA commitments.
Motivating teams to contribute
- Reduce friction: Provide starter templates, linting, and one-click migration scripts.
- Rewards & recognition: Quarterly “Platform Contributor” rewards, highlight contributions in town-hall.
- Productize contributions: Offer credits—priority support or sprint capacity—for teams that submit reviewed improvements.
- Enablement: 2 half-day workshops and office hours for teams to migrate and contribute.
Success metrics (measure weekly + monthly)
- Pipeline success rate and trend
- Mean Time To Recovery (MTTR) for failing pipelines
- Number of teams adopting standard templates
- Time in queue and median build duration
- Count of platform-contributed PRs and closed improvement tickets
Trade-offs & risks
- Short-term fixes may mask deeper issues; reserve capacity for root-cause engineering.
- Ownership shift needs executive sponsorship to secure budget/headcount.
Why this works
- Quick wins buy trust and reduce noise.
- SLOs and dashboards provide objective measures.
- Clear RACI + steering committee institutionalize ownership.
- Incentives and enablement lower the cost for teams to contribute, creating a sustainable feedback loop.
Define RTO and RPO. As a Solutions Architect, how would you translate business requirements into appropriate RTO and RPO targets, and which architectural patterns do you consider to meet those targets?
Sample Answer
RTO (Recovery Time Objective) is the maximum acceptable time to restore a service after an outage. RPO (Recovery Point Objective) is the maximum acceptable age of data after recovery — how much data loss (time) is tolerable.
Translating business requirements into RTO/RPO:
- Start with targeted questions: What is the business impact per hour of downtime? Regulatory/data-retention constraints? Maximum acceptable data loss? Peak windows and RTO/RPO per service tier?
- Quantify: convert business impact into dollars, customer experience, or SLA levels and map to numeric RTO/RPO (e.g., critical payments: RTO ≤ 1 hour, RPO ≤ 5 minutes; analytics pipeline: RTO ≤ 24 hours, RPO ≤ 4 hours).
- Balance cost/complexity: present trade-offs and recommended SLAs to stakeholders and get sign-off.
Architectural patterns to meet targets (examples):
- Low RTO & low RPO (minutes/seconds): Active-active across availability zones or regions, synchronous or semi-sync replication, distributed databases with automatic failover, load balancers, health checks, infrastructure as code for instant reprovisioning.
- Low RTO, relaxed RPO: Asynchronous replication with automated failover, warm standby, read replicas promoted on failover.
- Relaxed RTO & RPO (hours/days): Backup-and-restore, snapshot-based periodic backups to cheaper storage, point-in-time recovery windows.
- Very low RPO (near-zero): Continuous replication / Change Data Capture (CDC), transaction logs shipping, or block-level replication.
- Cross-cutting: Immutable infrastructure, automated runbooks, DR playbooks, orchestration (Terraform, Ansible), runbook testing and regular DR drills, monitoring/alerting tied to SLAs.
Example mappings:
- Critical payments: RTO 30–60 min, RPO ≤ 1–5 min → multi-region active-active, synchronous/near-sync DB replication, automated failover.
- Internal reporting: RTO 24h, RPO 12h → daily snapshots + warm standby.
Always validate with cost estimates, compliance, and test DR regularly to ensure targets are achievable.
During contract negotiations the customer demands a 5-second RTO for a workflow across all regions, but the current architecture cannot meet it without prohibitive cost. How would you present alternative options, quantify trade-offs (cost, complexity, residual risk), and recommend a pragmatic plan that balances SLA obligations and long-term architecture improvements?
Sample Answer
Situation: In negotiations a customer requires a 5‑second RTO for a cross‑region workflow. Our current architecture cannot meet 5s without extremely high immediate cost (full active‑active synchronous replication across regions), so I needed to present viable alternatives, quantify trade‑offs, and recommend a pragmatic plan that meets business needs today while improving architecture over time.
Approach I’d take (summary):
- Clarify constraints and priorities: confirm whether RTO is for the entire workflow or critical path only, acceptable data loss (RPO), peak load, regulatory/penalty clauses, and budget/timeline.
- Present 4 concrete options with quantified trade‑offs.
- Recommend a pragmatic hybrid plan (short‑term SLA mitigation + roadmap to true 5s).
Options & trade‑offs (example numbers per month / effort):
A. Full synchronous active‑active (immediate 5s): Cost = +300% infra & networking; Complexity = very high (distributed transactions, global locks); Residual risk = low latency variability but operational risk high; Time to deliver = 6–12 months; Estimated monthly cost: $X → $4X.
B. Selective critical‑path optimization (near‑term): Identify critical workflows and implement regional warm standby with pre‑warmed containers, state checkpointing, and fast failover orchestration. Cost = +40–70%; Complexity = medium; Residual risk = moderate (edge cases); Time = 2–3 months; Estimated monthly cost: $X → $1.4–1.7X. Expected RTO achievable: 5–15s depending on warm state coverage.
C. Transaction de‑coupling + compensating actions: Make workflow idempotent, move non‑critical steps to async (eventual consistency), present user‑facing graceful degradation. Cost = +10–30%; Complexity = medium (code changes, testing); Residual risk = business inconsistency window; Time = 3–6 months; RTO: can be 5s for user‑facing part while backend converges.
D. SLA re‑scoping + financial/operational compensations: Negotiate 15–30s RTO with credits for breaches, use improved monitoring and runbooks. Cost = minimal; Complexity = low; Residual risk = higher business impact; Time = immediate.
How I’d quantify and present:
- Use a two‑axis table (Cost multiplier, Implementation time, Operational complexity score 1–5, Likely RTO range, Residual risk score 1–5).
- Provide sample TCO 3‑year projection for each option including engineering effort (FTE months) and run cost.
- Show sensitivity analysis: how RTO improves with added caching, pre‑warmed resources, or relaxed consistency.
- Include failure mode examples and probability estimates (based on historical incidents) to calculate expected annual downtime and expected penalty exposure under contract terms.
Recommendation (pragmatic plan):
Phase 1 (0–3 months): Implement Option B (selective critical‑path warm standby) + enhanced monitoring/automation. This reduces near‑term risk, keeps cost reasonable, and often brings RTO into the single‑digit to low‑double‑digit seconds for prioritized flows. Negotiate a temporary SLA addendum that ties final 5s commitment to Phase 2 milestones with interim targets and credits.
Phase 2 (3–12 months): Parallel engineering work to de‑couple transactions and implement idempotency/compensating actions (Option C) so user‑visible parts hit 5s reliably while backend converges.
Phase 3 (12+ months, conditional): If business justification remains, move to full active‑active or hybrid synchronous fabrics for remaining critical data sets (Option A), funded by a capital plan based on savings/ROI and measured reduction in penalties and business impact.
Why this balances needs:
- It aligns cost with business value: spend where it materially reduces penalties or revenue loss.
- Reduces residual risk quickly with moderate cost (Phase 1), while buying time to build a robust, maintainable architecture.
- Provides objective milestones to renegotiate final SLA and avoid overengineering.
Deliverables I'd present to the customer:
- Short two‑page executive summary with recommendation and risks
- Detailed trade‑off table & TCO model
- Implementation roadmap with milestones, success metrics (measured RTO percentiles), and rollback/runbook
- Contract amendment language for interim SLA and acceptance criteria
This shows a pragmatic, measurable path to 5s that balances cost, complexity, and risk, while keeping the customer engaged with clear milestones.
You inherit a critical production service with no automated tests, flaky CI, and frequent incidents. As the technical owner, propose a 90-day stabilization roadmap with specific deliverables, milestones, responsible owners, and metrics that will reduce incidents and improve deploy confidence.
Sample Answer
Situation: I’m the technical owner of a critical production service with no automated tests, flaky CI, and frequent incidents. Goal: reduce incidents and restore deploy confidence in 90 days.
90-day roadmap (by week) with deliverables, owners, and metrics:
Weeks 0–2 — Assess & stabilize
- Deliverables: incident backlog, high-risk list (top 10 failure modes), temporary error budget cap, access & runbook audit.
- Owners: Solutions Architect (me) + Eng Manager, On-call lead.
- Milestone: prioritized remediation list and immediate mitigations deployed.
- Metrics: baseline MTTR, MTTA, incident rate (weekly).
Weeks 3–5 — Observability & SLOs
- Deliverables: instrument missing metrics, structured logs, traces, dashboards, set 2–3 SLOs/SLO-based alerting.
- Owners: SRE/Platform Engineer (+me for architecture).
- Milestone: Alerts tuned to SLOs; false-positive rate <20%.
- Metrics: alert noise (alerts/incident), alert-to-incident ratio, SLI accuracy.
Weeks 6–10 — CI/CD & Test automation
- Deliverables: stabilize CI (upgrade runners, parallelization), flakiness report, introduce gated pipeline: unit + integration smoke + e2e smoke, add baseline test coverage target (e.g., 60% critical paths).
- Owners: CI Owner / Build Engineer, QA Lead.
- Milestone: CI flakiness down by 70%; pipeline success rate >95%.
- Metrics: CI failure causes (infrastructure vs tests), flaky-test rate, build time, pipeline pass rate.
Weeks 11–13 — Deployment safety & runbooks
- Deliverables: implement canary deployments + automated rollback, runbooks for top 10 incidents, postmortem template + 72-hour SLA for postmortems.
- Owners: Release Engineer, SRE, On-call lead.
- Milestone: All deployments use canary; rollbacks automated.
- Metrics: change-failure rate, deployment frequency, time-to-rollback.
Weeks 14 (buffer)/Ongoing — Measure, iterate, handoff
- Deliverables: metrics dashboard, quarterly roadmap for improvements, knowledge transfer to product/eng.
- Owners: Eng Manager + me.
- Milestone: Handoff and steady-state ops with weekly review cadence.
- Metrics target by day 90:
- Reduce incident rate by 50%
- MTTR down 40%
- CI flakiness down 70%
- Deployment confidence: 95% pipeline pass; automated rollback success.
Why this approach: prioritize visibility and quick mitigations, then harden pipeline and tests, finally add deployment safety and process. Trade-offs: early work focuses on ops/observability for fastest incident reduction; test investment follows to prevent regressions. This plan balances technical fixes, process, and ownership so customers see measurable reliability improvements within 90 days.
You must choose between two resilience strategies: (A) synchronous multi-master replication across regions (high cost), or (B) asynchronous replication with conflict-resolution and near-zero downtime reconciliation (lower cost). Analyze operational implications, failure modes, complexity, and how you'd present and justify a recommendation to executives.
Sample Answer
Clarify requirements first: required RPO/RTO, consistency SLAs (strong vs eventual), transactional workload vs read-heavy, regulatory/data‑sovereignty needs, budget, and acceptable operational overhead. With that context, compare the two options.
Option A — Synchronous multi-master (high cost)
- Operational implications: provides strong consistency and immediate cross-region failover; simpler correctness model for app developers.
- Failure modes: higher latency on writes during network partitions; risk of global unavailability if consensus cannot be reached; write amplification and throughput limits.
- Complexity: complex distributed consensus protocols (Paxos/Raft variants) and latency engineering; significant infra and networking cost; predictable but expensive capacity planning.
- Observability & ops: must invest in global latency monitoring, distributed tracing, and automated leader-election/runbooks.
Option B — Asynchronous replication + conflict-resolution (lower cost)
- Operational implications: lower cost, better write latency locally, higher availability under partitions, but eventual consistency requires app-level or DB-layer conflict resolution.
- Failure modes: divergence windows, complex reconciliation leading to subtle data corruption or user-facing anomalies if rules are wrong; longer reconciliation windows under prolonged outages.
- Complexity: implementation of deterministic conflict-resolution (CRDTs, last-writer-wins with causal metadata, or domain-specific compensating transactions); thorough testing harness needed; more developer discipline.
- Observability & ops: need reconciliation dashboards, conflict metrics, explainable audit trails, and safe backout procedures.
Recommendation and exec-facing justification:
- If business requires strong consistency for core revenue flows (finance, inventory, contracts) choose Option A despite higher cost — it reduces business risk and simplifies compliance. Present this as “cost to prevent” vs “cost of failure”: quantify potential revenue loss, compliance fines, and customer trust impact from stale/conflicting data.
- If workload is read-heavy, geo-local writes are common, and the business can tolerate eventual consistency for most domains, choose Option B for cost savings and better regional performance, while isolating critical domains into synchronous replicas.
- Proposal structure for executives:
- Decision criteria: list RPO/RTO, consistency needs, regulatory constraints, cost threshold.
- Quantified comparison: TCO (capex/opex), estimated latency impacts, projected downtime risk, and incident cost scenarios.
- Hybrid approach: mandate synchronous for critical bounded contexts and asynchronous for others; phased rollout with pilot region.
- Risk mitigation: testing plan (chaos experiments), monitoring KPIs, runbooks, SLA contracts.
- Recommendation and next steps: pilot timeline, budget delta, and success metrics (conflict rate, reconciliation time, user-impact incidents).
This balances technical trade-offs with business risk and gives a pragmatic path (hybrid + pilot) that executives can approve.
Unlock Full Question Bank
Get access to all 9 System Reliability and Availability interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.