Comprehensive Interview Preparation Guide: Site Reliability Engineer (Senior Level) at Airbnb
Airbnb's SRE interview process for senior-level candidates follows a structured pipeline designed to evaluate technical depth, system thinking, and cultural fit. The process begins with a recruiter screening to assess background and motivation, followed by a technical phone screen covering coding and foundational system design. Candidates who advance proceed to an on-site engineering loop consisting of 4-5 rounds that evaluate distributed systems knowledge, infrastructure design expertise, coding proficiency in automation and scripting, complex system design thinking, and behavioral alignment with Airbnb's core values including 'Belong Anywhere' and collaborative problem-solving.
Interview Rounds
Recruiter Screening
What to Expect
The initial recruiter screening is a 20-30 minute conversation designed to validate your background, assess communication skills, and evaluate cultural fit. The recruiter will explore your technical experience, years in SRE and related roles, your familiarity with infrastructure technologies, and your motivation for joining Airbnb specifically. For a senior-level candidate, recruiters pay close attention to your ability to articulate complex technical concepts clearly, your experience mentoring others, and how well you understand Airbnb's mission around global belonging and hospitality. This round also serves as an opportunity to ask clarifying questions about the role, team structure, and expected responsibilities. Strong performance here means demonstrating confidence, clarity about your background, genuine interest in Airbnb's challenges, and alignment with the company's values.
Tips & Advice
Be concise and structured in your responses; recruiters appreciate candidates who can explain technical complexity simply. Research Airbnb's recent infrastructure challenges (payments, real-time availability, global scale) and mention specific reasons why you want to solve those problems. Emphasize your senior-level experience: mention teams you've built or influenced, large incidents you've led postmortems on, and technical decisions that had broad impact. Ask thoughtful questions about the team's current reliability goals and measurement practices. Show enthusiasm for Airbnb's mission, not just the technical work.
Focus Topics
Leadership & Mentorship Experience
For a senior-level role, clearly articulate your experience mentoring junior engineers, influencing team practices, and taking ownership of significant projects. Share examples of times you've led incident postmortems, championed reliability improvements, or built systems that improved team efficiency. Discuss how you've contributed to team growth and knowledge sharing.
Practice Interview
Study Questions
Motivation for Airbnb & Role Understanding
Articulate specific reasons why you want to work at Airbnb as an SRE, beyond generic statements like 'it's a great company.' Reference Airbnb's specific technical challenges (global marketplace reliability, payment systems, search availability), the company's impact on the travel industry, or Airbnb's approach to infrastructure and reliability. Demonstrate that you understand what the SRE role at Airbnb entails.
Practice Interview
Study Questions
Airbnb Values Alignment (Belong Anywhere & Collaboration)
Understand and be able to discuss Airbnb's core values, particularly 'Belong Anywhere,' which emphasizes global connectivity and inclusion. Prepare examples from your career where you've fostered collaborative environments, helped teams work across boundaries, or championed practices that improved team effectiveness. Discuss how you approach mentoring and supporting other engineers.
Practice Interview
Study Questions
Technical Stack & Infrastructure Technology Familiarity
Be prepared to discuss your hands-on experience with key infrastructure technologies relevant to Airbnb: cloud platforms (AWS, GCP, Azure), container orchestration (Kubernetes), monitoring tools (Datadog, Prometheus), message queues (Kafka), databases (MySQL, PostgreSQL, NoSQL), and infrastructure-as-code tools (Terraform, Ansible). Mention specific projects where you worked with these technologies.
Practice Interview
Study Questions
Professional Background & Experience Validation
Clearly articulate your 5+ years of SRE experience, highlighting progression from mid-level to senior roles. Prepare a concise summary of your career trajectory, key responsibilities at each level, and how your experience has evolved. For a senior candidate, emphasize periods where you took on expanded scope, mentored other engineers, or influenced architectural decisions.
Practice Interview
Study Questions
Technical Phone Screen
What to Expect
The technical phone screen is a 60-90 minute session conducted via a video call with a senior engineer or technical manager. This round assesses your coding ability, problem-solving approach, and foundational knowledge of distributed systems and infrastructure concepts. You'll be expected to write functional code (typically in Python, Go, or similar language) in a shared editor while thinking through the problem aloud. The problems are usually medium-difficulty, inspired by real infrastructure or reliability challenges. This is a filter round designed to ensure you have the coding fundamentals and communication clarity needed to succeed in on-site interviews. Expect live coding, followed by discussion of trade-offs and design considerations.
Tips & Advice
Practice coding in a shared editor environment before the interview; tools like CoderPad or similar can feel different from your local IDE. For a senior-level candidate, interviewers expect not just correct solutions but also discussion of trade-offs, scalability considerations, and communication of your thinking process. Write clean, readable code with appropriate comments. Don't rush; explain your approach before coding. If you get stuck, think out loud and show your problem-solving process rather than going silent. For infrastructure-focused problems, discuss monitoring, error handling, and operational concerns alongside the core logic.
Focus Topics
Problem-Solving Approach & Communication
Develop a structured approach to problem-solving: clarify requirements and constraints, break down the problem into components, discuss trade-offs before diving into implementation, and explain your thinking as you code. Practice talking through problems clearly, asking clarifying questions when needed, and being open to feedback or alternative approaches. For senior engineers, interviewers expect you to guide the discussion, not just answer questions.
Practice Interview
Study Questions
Infrastructure Concepts & Cloud Platforms
Demonstrate practical knowledge of infrastructure management including containerization (Docker), orchestration (Kubernetes basics), networking (DNS, load balancers, firewalls), and cloud provider services (compute, storage, managed databases). Understand how services communicate, how data flows through systems, and the operational considerations of deploying software at scale. Be ready to discuss decisions like on-premises vs. cloud, multi-region deployment, disaster recovery.
Practice Interview
Study Questions
System Design Fundamentals & Trade-offs
Understand core concepts needed for distributed systems: CAP theorem (Consistency, Availability, Partition Tolerance), replication strategies, consensus algorithms (basic understanding), load balancing, caching, and service discovery. Be able to discuss trade-offs between different approaches: synchronous vs. asynchronous processing, strong vs. eventual consistency, in-memory caching vs. persistence. For phone screens, expect to discuss how these concepts apply to infrastructure design challenges.
Practice Interview
Study Questions
Coding Fundamentals & Scripting in Preferred Language
Maintain proficiency in at least one programming language used for infrastructure automation (Python, Go, or bash). Focus on writing clean, readable code that handles edge cases and errors gracefully. For SRE roles, emphasis is often on practical scripting and automation rather than complex algorithms. Be able to write code that performs tasks like parsing data, interacting with APIs, handling retries, and logging effectively. Understand basic design patterns for automation scripts: idempotency, error handling, configuration management.
Practice Interview
Study Questions
On-Site Round 1: Distributed Systems & Infrastructure Design
What to Expect
This 60-minute on-site round evaluates your ability to design reliable, scalable infrastructure systems. You'll likely work with an experienced engineer or tech lead to architect a system that solves a reliability challenge (e.g., designing a highly available service discovery system, building a resilient data pipeline, or architecting a global caching system). The interviewer will start with a problem statement and gradually introduce constraints and scale requirements. You'll be expected to think through trade-offs, discuss monitoring and observability requirements, consider failure scenarios, and justify your architectural decisions. This round assesses both technical depth and your ability to think about operational concerns from the beginning of system design.
Tips & Advice
For a senior-level round, don't just describe a high-level architecture; dive into details like how you'd handle failures, what monitoring you'd implement, how you'd manage deployments and rollbacks, and what the operational burden would be. Discuss real SRE concerns: how to define SLOs for this system, what an error budget means, how you'd conduct postmortems if the system fails. Ask clarifying questions about scale, traffic patterns, and constraints before proposing solutions. Draw diagrams to explain your thinking. Be prepared to evolve your design as requirements change. For a senior candidate, interviewers expect you to demonstrate systems thinking: understanding how your design impacts other systems, considering team capacity to operate the system, and balancing technical ideals with practical reality.
Focus Topics
Operational Complexity & Maintainability
Consider the operational burden of your design: how many systems does your design add to the operational landscape? How easy is it to debug? Can it be deployed safely? What's the training burden on the team? For a senior role, balance technical elegance with operational pragmatism. Discuss deployment strategies (rolling deploys, canary releases, blue-green deployments) and rollback procedures. Consider cost implications and resource constraints the team faces.
Practice Interview
Study Questions
Capacity Planning & Performance Optimization
Discuss how you'd plan for growth: forecasting traffic, understanding resource requirements, and scaling proactively before hitting limits. Understand performance characteristics of different technologies (database query performance, cache hit rates, network bandwidth). For your design, discuss latency expectations, throughput capacity, and how you'd optimize for Airbnb's use cases (high traffic, global distribution, real-time updates).
Practice Interview
Study Questions
Distributed Systems Architecture & Scalability
Design systems that scale horizontally, handle failures gracefully, and remain available despite partial outages. Understand sharding strategies, replication approaches, consensus mechanisms, and how to avoid single points of failure. Discuss trade-offs between consistency models (strong vs. eventual), replication factor decisions, and backup strategies. For senior roles, consider how your design impacts reliability, operational complexity, and cost at massive scale (Airbnb's global footprint).
Practice Interview
Study Questions
Monitoring, Observability & Alerting
Design comprehensive monitoring strategies for systems: what metrics to collect, how to set meaningful alerts, what logging and tracing looks like. Understand the difference between metrics (aggregated quantitative data), logs (detailed events), and traces (request flows across services). Discuss how you'd detect failures quickly, identify the root cause, and provide operational insights to the team. For a system you're designing, specify the SLIs (Service Level Indicators) and how you'd measure them.
Practice Interview
Study Questions
High Availability & Resilience Design
Design systems that maintain availability during failures: database failures, network partitions, deployment errors, hardware failures, cascading failures. Understand techniques like redundancy, failover mechanisms, bulkheads, circuit breakers, and graceful degradation. Discuss how to design systems that fail predictably and recover quickly. Consider multi-region deployment, disaster recovery procedures, and backup strategies for critical data.
Practice Interview
Study Questions
On-Site Round 2: Coding & Infrastructure Automation
What to Expect
This 60-minute round focuses on your ability to write production-quality code for infrastructure automation and tooling. You'll typically work on a problem that involves writing scripts, tools, or automation to solve operational challenges (e.g., building a configuration management tool, writing a deployment script with error handling, implementing a monitoring check, or creating a utility for log analysis). Unlike the phone screen, these problems are often more complex and may involve multiple components. The emphasis is on pragmatic, reliable code that an SRE team would actually use in production. You'll be expected to consider edge cases, error handling, testing, and operational concerns like monitoring and logging.
Tips & Advice
Focus on writing code that's not just correct but also production-ready: handle errors gracefully, include appropriate logging and monitoring hooks, consider edge cases, and make the code maintainable. For a senior-level candidate, interviewers expect sophistication: understanding concurrency issues, implementing retry logic with exponential backoff, designing for idempotency. Use appropriate design patterns and explain why you've chosen them. Discuss testing strategy and operational concerns. If the problem involves configuration or deployment, discuss validation, rollback procedures, and safety mechanisms. Communicate your assumptions and design decisions clearly.
Focus Topics
Testing & Code Quality
Discuss your testing strategy: unit tests for logic, integration tests for system behavior, and potentially end-to-end tests. For infrastructure code, understand how to test safely without affecting production. Discuss code review practices, documentation, and maintainability. For a senior candidate, demonstrate understanding of test coverage and when exhaustive testing is necessary vs. pragmatic.
Practice Interview
Study Questions
Monitoring, Logging & Observability in Code
Integrate monitoring and logging into your code from the start: emit meaningful metrics, log important events, include tracing for debugging. Understand structured logging (key-value pairs), metric types (counters, gauges, histograms), and how to instrument code for observability. For infrastructure code, ensure operational teams can understand what the code is doing.
Practice Interview
Study Questions
Concurrency, Parallelization & Asynchronous Programming
Understand how to write code that handles concurrent operations: threads, processes, async/await patterns (depending on language). For infrastructure code, this often means managing parallel operations like deploying to multiple servers, running checks across infrastructure, or processing data streams. Understand race conditions, deadlocks, and synchronization primitives. Know when to use concurrency and when it adds complexity without benefit.
Practice Interview
Study Questions
Production-Ready Code & Error Handling
Write code that handles failures gracefully: implement proper error checking, use appropriate error types, log meaningful error messages, and fail fast when necessary. For a senior candidate, understanding advanced error handling techniques like circuit breakers, retries with backoff, and error propagation is expected. Implement idempotent operations where possible so that retries don't cause problems. Think about partial failures in distributed systems and how your code deals with them.
Practice Interview
Study Questions
Automation Script Development & Operational Tooling
Develop scripts and tools that automate routine operational tasks: deployments, configuration management, health checks, data migrations, or system maintenance. Understand how to parameterize scripts (configuration, environment variables), make them repeatable, and ensure they're safe to run multiple times. Implement proper logging so operators can understand what the script did. For senior engineers, consider how tools scale to manage infrastructure at Airbnb's scale.
Practice Interview
Study Questions
On-Site Round 3: Complex System Design & Architecture
What to Expect
This 60-minute round is a deep-dive system design interview focused on solving complex, real-world reliability challenges at Airbnb's scale. You might be asked to design a distributed tracing system for Airbnb's microservices, architect a global incident management system, design a service mesh architecture, or solve scaling challenges in Airbnb's booking or payment infrastructure. The interviewer will work with you to explore constraints, trade-offs, and operational implications in depth. This round assesses your ability to think architecturally about large-scale systems, make principled trade-offs between competing concerns (consistency vs. availability, simplicity vs. features, performance vs. cost), and consider the organizational and operational dimensions of system design.
Tips & Advice
Approach this systematically: start by clarifying requirements and constraints, outline high-level architecture, then dive into components. For a senior-level round, interviewers expect sophisticated thinking: understanding how your design relates to real Airbnb systems, considering Airbnb's specific scale and constraints (millions of listings, billions in transaction volume, global distribution), and discussing operational concerns deeply. Think about how your design impacts other teams and systems. Discuss SLOs, monitoring, incident response, deployment strategies, and team organization around your design. Be comfortable with ambiguity and evolving your design as requirements change. Don't just describe technology; explain why you've chosen each component and what trade-offs you're making.
Focus Topics
Deployment & Release Strategy
Design safe deployment approaches for your system: how do you roll out changes with minimal risk? Discuss strategies like canary deployments, feature flags, blue-green deployments, and rollback procedures. Consider how to balance speed (releasing frequently) with safety (not breaking things). For a senior role, understand how deployment strategy affects team velocity, reliability, and operational burden.
Practice Interview
Study Questions
SLOs, Monitoring, & Operational Metrics
For the system you design, define appropriate SLOs (Service Level Objectives): what availability target should you commit to? What latency SLOs make sense? Design the observability layer: what metrics matter, what alerts should fire, how do you quickly identify root causes? Discuss error budgets and how they guide your decisions about risk. For a senior role, understand how SLOs shape the team's operational priorities and release practices.
Practice Interview
Study Questions
Data Consistency & Integrity in Distributed Systems
Understand consistency models (strong vs. eventual), when each is appropriate, and how to implement each. Design systems that maintain data integrity across services: ensuring bookings are correct, payments are recorded accurately, and listings reflect reality. Discuss distributed transactions, event sourcing, CQRS (Command Query Responsibility Segregation), and compensating transactions. Consider edge cases and failure scenarios.
Practice Interview
Study Questions
Performance, Latency & Throughput Optimization
Design systems optimized for Airbnb's performance requirements: minimize latency for user-facing services, maximize throughput for backend processing, handle traffic spikes gracefully. Understand caching strategies, database optimization, query optimization, and asynchronous processing. Discuss trade-offs between consistency, latency, and cost. For a design, articulate the expected latency characteristics and how you'd optimize to meet them.
Practice Interview
Study Questions
Service Reliability & Resilience Patterns
Design systems using patterns like circuit breakers, bulkheads, timeouts, retries with exponential backoff, and graceful degradation. Understand how to prevent cascading failures when one service degrades. Discuss timeout selection, retry policies, and how to make services resilient to dependency failures. For Airbnb use cases, consider how to maintain marketplace functionality even when some services fail.
Practice Interview
Study Questions
Large-Scale Distributed System Architecture
Design complex systems that operate at Airbnb's scale: handling millions of requests per second, petabytes of data, or billions of transactions. Understand how to decompose systems into manageable components, define service boundaries, and manage interactions between services. Discuss data consistency across distributed services, handling failures without cascading, and maintaining correctness in the face of network partitions and partial outages.
Practice Interview
Study Questions
On-Site Round 4: Behavioral & Culture Fit
What to Expect
This 60-minute round evaluates your alignment with Airbnb's values, leadership capability at a senior level, and how you collaborate with teams. The interviewer will ask open-ended questions about your experiences handling difficult situations, your approach to incident management and learning from failures, examples of mentoring or influencing others, and how you approach problems that don't have clear technical solutions. Expect questions like 'Tell me about a time you had to overcome a difficult challenge,' 'Describe a situation where you disagreed with a decision and how you handled it,' and 'What does belonging mean to you in the context of your work?' The interviewer is looking for evidence of leadership maturity, humility, collaboration, bias toward action, and alignment with Airbnb's mission of belonging and global connection.
Tips & Advice
Prepare specific, detailed stories using the STAR method (Situation, Task, Action, Result) that showcase your senior-level competencies: leading teams through crises, mentoring engineers, making tough decisions, and learning from failures. For Airbnb specifically, connect your experiences to their values. Prepare for questions about how you handle conflict, make decisions under uncertainty, and support team growth. Discuss incident postmortems you've led, emphasizing psychological safety and learning mindset. Be authentic; Airbnb values genuine connection and belonging. Discuss how you bring people together and create inclusive teams. Avoid canned responses; interviewers can tell when you're reciting prepared answers. For a senior role, demonstrate reflection and growth: discuss mistakes you've made and how you've learned from them. Ask thoughtful questions about team culture and how reliability work is valued.
Focus Topics
Handling Ambiguity & Making Decisions Under Uncertainty
Share examples of situations with unclear requirements or conflicting priorities where you had to make decisions. Discuss your decision-making process: how do you gather information, consider trade-offs, and commit to a direction despite uncertainty? For a senior role, demonstrate that you can navigate ambiguity, involve appropriate stakeholders, and move forward decisively even with incomplete information. Discuss how you balance thorough analysis with speed to action.
Practice Interview
Study Questions
Personal Growth & Reflection
Discuss challenges you've faced in your career, how you've grown from them, and what you're focused on developing next. Share examples of situations where you changed your mind or learned something important. Demonstrate humility and a growth mindset. For a senior role, discuss how you stay current with technology evolution and continuously improve your leadership capabilities.
Practice Interview
Study Questions
Collaboration & Cross-Functional Influence
Discuss how you work with product, backend, frontend, and other teams. Share examples of situations where you had to influence others without direct authority: getting buy-in for reliability improvements, advocating for technical investments, or resolving conflicts. Discuss your approach to understanding other teams' constraints and finding win-win solutions. For a senior role, demonstrate that you're a bridge builder and multiplier across the organization.
Practice Interview
Study Questions
Incident Management & Learning from Failures
Share detailed examples of major incidents you've experienced: what went wrong, how you responded, what you learned. Discuss your approach to incident response: how you stay calm under pressure, communicate with stakeholders, and lead teams through crises. Emphasize psychological safety in postmortems: how you create environments where people feel comfortable discussing failures openly without blame. For a senior role, discuss how you've built incident response culture and processes that help teams learn and improve continuously.
Practice Interview
Study Questions
Airbnb Values & Mission Alignment (Belong Anywhere)
Understand and embody Airbnb's core values: 'Belong Anywhere' emphasizes global connection, inclusion, and creating spaces where people feel welcome. Discuss your personal connection to these values and how they influence your work as an SRE. Share examples of how you've fostered inclusive team environments, contributed to making systems work globally, or helped colleagues from different backgrounds feel valued. Discuss how you approach infrastructure decisions with empathy for users globally.
Practice Interview
Study Questions
Leadership, Mentorship & Influence
Share examples of engineers you've mentored and how they've grown. Discuss how you approach mentoring: do you focus on technical skills, career development, or both? Share examples where you've influenced team practices or decisions without having formal authority. Discuss your approach to empowering others and developing leaders. For a senior SRE, demonstrate how you multiply your impact through others rather than just solving problems yourself.
Practice Interview
Study Questions
Frequently Asked Site Reliability Engineer (SRE) Interview Questions
Propose an automated rollback policy for models that incorporates both infrastructure SLOs (latency, error rate) and model-quality SLOs (for example a drop in conversion or AUC). Define thresholds, safety checks, cooldown windows, and an escalation flow that includes human approval when required.
Sample Answer
Direct answer
An automated rollback policy needs to watch both infrastructure SLOs and model-quality SLOs as independent triggers (either one alone should be able to fire a rollback), with safety checks and a cooldown window preventing a rollback from firing on noise or flapping repeatedly.
Structured elaboration
- Dual trigger conditions: an infra-SLO breach (latency, error rate exceeding threshold) and a model-quality-SLO breach (a drop in conversion or AUC beyond threshold) are each SUFFICIENT on their own to trigger: a rollback shouldn't require both to fire simultaneously, since a purely model-quality regression (fast, error-free, but wrong) is exactly the class of incident an infra-only trigger would miss entirely.
- Thresholds: set each threshold using the same control-chart logic as any other alerting threshold (based on historical healthy-period variance), not an arbitrary round number, and require the threshold breach to PERSIST across a defined window (not a single reading) before triggering: this is the same anti-noise discipline as any alerting design.
- Safety checks before executing: before an automated rollback actually fires, verify a known-good previous version genuinely exists and is ready to receive traffic (don't roll back to a state that itself has a known issue), and confirm the CURRENT metric reading isn't itself a measurement artifact (a monitoring-pipeline glitch producing a spurious reading) via a quick secondary confirmation check.
- Cooldown windows: after an automated rollback fires, enforce a minimum cooldown before ANY further automated action (another rollback, or an automated re-promotion) is allowed: this prevents a flapping cycle where a marginal metric oscillates around the threshold and triggers repeated automated actions in quick succession.
- Escalation and human approval: for a HIGH-severity trigger (a dramatic breach, not a marginal one), the policy can act immediately and automatically; for a borderline or ambiguous trigger, route to human approval rather than auto-executing, since a marginal signal is exactly where a false-positive automated rollback is most likely.
Worked example
Concretely: define the model-quality SLO as "conversion rate within 3 percentage points of its 30-day trailing baseline, sustained over 3 consecutive 15-minute windows" and the infra SLO as "p99 latency under 300ms, sustained over 5 minutes": either breach alone triggers a safety check (confirm a known-good previous version is ready) and then an automatic rollback, followed by a 30-minute cooldown during which no further automated rollback or promotion can fire, giving the team time to investigate without the system fighting itself.
Trade-offs & pitfalls
The tension throughout is trigger sensitivity versus trust in full automation: a policy tuned to catch every real regression fast will also occasionally fire on noise, and each false-positive automated rollback erodes confidence in the system, tempting teams to disable automation entirely after a bad experience. Starting with a HIGH-confidence-only automated trigger (only the most dramatic, unambiguous breaches auto-execute) and a human-approval path for everything else is the safer default until the policy has built up a track record of being reliably right.
Outline a design for handling partial commits when a distributed transaction fails mid-way: detection, compensating actions, operator alerts, automated reconciliation, and the runbook steps a support team should follow.
Sample Answer
Direct answer: Handling a distributed transaction that fails partway through means first correctly detecting WHICH steps actually completed (not assuming based on where the failure was reported), then running the compensating actions for exactly those completed steps in reverse order, alerting an operator if any compensation itself fails or the situation is ambiguous, and following a runbook that tells the support team exactly what to check and do rather than relying on improvisation during an incident.
Structured elaboration
Detection. The saga's persisted state (its audit trail of which steps started, completed, or are still pending) is the source of truth for what actually happened, not an assumption based on where an error was thrown. A step that "failed" from the caller's point of view (timeout, exception) might have actually succeeded server-side; before compensating, check the step's actual outcome via a status lookup where the downstream system supports one, rather than assuming failure and risking a compensation that undoes something that was never actually applied and is also currently unconfirmed.
Compensating actions, in reverse order. Once you know which steps genuinely completed, trigger their compensating actions starting from the most recently completed step and working backward, this mirrors the forward order and avoids a compensation depending on a later step's data that's already been compensated out from under it.
Operator alerts. Any partial-commit situation that reaches this point (a saga step failed mid-flight) should generate an alert, not require a human to notice it independently, with enough context (saga ID, which step failed, what compensations are being attempted) that an on-call engineer doesn't have to dig through logs from scratch to understand what's happening.
Automated reconciliation. For failure classes that are well-understood and have a known-safe automated fix (e.g. "release an inventory hold that's stuck because the downstream payment step definitively failed"), the compensating action should run automatically rather than waiting for a human, reserving human involvement for genuinely ambiguous or high-stakes cases (compensation itself failing repeatedly, or a situation the automated logic doesn't have a defined response for).
Runbook steps for the support team. A concrete, written procedure: (1) look up the saga by ID or affected customer/order, (2) check its current state and which compensations have run, (3) if a compensation itself has failed, follow the documented manual-fix procedure for that SPECIFIC step (not a generic "figure it out"), (4) confirm resolution and update the saga's state to reflect the manual intervention, (5) if this is a recurring pattern, file it for the automated-remediation backlog rather than treating every occurrence as a one-off.
Worked example. A saga reaches step 3 (charge payment) which times out. The orchestrator checks the payment gateway's status API for this transaction ID (detection, not assumption) and gets back "declined", a definitive, confirmed failure. It triggers compensation for steps 1-2 (release inventory hold, cancel the pending order) in reverse order, logs the outcome, and moves on, no human involvement needed since this is a well-understood, automatable case. In a different incident, the compensating "release inventory hold" call itself fails three times (the inventory service is having an outage), the orchestrator alerts on-call with the saga ID and the specific failing compensation, and the runbook's documented manual procedure for "inventory service unreachable during compensation" is to manually flag the hold for release once the service recovers, verified against a checklist, rather than leaving it silently stuck.
Trade-offs and pitfalls. Compensating based on an ASSUMED failure (rather than a confirmed one) when the downstream system actually succeeded is a common way this goes wrong in practice, it's worth explicitly building the "check actual status before compensating" step into the design rather than treating a timeout as automatically equivalent to a failure.
Your team is choosing between a hosted observability platform and a self-hosted open-source stack for a growing company with a small operations team. Walk through the trade-offs you'd weigh, things like cost, operational overhead, feature completeness, and vendor lock-in, and what would tip your recommendation one way or the other.
Sample Answer
Direct answer
For a growing company with a small operations team, default to a hosted platform unless one team already has strong operational muscle for a specific piece of the stack (most often metrics, via Prometheus). The variable that actually decides this is engineer-hours available for care and feeding, not sticker price: a self-hosted stack usually undercuts hosted pricing on paper, but that gap closes or reverses once you count the SRE time spent on cluster capacity, upgrades, and retention tuning.
Decision framework
| Dimension | Hosted (Datadog, New Relic, Grafana Cloud style) | Self-hosted OSS (Prometheus + Loki + Grafana + Tempo) |
|---|---|---|
| Upfront cost | Low, pay-as-you-ingest | Low licensing, but infra plus engineer time is a real cost |
| Ongoing cost at scale | Grows fast with hosts/ingestion, can dominate the infra bill | Grows with storage/compute you already control, more linear |
| Operational overhead | Near zero: vendor handles scaling, upgrades, HA | Real: cluster sizing, upgrades, backup/restore, on-call for the observability stack itself |
| Feature completeness | Turnkey APM, anomaly detection, log parsing UIs, SLO tooling out of the box | Comparable core signal collection, but polish (auto root-cause, ML anomaly detection) usually lags or needs extra tooling |
| Vendor lock-in | Real: proprietary query language, dashboards don't port cleanly | Low: OpenTelemetry, PromQL, and LogQL are portable across backends |
| Multi-tenant RBAC (role-based access control: who can see/query which logs) / PII redaction (log aggregation) | Usually built in (SSO, field-level masking) as a paid-tier feature | You build and maintain it yourself (access policies at the query layer, redaction at the log shipper) |
When to tip toward each:
- Hosted: team is small, time-to-value matters more than unit cost, nobody owns the observability stack as their primary job, or you need APM/anomaly detection you don't want to build yourself.
- Self-hosted: you already run Kubernetes at scale with a platform team that can treat observability as just another workload, data residency or compliance forces on-prem storage, or ingestion volume is high enough that hosted per-GB pricing becomes the single largest line item in the infra budget.
- Hybrid: a common middle path is hosted APM and log search (where turnkey correlation and UI matter most) paired with a self-hosted Prometheus for metrics you already understand and want fast, cheap, high-resolution queries on. This works because metrics are the cheapest and most mechanical piece to self-host, while tracing and log search UX is where vendors differentiate most. Re-evaluate the split as the team and ingestion volume grow.
Worked example
The crossover point between the two options can be derived, not guessed, once you write cost as a function of ingestion volume.
Let G be GB/day ingested. Model hosted cost as a per-GB ingestion rate, and self-hosted cost as a fixed infra floor plus a much cheaper per-GB storage rate plus ongoing engineer-hour labor:
Gbreak−even=30×(rhosted−rstorage)Cinfra+H⋅RlaborUsing illustrative, explicitly-assumed rates (not any specific vendor's current published price, since list prices change): hosted ingestion rate rhosted=$0.10/GB, self-hosted object-storage rate rstorage=$0.02/GB, fixed self-hosted compute floor Cinfra=$300/month, and H=4 hours/month of engineer time at a loaded rate Rlabor=$150/hour:
Gbreak−even=30×(0.10−0.02)300+4×150=2.4900=375 GB/dayUnder these assumptions, below roughly 375 GB/day of ingestion, hosted comes out cheaper on pure dollar terms even before counting the small-team operational risk. Above it, self-hosting's lower per-GB rate starts to outweigh the fixed compute and labor floor. The point isn't the exact number, it's that a candidate should reason in terms of where the cost curves cross, not assert a universal winner.
Trade-offs and pitfalls
- Sunk-cost fallacy: don't keep self-hosting because it was already built, once engineer time becomes scarce elsewhere the calculus can flip.
- Hidden costs of hosted: egress and API costs, per-seat pricing for dashboard users, and price increases once you're locked in and migration feels expensive.
- Hidden costs of self-hosted: the observability stack becomes a second production system that itself needs monitoring, on-call, and capacity planning. If it goes down during an incident, you're debugging blind.
- Migration cost is asymmetric: moving off a hosted platform later means rebuilding dashboards and alerts in a new query language; moving off self-hosted OSS is comparatively easier since OpenTelemetry-based data is portable to almost any backend.
- Common wrong turn: picking self-hosted purely because a spreadsheet says it's cheaper while ignoring engineer-hours, then rediscovering the true cost six months later at the first major version upgrade.
There are two ways to stop an incident: a fix that needs five minutes of downtime and fully restores behaviour, or a mitigation that leaves users with degraded functionality but no downtime. How do you choose, and how would the choice change if the real fix were a long-term refactor?
Sample Answer
The idea in plain words
A fix removes the cause and restores full behaviour. A mitigation reduces the harm without removing the cause. The two options in the question differ in where they put the pain: the fix concentrates it into 5 minutes of total unavailability, and the mitigation spreads a smaller amount of pain over however long the degradation lasts. The right choice is the one with less total customer harm and more safety, and the deciding quantity is how long the degraded state would last. If a real fix is only a short wait away, tolerate the degradation. If degradation would drag on, take the short outage. If the real fix is a two-week refactor, the mitigation is the only way to stop the incident now, and the work becomes managing it as a stopgap with an owner and an end date.
1. The decision matrix
Compare the options on five factors and write the comparison in the incident channel. The incident commander (the person who coordinates the response and makes the calls) decides, and the scribe records it.
| Factor | Question to ask | Leans toward the fix | Leans toward the mitigation |
|---|---|---|---|
| Impact | Who is hurt now and how badly, under each option? | The degradation would hit many users for a long time | A 5-minute outage would hit a critical moment (a peak, a payment window) |
| Confidence in the cause | How sure are we that the fix works? | The cause is confirmed | The cause is still a guess; a wrong fix means downtime for nothing |
| Time to deploy | How long until each option is in place? | Fix is ready now | Fix needs preparation; mitigation is a switch |
| Reversibility | Can we undo it? | The fix is easy to revert | The fix cannot be undone (for example it changes stored data) |
| Safety | Does either option risk data, security or a rule we must obey? | The mitigation switches off a safeguard | The fix touches data in a way that is not tested |
Regulatory and contractual limits are part of the safety row. Hypothetical examples: a contract that counts downtime in a stated window against a penalty, or a rule that a particular function (such as audit logging) must never be off. A mitigation that disables such a function is not available, however convenient.
2. The error budget
An SLO (service-level objective) is a target such as "99.9 percent of requests succeed over 30 days". The error budget is what the target allows to fail: 100 percent minus 99.9 percent = 0.1 percent. Over 30 days there are 30 × 24 × 60 = 43,200 minutes, so the budget is 0.1 percent × 43,200 = 43.2 minutes of full outage equivalent. The 5-minute outage uses 5 / 43.2 = 11.6 percent of one month's budget. Assumption: the indicator counts a failed request or a missing function as bad. A bad minute (full-outage equivalent) is the unit used from here on: one minute during which every request fails counts as 1. If only a share of requests fails, multiply: 10 percent of requests failing for w minutes is 0.10×w bad minutes. The SLI (service-level indicator) is the measured number the SLO is about, here the share of requests that succeed. The budget turns a vague argument into a comparison of bad minutes.
3. Worked example: choosing between a 5-minute outage and a degraded state
Assumptions (hypothetical): the mitigation leaves 10 percent of requests failing. The full fix can be applied later with the same 5-minute outage, but at a quiet time when only 20 percent of normal traffic is affected. The next quiet window is w minutes away.
- Fix now: 5 minutes × 100 percent of requests = 5.0 bad minutes (full-outage equivalent).
- Mitigate, then fix in the quiet window: 0.10 × w, plus the later outage 5 × 0.20 = 1.0.
Setting them equal: 0.10 × w + 1.0 = 5.0, so w = 40 minutes. Check: 0.10 × 40 = 4.0, 4.0 + 1.0 = 5.0.
Decision rule under these assumptions: if the quiet window is less than 40 minutes away, mitigate and wait (at w = 30 the mitigation costs 0.10 × 30 + 1.0 = 4.0 bad minutes, against 5.0). If it is more than 40 minutes away (at w = 180 the mitigation costs 0.10 × 180 + 1.0 = 19.0), take the 5-minute outage now. This rule is an illustration: it ignores confidence in the cause, safety and reversibility, which the matrix handles first. If the fix is untested and may fail, the 5 minutes of downtime might be repeated, which changes the numbers.
4. When the real fix is a long-term refactor
Now the mitigation is the only action that stops the incident today, because the fix takes two weeks of development. A refactor is restructuring code to remove the underlying defect without changing what users see, which is why it takes long and cannot be rushed into production mid-incident. The decision is no longer "which option" but "how to run a stopgap safely". Look for a quick patch, the smallest reversible change that restores the core path, before accepting a broad degradation.
The budget shows why. Two weeks is 14 × 24 × 60 = 20,160 minutes. The most degradation that fits inside the monthly budget is 43.2 / 20,160 = 0.0021, or about 0.21 percent of requests. A mitigation that fails 10 percent of requests for 14 days would use 0.10 × 20,160 = 2,016 bad minutes, about 46.7 times the entire month's budget. So a long stopgap must be narrow (limited to a small segment, or a feature used by very few), and if it cannot be, the organisation must make an explicit decision about the SLO and pause other releases under its error budget policy (a written rule agreed in advance saying what happens when the budget is spent, for example that risky releases stop until reliability work is done).
A stopgap needs four things: an owner, an expiry date on the calendar, a ticket for the refactor with a delivery date, and monitoring of the degraded behaviour with a trigger that escalates if it worsens. Tell affected customers what is degraded and for how long.
5. My recommendation
If the fix is confirmed, tested, and the quiet window is more than 40 minutes away: take the 5-minute outage, announced in advance. If the fix is a guess or the quiet window is near: mitigate and decide again at a set time. If the fix is a refactor: ship the narrowest mitigation now, the refactor on a dated plan.
Common mistakes
- Comparing "5 minutes of downtime" with "no downtime" and ignoring how long the degraded state lasts.
- Treating degradation as free because no outage was declared.
- Applying a fix that is only a guess, so the outage happens twice.
- Leaving a stopgap in place with no owner or end date, so it becomes permanent.
- Forgetting a rule or contract that forbids the mitigation.
You're operating a service on DynamoDB. A downstream job writes an item, then immediately reads it back with a default GetItem call and sometimes gets a stale or missing result. Walk me through why, and what you'd change.
Sample Answer
Direct answer
By default, DynamoDB's GetItem and Query calls perform eventually consistent reads, which can be served from a replica that hasn't yet applied the most recent write, so a read immediately after a write can come back stale or missing. The fix is either to request a strongly consistent read on that specific call, or to redesign the flow so the downstream step doesn't need to re-read a value it just wrote.
Structured elaboration
Why it happens: DynamoDB replicates every write across multiple storage nodes in the region before acknowledging the write as successful, but a default GetItem/Query can be routed to a replica that hasn't received that write yet. This is a deliberate cost and latency trade-off, not a bug: eventually consistent reads use half the read capacity and typically have lower latency than strongly consistent reads.
Your options as the operator:
- Pass ConsistentRead: true on the specific read that needs the fresh value. It costs twice the read capacity units of an eventually consistent read and only works within the same region, but it guarantees you see every write that was acknowledged before the read started.
- Avoid the read-after-write pattern entirely: have the writer hand the value it just wrote directly to the downstream step instead of making it re-read from the table.
- If a separate process genuinely has to re-read, add a short retry with backoff, since same-region replication lag is typically single-digit milliseconds.
Where the ConsistentRead flag has limits: DynamoDB Global Tables (cross-region replicas) replicate asynchronously, so a strongly consistent read in one region's replica still only guarantees you see every write already acknowledged in that region, never a write still in flight from another region; there is no cross-region strong-consistency option. DynamoDB Accelerator (DAX, an in-memory cache in front of DynamoDB) is a different case: requesting ConsistentRead: true through DAX does work, DAX simply passes that request straight to DynamoDB without serving or populating it from cache, so you get a genuinely fresh read at the cost of losing DAX's cache acceleration for that one call.
Worked example
A checkout service writes an order row, then a fulfillment worker in the same request path reads it back to grab the shipping address. For a sub-4KB item, an eventually consistent GetItem consumes 0.5 RCU while a strongly consistent one consumes 1 RCU, so setting ConsistentRead: true on that one call costs an extra 0.5 RCU and removes the race entirely, versus a blind retry loop that adds latency and still isn't guaranteed to succeed on the first attempt.
Trade-offs and pitfalls
- Turning on strongly consistent reads everywhere "to be safe" roughly doubles read capacity cost and latency across the service; it should be applied surgically to the one call with the race, not the whole read path.
- Strongly consistent reads do nothing for a Global Table's cross-region replica (there is no cross-region equivalent), and while they do work through DAX, they lose all cache acceleration when they do, a gap teams often discover only after a multi-region or DAX rollout.
- The most robust fix is usually architectural (pass the value forward instead of re-reading it), since it removes the timing dependency entirely and also removes the extra read-capacity cost.
What the interviewer probes next
Expect a follow-up comparing this to S3, which has provided strong read-after-write consistency for every operation (new objects, overwrites, and deletes) since late 2020, unlike DynamoDB's opt-in ConsistentRead, and how you'd catch this class of race in production before a customer reports it.
You are considering migrating an in-process per-node cache to a central Redis cluster. Outline expected performance impacts on latency, throughput, and tail behavior; propose a migration plan with instrumentation, a rollback plan, and strategies to mitigate network RTT and serialization overhead. Include failover and replication lag handling during rollout.
Sample Answer
Expected performance impact
An in-process cache lookup is a local memory access, roughly microsecond scale. Moving to a networked Redis cluster adds, at minimum, one network round trip: same-availability-zone RTT to Redis is typically well under a millisecond to about 1ms, cross-AZ typically 1 to 2ms, plus serialization/deserialization cost of a payload, which adds anywhere from tens of microseconds to low single-digit milliseconds depending on format and size. So a lookup that cost roughly 1 microsecond in-process might cost roughly 0.5 to 2ms against Redis, an increase of two to three orders of magnitude in absolute terms, even though it may still be small relative to a request's total latency budget if that request already spends tens of milliseconds elsewhere.
Throughput changes shape too: the in-process cache scaled for free with instance count, since each instance had its own copy with zero contention. A centralized Redis cluster is a shared resource every instance now competes for, so throughput becomes a function of Redis cluster sizing (shard count, replica count) rather than app-fleet size alone.
Tail behavior is the biggest risk. In-process cache tail latency is tight because memory access variance is small. A shared Redis cluster is exposed to noisy-neighbor effects (another service or a hot key sharing the same shard), network jitter, and pauses inside the Redis process itself, so expect p99/p999 (the 99th/99.9th percentile: the latency value below which that fraction of lookups complete) to widen noticeably even when the median barely moves, the classic pattern of tail amplification when many callers fan in onto one shared dependency.
Migration plan
- Instrument first: add cache-hit-rate and lookup-latency (p50/p95/p99) metrics to the CURRENT in-process cache before changing anything, so there is a real baseline to compare against rather than intuition.
- Shadow phase: deploy the Redis-backed lookup alongside the existing in-process cache, querying both on every request but only serving from and depending on the in-process result, so Redis's real latency and hit rate can be observed with zero correctness risk.
- Gradual cutover by traffic percentage (for example 1% to 10% to 50% to 100%), holding each stage through a full peak and off-peak cycle so tail behavior under real load is visible, not just the average.
- Rollback plan: keep the in-process code path intact behind the same flag for at least one full release cycle after reaching 100%, so a regression discovered days later, for example a hot key causing shard contention, can be reverted with a flag flip rather than a code deploy.
Mitigating network RTT and serialization overhead
- Co-locate Redis replicas in the same AZ as the majority of callers and route reads to the local replica specifically, avoiding cross-AZ RTT on every lookup.
- Use a persistent connection pool rather than a new connection per request; TCP/TLS handshake cost would otherwise dominate an operation that is fast once connected.
- Batch lookups with pipelining or a multi-key GET instead of issuing N sequential round trips, turning N times RTT into roughly one round trip.
- Prefer a compact binary serialization format (for example protobuf or msgpack) over JSON for cached payloads; JSON's text overhead and parse cost are disproportionate for small, frequently-read objects.
- Keep a thin local cache in front of Redis (short TTL, a few seconds, in-process) for the hottest keys, so the very hottest lookups never pay the network hop at all. This standard two-tier pattern recovers most of the lost latency for the small set of keys that account for most traffic.
Failover and replication lag during rollout
Redis failover (promoting a replica after a primary shard failure) introduces a brief unavailability window, typically low single-digit seconds. The client library needs a bounded timeout and a defined fallback (serve stale from the local tier, or fall through to the source of truth) instead of blocking or failing the whole request. Replication lag between a Redis primary and its read replicas means a value just written may not be visible yet on a replica read; for data where that matters, route reads that must see their own recent write to the primary for a short window, or explicitly document the staleness window if eventual consistency is acceptable for that data. During the rollout specifically, treat any Redis failover event as a signal to pause the percentage rollout until it is root-caused, since a failover mid-rollout is exactly the moment blast radius gets misattributed to the migration itself.
Design an experiment to validate the hypothesis that doubling the number of workers in a pipeline stage reduces average processing time by 45%. Describe experiment design (control vs treatment), assignment method, required sample size or number of runs, metrics to capture, statistical tests for significance, handling noisy outcomes, and how to convert results into a capacity decision.
Sample Answer
Approach: experiment design
Null hypothesis: doubling the worker count in this pipeline stage does not reduce mean processing
time by 45%. Alternative: the doubled-worker configuration's mean processing time is meaningfully
lower than the current configuration's.
Control equals the current worker count, treatment equals double that, run against the same
underlying job mix and traffic pattern so worker count is the only thing that varies. The strongest
assignment method is randomized interleaving: alternate which configuration handles each incoming
batch or run, or split live traffic randomly between both configurations concurrently, rather than
running control for a week and then treatment for a week. Sequential A-then-B testing confounds the
comparison with whatever else changed over that time, traffic mix, time of day, an unrelated
deploy. If the system can't run both concurrently, the fallback is time-blocked alternation, for
example flipping configurations hour by hour, which at least averages out slow time trends better
than one long block of each.
Worked example: sample size
Using an illustrative baseline mean processing time of 100ms with a standard deviation of 15ms
(measured from recent production runs), and the claimed 45% reduction (target mean about 55ms,
delta 45ms):
Plain-English: more noise (sigma) needs more samples to detect the same gap; a bigger gap (delta)
needs fewer.
With alpha (the false-positive rate you're willing to accept) of 0.05 two-sided and 80% power (the probability of detecting the effect if it's real), z-alpha/2 is 1.96 and z-beta is 0.84, giving roughly 2
runs per group. That number is suspiciously tiny, and that's the teaching point: a claimed 45%
reduction is a huge effect size relative to typical run-to-run noise, three times the standard
deviation, so if the effect is real it should be obvious in a handful of runs. I would not actually
stop at 2 runs per group, because this idealized calculation only accounts for random measurement
noise, not real-world confounders like time of day, job mix, or contention from other tenants. I'd
run at least 20 to 30 runs per configuration spread across different times and traffic conditions,
both to guard against those confounders and to get a tighter, more trustworthy confidence interval
on the actual percentage reduction, not just a pass or fail on statistical significance.
Metrics to capture
Primary: per-run mean and p95 (95th percentile) processing time for each configuration, mean for comparing against
the 45% claim, p95 because a worker-count change can shift the tail differently than the average,
for example under contention effects that only appear at load. Secondary: worker utilization or
idle time, to catch a false win where doubling workers only "helps" because the extra workers sit
idle and never contend, which would not generalize once the extra capacity is fully loaded, and the
cost implication of running 2x the workers.
Statistical test for significance
A two-sample Welch's t-test (a test for whether two groups' means differ by more than chance would explain) on per-run mean processing times, Welch's rather than the standard
version because doubling workers plausibly changes both the mean and the run-to-run variance, so
equal-variance shouldn't be assumed. Report both the p-value and a confidence interval on the
percentage reduction, not just significant or not, since a statistically significant 12% reduction
is a very different capacity decision than a statistically significant 45% reduction, even though
both would technically clear a significance threshold.
Handling noisy outcomes
Aggregate at the run level, one data point per run's mean, rather than pooling every individual
job's timing across runs, treating each job as an independent sample overstates the effective
sample size, since jobs within one run share that run's conditions. Flag rather than silently drop
outlier runs, for example a run that coincided with a deploy or an unrelated incident, and report
results both with and without them so the read isn't hidden.
Converting results into a capacity decision
If the measured confidence interval comfortably contains the claimed 45%, or even falls short, for
example landing at 25 to 35%, that's still actionable, report the real measured range to whoever is
making the capacity or cost call rather than just confirming or denying the original claim. Weigh
the measured reduction against the 2x cost of doubling workers: if a real 30% latency reduction
costs double the compute, is that a better trade than a targeted optimization for a smaller latency
win at a much smaller cost increase, that comparison is the actual capacity decision.
Leadership scenario: You're trying to convince product and design teams to adopt reliability constraints (SLOs and performance budgets) early in the design phase. Describe concrete tactics you would use to influence adoption, measure success, and maintain collaboration without blocking product velocity.
Sample Answer
Situation: In my previous SRE role we were repeatedly firefighting performance regressions that hit launches because reliability goals weren’t defined early. Product and Design saw constraints as blockers to creativity.
Task: Convince those teams to adopt SLOs and performance budgets during design, while preserving product velocity and collaboration.
Action:
- Framed benefits in product terms: translated SLOs into user impact (e.g., “99.9% success = <1 minute/year downtime for core flow”) and tied error budgets to release capacity so teams could trade features vs. risk.
- Ran a short pilot with one product squad: co-created a lightweight SLO (latency P95, availability) and a simple performance budget for initial wireframes—kept it non-blocking by making the budget advisory for the pilot.
- Embedded SRE in early design touchpoints: 30-minute “reliability check” in design reviews with a one-page checklist (user journeys, critical paths, expected qps, fallback UX).
- Provided concrete, low-effort tools: templates for SLOs, a dashboard showing projected error-budget burn given expected traffic, and a pre-commit CI perf test scaffold that flags major regressions but doesn’t block PRs—only annotates.
- Trained PMs/Designers with a 1-hour workshop using examples showing how small design changes (e.g., optimistic UI, graceful degradation) preserve UX within budgets.
- Created decision rules: if projected burn > threshold, require a short mitigation plan; otherwise proceed.
Result / Measurement:
- Adoption metric: percent of new features with an associated SLO at design time (target 80% in 3 months). Pilot reached 90% for that squad.
- Impact metrics: reduction in post-release performance incidents by 40% and decrease in emergency rollbacks by 30% in quarter following rollout.
- Collaboration metrics: average time in design review unchanged; NPS from PMs improved (qualitative feedback: less surprise, clearer trade-offs).
Learnings / Maintenance:
- Keep constraints lightweight and framed as enablers, not blockers.
- Automate visibility (dashboards, CI annotations) so decisions are data-driven.
- Re-evaluate SLOs quarterly with product to align to changing priorities.
- Use error budgets as a governance tool to enable safe experimentation rather than as a hard gate.
Write a deployment script for a service behind nginx on a single host that performs a zero-downtime release using symlinked release directories: prepare the new release, health-check it, atomically switch the 'current' symlink, and reload nginx without dropping connections. Include the rollback steps.
Sample Answer
Direct answer
A symlink-based zero-downtime deploy script prepares the new release in its own directory, health-checks it before anything user-facing changes, then atomically repoints a single "current" symlink and reloads (not restarts) nginx so it picks up the change without dropping any in-flight connections; rollback is the same atomic symlink switch, just pointed at the previous release directory.
Structured elaboration and worked example (executed and a real bug found + fixed)
#!/usr/bin/env bash
set -euo pipefail
APP_ROOT="/srv/myapp"
RELEASES_DIR="$APP_ROOT/releases"
CURRENT_LINK="$APP_ROOT/current"
NEW_RELEASE_SRC="$1"
# Nanosecond-plus-PID-plus-random timestamp avoids a same-second collision
# between two rapid deploys.
TIMESTAMP="$(date +%Y%m%d%H%M%S)-$$-$RANDOM"
NEW_RELEASE_DIR="$RELEASES_DIR/$TIMESTAMP"
mkdir -p "$RELEASES_DIR"
if [[ -e "$NEW_RELEASE_DIR" ]]; then
echo "FAIL: release dir collision, aborting rather than overwriting"; exit 1
fi
cp -r "$NEW_RELEASE_SRC" "$NEW_RELEASE_DIR"
health_check() { [[ -f "$1/HEALTHY" ]]; } # real check: curl a health endpoint on a temp-started instance
if ! health_check "$NEW_RELEASE_DIR"; then
echo "FAIL: new release unhealthy, aborting (old release untouched)"
rm -rf "$NEW_RELEASE_DIR"; exit 1
fi
PREV_TARGET=""
[[ -L "$CURRENT_LINK" ]] && PREV_TARGET="$(readlink "$CURRENT_LINK")"
ln -sfn "$NEW_RELEASE_DIR" "$CURRENT_LINK" # atomic: rename, never a half-updated target
nginx -s reload # reload, not restart: no dropped connections
echo "$PREV_TARGET" > "$APP_ROOT/.previous_release"
Rollback: ln -sfn "$(cat "$APP_ROOT/.previous_release")" "$CURRENT_LINK" && nginx -s reload.
I built and ran a real test harness against this script: deploying a healthy v1 (success), then attempting to deploy an unhealthy v2 (correctly aborted, current unchanged, exit code 1), then deploying a healthy v3 (success), then rolling back to v1. This execution found a real bug: my first version used a plain date +%Y%m%d%H%M%S timestamp, second-resolution only. Two deploys run within the same second (a realistic case: a rapid redeploy-after-abort sequence) got the SAME timestamp directory name, so cp -r copied the second release INTO the first's existing directory rather than creating a fresh one, and the leftover HEALTHY marker from the first release made the health check for the SECOND (genuinely unhealthy) release pass incorrectly. The fix, adding -$$-$RANDOM (process ID plus random number) to the timestamp and an explicit collision guard that aborts rather than silently overwriting, was verified to resolve it: re-running the same rapid-deploy sequence correctly aborted the unhealthy release and left the healthy one live.
Why ln -sfn specifically, not a two-step remove-then-create: ln -sfn performs the symlink update as a single atomic filesystem rename, so nginx (reading through the symlink on every request) never observes a moment where the symlink is missing or pointing at a half-written target; a naive rm followed by a separate ln -s would create exactly that dangerous window.
Trade-offs and pitfalls
nginx -s reload (not restart) is what actually delivers the zero-downtime property, since reload re-reads config and re-execs worker processes while keeping existing connections alive on the old workers until they finish, whereas a restart would drop everything currently connected. The collision bug found here generalizes: any deploy script using a coarse timestamp as a unique identifier is vulnerable to exactly this failure mode under rapid, repeated deploys, worth checking for in any similar script, not just this one.
How would you evaluate, as a candidate, whether a company's published culture and values are actually practiced day to day rather than just marketing? What would you look for, and what would you ask during the interview process to find out?
Sample Answer
Direct answer
I treat a company's published culture and values as a claim to be tested, not a fact to accept, and I look for evidence in three places: how people describe real, specific incidents (not slogans) when I ask about them, whether the org's actual structures and incentives would make the stated behavior easy or hard to practice, and whether the story is consistent across different people I talk to in the process.
Structured elaboration
- Ask for a specific recent incident, not a description of the value. A question like "tell me about a time the team had to choose between shipping fast and following the documented review process" forces a real story; a question like "how would you describe the engineering culture here" invites a rehearsed, values-page-adjacent answer that tells you little.
- Check whether the org's structure actually supports the stated value, independent of what anyone says. If a company claims to value psychological safety but every interviewer you meet is visibly guarded about naming any team problem, or if a company claims strong autonomy but every technical decision in the loop turns out to require a director's sign-off, the structural evidence contradicts the claim regardless of the wording used to describe it.
- Triangulate across multiple people, ideally at different levels and tenures. A single enthusiastic interviewer proves little; a hiring manager, a peer-level engineer, and someone from a different function independently describing the same specific behavior (not the same slogan) is much stronger evidence.
- Ask what the company would do differently if it stopped believing the value, and watch for a concrete, structural answer versus a vague one. People who work inside a genuinely lived value can usually name a real trade-off it costs them; people describing marketing usually cannot.
- Treat your own discomfort as data. If a described norm (pace, feedback directness, decision-making style) makes you visibly uneasy during the process itself, that is a more reliable signal about fit than anything printed on the careers page, because it is your own live reaction rather than a claim you are being asked to evaluate secondhand.
Worked example
Suppose a company's careers page says it "empowers engineers with high autonomy." During the loop, ask the hiring manager for a specific recent example: "Tell me about the last time an engineer on this team made a production architecture decision without it going through a review committee first." A genuine, lived-autonomy answer sounds like: "Last quarter one of our engineers decided independently to switch a service from synchronous to async processing after noticing latency complaints; she looped in two people for a sanity check, shipped it, and reported the outcome in the next team sync." A marketing-only answer sounds like: "We really believe in empowering our engineers," repeated with no specific incident when pressed twice. If a peer engineer you speak to separately can also describe a comparable specific incident in their own words, that consistency is strong corroborating evidence; if the hiring manager's story turns out to be the ONLY example anyone can produce company-wide, that is itself informative about how common the behavior actually is.
Trade-offs & pitfalls
The main failure mode is accepting an interviewer's fluent, confident description of the culture as sufficient evidence on its own; confidence and specificity are not the same thing, and a well-rehearsed answer to a values-page question is exactly what a company under-delivering on its stated culture is most likely to have prepared. A second pitfall is over-weighting a single glowing anecdote from one enthusiastic interviewer without checking whether it generalizes; one great story is an anecdote, not a pattern. A third is treating any inconsistency you find as automatically disqualifying: it is normal for a large or growing organization to have real variance across teams, so the useful conclusion is usually about the SPECIFIC team and manager you'd actually join, not the company as a monolithic whole.
Recommended Additional Resources
- Designing Data-Intensive Applications by Martin Kleppmann (foundational for understanding distributed systems)
- Site Reliability Engineering: How Google Runs Production Systems (O'Reilly) - practical SRE principles
- The Phoenix Project by Gene Kim - understanding DevOps and system thinking
- LeetCode Medium-difficulty problems (30-50 problems for coding practice)
- Airbnb Engineering Blog (airbnb.io/engineering) - understand Airbnb's technical challenges and solutions
- Kubernetes documentation and practice deploying applications
- Distributed Systems course by Martin Kleppmann on YouTube
- Prometheus and Datadog documentation for monitoring and observability
- Incident.io or Rootly documentation for understanding modern incident management
- Practice system design on SystemsExpert or similar platforms (focus on real-world systems like Netflix, Uber, Airbnb)
- Amazon Leadership Principles applied to SRE context (for cultural fit preparation)
- Mock interview platforms: Exponent, InterviewKickstart, or Pramp for behavioral and technical practice
Search Results
Airbnb Software Engineer Interview Guide – Process, Questions ...
If you're preparing for the Airbnb software engineer interview, expect a mix of algorithm, system design, and code-quality questions that ...
34 Site Reliability Engineer Interview Questions (With Sample ...
Site reliability engineer general questions · Why do you want to work for this company? · What are your greatest strengths? · What's the best ...
Top 40 Airbnb Interview Questions
Describe one of the creative things you've done recently. · What is the scariest thing you've ever done? · What is your view on Airbnb China? · How ...
Site Reliability Engineering Interview Questions - MentorCruise
Study Mode · 1. How do you deal with on-call emergency issues · 2. Which programming languages are you most comfortable working with? · 3. What steps would you ...
Airbnb Interview Questions (Updated 2025) - Exponent
Review this list of 35 Airbnb interview questions and answers verified by hiring managers and candidates.
AirBnB SRE virtual on-site coding interviews | Tech Industry - Blind
The AirBnB virtual on-site for SRE has 2 coding rounds. For SWE, the typical problems are leetcode hards. Does anyone know if for SREs, ...
Airbnb Site Reliability Engineer Interview Questions - NodeFlair
Utilizing advanced AI, our tool generates tailored interview questions based on your industry, role, and experience. Practice and receive feedback on your ...
This interview preparation guide was generated using AI-powered research from the sources listed above. While we strive for accuracy, we recommend verifying critical information from official company sources.
Want to create your own tailored preparation guide using our deep research?
Get Started for FreeInterview-Ready Courses
Visual-first, interactive, structured learning paths
Browse Site Reliability Engineer (SRE) jobs
AI-enriched listings across hundreds of company career pages
Explore Jobs