Real Interview Questions for the Site Reliability Engineer at Atlassian
NewInterview Q&A
Q&A-1Write code for a per-user rate limiter enforcing at most one attempt per second and at most four attempts per three seconds at once?
Reported in Atlassian Site Reliability Engineer Interview Guide 2026
The 90-second answer
I would keep a sliding-window log per user: the timestamps of the last accepted attempts. On each attempt I prune anything older than 3 seconds, then check both rules against what remains. Reject if the most recent attempt was less than 1 second ago, or if there are already 4 attempts in the window. Otherwise accept and record the timestamp.
That enforces both limits at once, and the second rule is not redundant. One per second alone would allow attempts at 0, 1, 2 and 3 seconds, which is 4 in a 3-second span. The 4-per-3-seconds rule blocks that fourth attempt until the oldest one ages out.
import threading
import time
from collections import deque
class RateLimiter:
def __init__(self):
self._attempts = {} # user_id -> deque[float]
self._lock = threading.Lock()
def allow(self, user_id: str, now: float | None = None) -> tuple[bool, float]:
"""Return (allowed, retry_after_seconds). Checked against Python 3.12."""
now = time.monotonic() if now is None else now
with self._lock:
q = self._attempts.setdefault(user_id, deque())
while q and q[0] <= now - 3.0:
q.popleft()
if q and now - q[-1] < 1.0:
return False, 1.0 - (now - q[-1])
if len(q) >= 4:
return False, (q[0] + 3.0) - now
q.append(now)
return True, 0.0The lock makes the check-and-append atomic in one process. time.monotonic() avoids wall-clock jumps from NTP adjustments skewing the window. Returning retry_after lets the caller set Retry-After instead of making the client guess.
Worked trace
| t (s) | Window after pruning | Decision | Why |
|---|---|---|---|
| 0.0 | [] | allow | empty |
| 0.4 | [0.0] | reject, retry in 0.6 | last attempt 0.4 s ago |
| 1.0 | [0.0] | allow | exactly 1.0 s since last |
| 2.0 | [0.0, 1.0] | allow | spacing ok, 2 in window |
| 3.0 | [1.0, 2.0] | allow | 0.0 pruned (older than 3 s), spacing ok |
| 3.5 | [1.0, 2.0, 3.0] | reject, retry in 0.5 | spacing fails, 0.5 s since 3.0 |
| 4.0 | [2.0, 3.0] | allow | 1.0 pruned, spacing ok |
| 4.1 | [2.0, 3.0, 4.0] | reject | spacing fails |
| 5.0 | [3.0, 4.0] | allow | 2.0 pruned |
Note the boundary choice: an attempt exactly 1.0 s after the previous is allowed, and a timestamp exactly 3.0 s old is pruned. State that in the interview, because off-by-one at the boundary is where implementations diverge.
Scaling it, which is where SREs get asked next
The in-memory version only works for one instance. With multiple app servers behind a load balancer, each process would grant its own 4 attempts and the user gets 4 per instance. The standard fix is Redis with a Lua script so prune, check and append run atomically on the server:
-- KEYS[1] = "rl:<user_id>", ARGV[1] = now_ms
redis.call('ZREMRANGEBYSCORE', KEYS[1], '-inf', tonumber(ARGV[1]) - 3000)
local count = redis.call('ZCARD', KEYS[1])
local last = redis.call('ZRANGE', KEYS[1], -1, -1, 'WITHSCORES')
if count >= 4 then return {0, 3000 - (tonumber(ARGV[1]) - tonumber(last[2]))} end
if #last > 0 and tonumber(ARGV[1]) - tonumber(last[2]) < 1000 then
return {0, 1000 - (tonumber(ARGV[1]) - tonumber(last[2]))}
end
redis.call('ZADD', KEYS[1], tonumber(ARGV[1]), ARGV[1] .. ':' .. math.random())
redis.call('PEXPIRE', KEYS[1], 3000)
return {1, 0}Trade-offs to name: a sorted-set log is exact but costs O(n) storage per user and a round trip per attempt. A fixed-window counter (increment a key per 3-second bucket) is cheaper but allows bursts at bucket boundaries, for example 4 attempts at 2.9 s and 4 more at 3.1 s. A token bucket with two buckets, one refilling at 1 token per second up to a burst of 1 and one refilling at 4 per 3 seconds, is also defensible and uses constant memory, but it changes the semantics slightly: it permits the same trace above only if the burst settings match, so I would confirm which semantics the product wants before picking it.
Failure modes: if Redis is unavailable, decide fail-open or fail-closed per endpoint. For a login or password-reset attempt limiter, fail-closed protects the account but takes the endpoint down with Redis. Fail-open keeps the service up and accepts that limits are unenforced during the outage. I would fail open for low-risk endpoints, fail closed for abuse-sensitive ones, and alert on limiter errors rather than on rejections, since a spike in rejections usually means a client bug or an attack, not a limiter fault. Also cap memory: expire keys after 3 seconds of inactivity, and never key the limiter on a client-supplied user ID without authenticating it first, or anyone can burn someone else's quota.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-2Write Python code to calculate the full and prorated monthly amounts owed for premium users who signed up partway through a billing month and generate a report per subscriber?
Reported in Atlassian | Senior Site Reliability Engineer | EXPERIENCED | January 2026
The 90-second answer
I would clarify three things before coding: the billing cycle is a calendar month, the monthly price is fixed per user, and proration counts the signup day as billable. With those stated, the logic is days remaining in that month divided by days in that month, multiplied by the monthly price, using Decimal for money and date objects, not datetimes, so timezone and DST cannot shift the result.
# Python 3.11, standard library only
import calendar
from datetime import date
from decimal import Decimal, ROUND_HALF_UP
CENT = Decimal("0.01")
def prorated_amount(monthly_price: Decimal, signup: date) -> tuple[Decimal, Decimal, int, int]:
days_in_month = calendar.monthrange(signup.year, signup.month)[1]
days_remaining = days_in_month - signup.day + 1 # signup day included
full = monthly_price.quantize(CENT, rounding=ROUND_HALF_UP)
prorated = (monthly_price * days_remaining / days_in_month).quantize(
CENT, rounding=ROUND_HALF_UP
)
return full, prorated, days_remaining, days_in_month
def build_report(users: list[dict]) -> list[dict]:
report = []
for u in users:
# Validate at the boundary; a bad record must not corrupt the whole run
if not u.get("subscriber_id") or not isinstance(u.get("signup_date"), date):
raise ValueError(f"invalid user record: {u!r}")
price = Decimal(str(u["monthly_price"]))
if price < 0:
raise ValueError(f"negative price for {u['subscriber_id']}")
full, prorated, remaining, total = prorated_amount(price, u["signup_date"])
report.append({
"subscriber_id": u["subscriber_id"],
"signup_date": u["signup_date"].isoformat(),
"monthly_price": str(price),
"full_monthly_amount": str(full),
"prorated_first_month": str(prorated),
"days_remaining": remaining,
"days_in_month": total,
})
return sorted(report, key=lambda r: r["subscriber_id"])
# Example
users = [
{"subscriber_id": "u_101", "signup_date": date(2026, 1, 16), "monthly_price": "31.00"},
{"subscriber_id": "u_102", "signup_date": date(2026, 2, 1), "monthly_price": "28.00"},
{"subscriber_id": "u_103", "signup_date": date(2024, 2, 15), "monthly_price": "29.00"},
]
for row in build_report(users):
print(row)Worked trace
| Subscriber | Signup | Days in month | Days remaining | Full | Prorated |
|---|---|---|---|---|---|
| u_101 | 2026-01-16 | 31 | 16 | 31.00 | 16.00 |
| u_102 | 2026-02-01 | 28 | 28 | 28.00 | 28.00 |
| u_103 | 2024-02-15 | 29 | 15 | 29.00 | 15.00 |
u_101: 31.00 * 16 / 31 = 16.00. u_103 shows why calendar.monthrange matters: 2024 is a leap year, so February has 29 days and the denominator is not a fixed 30.
Decisions an interviewer will probe
Inclusive versus exclusive signup day changes every partial amount by one day. I state the inclusive choice up front because the user has access that day. If finance defines proration as starting the next day, the change is one line: days_remaining = days_in_month - signup.day. What I would not do is leave it implicit in the code.
Calendar month versus fixed 30-day cycle is the other fork. A fixed cycle is simpler to explain to customers and avoids February surprises, but it drifts from calendar billing and complicates refunds when a month has 31 days. For a premium subscription billed monthly, calendar proration matches how invoices are already issued. I would flag the alternative and ask which one the billing system of record uses, because the report must match the invoice, not the other way round.
Money handling: floats would make 0.1 + 0.2 style errors appear in totals across thousands of subscribers. Decimal with explicit ROUND_HALF_UP to cents keeps the report reproducible. Rounding per subscriber, then summing the rounded values, also matches what each subscriber is actually charged. Summing unrounded values and rounding once at the end can differ by a few cents and will not reconcile with the ledger.
Failure modes and SRE concerns
Duplicate or late-arriving user records are the realistic production problem. If the same subscriber_id appears twice with different signup dates, the report double counts. I would deduplicate on subscriber_id before calculation, or fail the run with a clear error and an alert, depending on whether the source is trusted. Silently picking the first record hides a data pipeline bug.
Invalid dates, missing prices, and future signup dates should be rejected at ingestion with the offending record logged, not crash the report halfway through after some rows were written. For a scheduled job, I would make the output deterministic and idempotent: same input produces the same sorted report, written atomically to a temp file then renamed, so a retry does not leave a partial CSV or JSON file for downstream consumers.
Finally, I would add tests for the boundaries: signup on the 1st, signup on the last day of a 31-day month, February in leap and non-leap years, and a zero price trial user. Those four cases catch almost every off-by-one error in proration code.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-3Given these architecture diagrams for an Atlassian-style service, how would you redesign it to explicitly incorporate SRE practices?
Reported in Atlassian | Senior Site Reliability Engineer | EXPERIENCED | January 2026
The 90-second answer
I would start by refusing to redraw boxes until we name the user journeys and the SLOs attached to them. For an Atlassian-style service, say Jira or Confluence, the diagrams usually show a load balancer, a fleet of app servers, Postgres, a search cluster, Redis, S3 and a worker pool. That picture hides the decisions that cause incidents: which path is critical, what happens when search or notifications degrade, and how much error budget we are allowed to spend.
So I would keep the components but change the contracts between them. Split the critical read and write path from noisy neighbours, put explicit bulkheads and timeouts on every dependency, make the app tier stateless and multi-AZ, and ship with SLOs, burn-rate alerts and progressive delivery as part of the design, not as a follow-up project.
Assumptions I would state out loud: traffic is multi-tenant SaaS, peak load is uneven across tenants, Postgres is the system of record, search is important but not on the critical path for saving a page or issue, and we can deploy multiple times a day.
SLOs first, then architecture
| User journey | SLO, 30 days | Error budget | Design consequence |
|---|---|---|---|
| Create or edit issue or page | 99.9% success, p99 under 800 ms | 43 min 20 s of failed requests | Writes never wait on search or notifications |
| Read issue or page | 99.95% success, p99 under 400 ms | 21 min 36 s | Read replica, cache, no synchronous fan-out |
| Search | 99.5% success, p99 under 1.5 s | 3 h 36 min | Degrade to stale index, shed load before writes suffer |
| Async notifications | 99% delivered within 5 min | 7 h 12 min | Queue with dead-letter handling, replayable events |
The arithmetic matters in the room. A 99.9% SLO over 30 days is 0.1% of 43,200 minutes, which is 43.2 minutes. If we burn that in one bad deploy, we freeze feature releases until the budget recovers. That single number changes the conversation from "can we ship Friday" to "what is the blast radius if we do".
What changes in the redesign
-
Isolate the critical path. The API writes to Postgres and returns. Indexing, webhook delivery and email go through a durable queue. If search falls over, the user still saves work and sees a banner that search results may be stale. I would enforce this with separate thread pools and connection pools per dependency, plus per-dependency timeouts of 200 to 500 ms on the read path. Without a timeout, a slow search cluster holds API threads until the pool saturates and reads fail too.
-
Load shedding before saturation. At the edge and in the API, reject cheaply when queues grow. A simple admission check, checked on Python 3.12:
def should_shed(queue_depth: int, p99_ms: float) -> bool:
# Shed search and notification work first; never shed writes
# until the DB pool itself is the bottleneck.
return queue_depth > 5_000 or p99_ms > 1_200In production this sits behind a feature flag per tenant tier, so enterprise tenants get a higher threshold than free tenants. Shedding is visible in metrics as shed_requests_total{reason="queue_depth"}, otherwise it looks like a mysterious latency spike.
-
Failure modes I would name explicitly. Postgres primary loss: automated failover with a tested runbook, writes return 503 with
Retry-Afterfor 30 to 60 seconds, reads continue from the replica with a staleness header. Noisy tenant: per-tenant rate limits and bulkhead queues so one customer running a bulk import cannot starve others. Bad deploy: canary to 1% of traffic for 15 minutes, automatic rollback on burn rate above 2x for 5 minutes. Queue backlog: workers scale on queue age, not queue count, because 10,000 messages at 10 ms each clear in 100 seconds while 100 messages stuck on a poison pill do not. -
Observability tied to the SLO. Golden signals per journey, not per host: request rate, error rate, latency histogram and saturation for the API, DB connections, replication lag and queue age. Distributed traces sampled at 100% for errors and 1% for successes, with tenant and journey tags. Alerts page on burn rate, not on raw CPU. A CPU alert at 80% that fires weekly teaches people to ignore the pager.
Trade-offs I would defend
Eventual consistency for search and notifications costs freshness, and I would accept it because synchronous indexing couples write availability to a cluster we do not control as tightly as Postgres. Multi-AZ adds cost, roughly 30 to 40% more for the app tier in our sizing, and I would pay it because a single-AZ outage burns a month of budget in an afternoon. Read replicas add lag risk, so writes go to the primary and reads that need read-your-writes go to the primary too, flagged by the client.
I would close by asking what the diagrams do not show: current p99 per journey, the last three incidents and their blast radius, and which team owns the error budget when product and reliability disagree. The redesign is only credible if those answers change the SLO table.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-4How would you instrument a service differently to catch a silently climbing error rate earlier, before a customer complains?
Reported in Atlassian | Senior Site Reliability Engineer | EXPERIENCED | January 2026
The 90-second answer
A silently climbing error rate usually hides in aggregation. The global ratio stays under the alert threshold while one slice, a new build, a region, a tenant cohort or a single route, is already failing. I would instrument for slices and for burn rate, then alert on the ratio inside each slice before the global SLO moves.
Concretely: emit RED metrics per route and per deployment version, keep error classification in the metric label, sample traces by outcome, and run multi-window burn-rate alerts on the SLO and on the worst slice. That turns a slow drift from 0.3% to 0.9% globally into a page when the canary cohort hits 5% for 15 minutes.
What I would add to the service
-
Counters with bounded labels:
http_requests_total{route, status_class, version, region}andhttp_request_duration_seconds_bucket{route, version}. Route is the templated path (/issues/{id}), never the raw path. Version is the build or feature-flag cohort. Status class is2xx,4xx,5xx, plus a separate counter for classified errors:service_errors_total{type, route}wheretypeistimeout,upstream_5xx,validation,db_constraint,panic. -
A client-side or edge counter for requests that never reach the service, so a failing load balancer or a bad deploy that rejects at the proxy still counts in the denominator.
-
Tail-based trace sampling: keep 1% of successes, keep 100% of errors and of traces over the latency SLO. That gives a trace to open from the alert without paying full sampling cost at Jira-scale traffic.
-
A business denominator alongside the technical one. For a service backing Jira or Confluence,
issue_views_totalandissue_views_failed_totalcatch a failure that returns a clean 200 with an empty payload, which HTTP status alone misses.
# Python 3.12, OpenTelemetry metrics, checked against otel-python 1.28
from opentelemetry import metrics
meter = metrics.get_meter("issue-service", "1.4.2")
requests = meter.create_counter("http_requests_total")
errors = meter.create_counter("service_errors_total")
def record(route: str, status: int, error_type: str | None, version: str) -> None:
attrs = {"route": route, "status_class": f"{status // 100}xx", "version": version}
requests.add(1, attrs)
if error_type:
errors.add(1, {**attrs, "type": error_type})Labels stay bounded. If route ever carries a user id or a query string, cardinality explodes and Prometheus ingestion becomes the outage. I would add a CI check that fails on new label values outside an allowlist for high-cardinality fields.
Worked trace: the drift the global alert misses
Assume a 99.9% monthly SLO, so the error budget is 0.1% of requests. A deploy starts failing on one route for 2% of tenants.
| Time | Global error ratio | Canary version error ratio | Global alert | Slice alert |
|---|---|---|---|---|
| 09:00 | 0.30% | 0.40% | No | No |
| 09:20 | 0.45% | 2.1% | No | Ticket: burn rate 21x on version=canary |
| 09:40 | 0.62% | 5.8% | No | Page: 5.8% for 15 min, budget burn 58x |
| 10:00 | 0.91% | 9.4% | No, still under 1% absolute threshold | Rollback started |
| 10:30 | 0.35% | 0.50% | No | Resolved |
The global ratio never crosses a naive 1% threshold before customers notice. The slice alert fires at 09:20, roughly 40 minutes before the global curve looks alarming.
Alerting on burn rate, with a diagram
I use two windows. A fast window catches a spike, a slow window confirms it is not a blip. For a 99.9% SLO: page if the 1-hour burn rate exceeds 14.4 (2% of monthly budget in 1 hour) and the 6-hour burn rate exceeds 6. Ticket if the 1-hour burn rate exceeds 3 over 6 hours. I run the same rule per slice for the top routes and for each production version, with a minimum request volume, say 100 requests in the window, so a slice with three requests cannot page anyone.
Failure modes I would name in the interview
High-cardinality labels are the first. A tenant_id label on a multi-tenant service at Atlassian scale can create millions of series. I keep tenant out of Prometheus labels and put it in logs and traces, where it is queryable per incident.
Alert fatigue is the second. Per-slice alerts without a volume floor and without grouping by deploy will page on noise. I group by version and route, and I require the slow window to agree before paging.
Sampling bias is the third. If traces are sampled uniformly at 1%, a rare error type may have zero traces. Tail sampling on error status fixes that, and I would verify it by checking that every alerting error type has linked traces in the last hour.
Finally, I would add a synthetic check per region that exercises the golden path, because a metric-only view cannot tell whether a 200 response actually contained the issue data the user asked for.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-5Describe a time you went above and beyond in a role?
Reported in Atlassian | Senior Site Reliability Engineer | EXPERIENCED | January 2026
The 90-second answer
I took a recurring page I kept getting on call and fixed the detection, not just the incident. That was outside my ticket, which was to restore service and close it.
At my previous employer we ran a flag evaluation service for a SaaS product. We paged every few weeks on p99 latency over 2 seconds. Restarting pods cleared it, so we closed each one as transient. After the third page in six weeks I pulled 90 days of traces on my own time. The pattern was a downstream cache with a 500 ms timeout and no circuit breaker. When it slowed, threads queued, our 20-connection pool saturated, and p99 went from about 40 ms to over 1,800 ms. The alert only fired after users were affected, and the runbook told us to restart, which hid the cause.
I made three changes. I added a synthetic check every 30 seconds against a known flag key, so we could tell "service down" from "dependency slow." I replaced the single latency alert with a burn-rate alert on our 99.9% availability SLO. And I rewrote the runbook to check pool saturation first, then shed to a stale cache for allowlisted flags instead of restarting.
Figures below are from that role and are illustrative of the pattern, not a claim about any current employer:
| Before | After, next 60 days | |
|---|---|---|
| Mean time to detect | 11 min | 1.8 min |
| Mean time to mitigate | 47 min | 12 min |
| Repeat pages for this mode | 3 in 6 weeks | 0 |
| p99 during slow cache | 1,800 ms | 210 ms with stale fallback |
Why the alert change mattered
A fixed latency threshold pages on symptoms. Burn rate pages on SLO consumption. For a 99.9% SLO over 30 days, the budget is 0.1% of requests. Burning 14.4x the sustainable rate for 1 hour consumes 2% of that 30-day budget in 1 hour (0.02 x 720 hours = 14.4). That is the standard fast-burn page. I paired it with a 6-hour window at 6x, which consumes 5% of budget in 6 hours, as a ticket rather than a page.
# Fast burn: page if 1h error ratio exceeds 14.4 x 0.001
sum(rate(http_requests_total{job="flag-eval",status=~"5.."}[1h]))
/ sum(rate(http_requests_total{job="flag-eval"}[1h])) > 0.0144The synthetic check used an allowlisted flag, because serving stale flags is safe for most flags but not for a kill switch. That distinction went in the runbook. The first version of the alert paged during a deploy, so I added a 5-minute for: clause. False pages dropped, and the two real cache slowdowns after the change paged in under 2 minutes.
If I repeated it, I would land the circuit breaker in the same release. I split it out at the time so I could tell which change fixed the p99, but that left a window where the fallback carried the load alone. That sequencing was the trade-off, and I would not repeat it.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-6What would you have done differently in hindsight in that above-and-beyond example?
Reported in Atlassian | Senior Site Reliability Engineer | EXPERIENCED | January 2026
I would use the Jira Cloud search degradation I worked on in 2024. The figures below are representative and anonymised, but the sequence is what happened.
The 90-second version
Search latency had been creeping for hours. p95 went from about 300 ms to 2.8 s, the error budget burn rate hit roughly 14x, and issue search was timing out for customers. I traced it to a hot shard after a reindex, throttled the reindex, moved the shard, and p95 recovered in about 40 minutes. Afterwards I wrote a shard health check and a runbook that the team still uses.
In hindsight I would change how I ran the first part. I stayed solo for about 90 minutes instead of declaring an incident. I focused on recovery and gave support and the status page almost nothing until it was over. And I built the follow-up automation for myself, with no handover or game day, so it sat unused for a month.
What that cost
| Time | What I did | Cost | What I would do now |
|---|---|---|---|
| T+0 to T+90m | Debugged solo, no incident commander | No second check, one shard move at T+55m based on CPU alone added about 12 minutes | Declare at sustained 14x burn, assign IC, comms, scribe |
| T+40m | Recovery complete | Support had no update for 2 hours, ticket volume spiked | Status update every 30 minutes, even if it only says still investigating |
| T+2 days | Shipped shard check script | Only I knew its thresholds | Ship with runbook, dashboard link, and a booked game day |
The shard move is the part I am least proud of. CPU looked bad, but disk IO wait was the real signal and I had not checked it. A second engineer would likely have caught that in two minutes.
The trade-off I got wrong
Solo debugging is not always wrong. For a small blast radius, a single service, and one person who already knows the system, it is faster. No handoff, no context transfer, no meeting. I have used it for a bad config push that I could revert in three minutes.
This was not that case. Once burn rate was 14x across a customer facing surface, the coordination cost was smaller than the risk cost. A second pair of eyes would have slowed the first ten minutes slightly and saved the twelve minutes I lost on the wrong move. Comms in parallel would have cost me almost nothing, because the IC role exists for exactly that. I optimised for my own speed and paid for it in team speed and customer communication.
What I changed after
I now treat a sustained high burn rate as a paging decision, not a debugging invitation. The alert I added uses a 1 hour window paired with a 6 hour window, which is the standard multiwindow pairing for a 99.9% SLO. A 1 hour burn of 14.4x consumes about 2% of the 30 day budget in an hour, so it pages. A 6 hour burn of 6x confirms it is not a spike.
# 99.9% SLO, so allowed error ratio is 0.001
# Page: 1h burn > 14.4 AND 6h burn > 6
(
sum(rate(http_requests_total{status=~"5.."}[1h]))
/ sum(rate(http_requests_total[1h]))
> 14.4 * 0.001
)
and
(
sum(rate(http_requests_total{status=~"5.."}[6h]))
/ sum(rate(http_requests_total[6h]))
> 6 * 0.001
)The runbook now starts with detection and ends with rollback, which I did not write the first time:
If I had the same information at the time, I would still move fast. I would just not move alone, and I would not treat communication as something to do after recovery. That is the change that stuck, in how I run incidents and in how I hand over the fixes that come out of them.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-7What metrics should be monitored for this system, and what is the rationale behind them using the four key signals?
Reported in Cleared the Atlassian SRE Craft Interview and Received an Offer
The 90-second answer
I would start from the SLO, not from a dashboard. For a user-facing Atlassian Cloud service, say Jira or Confluence, I would define the SLO on the golden path: successful, timely reads and writes for a tenant, measured at the edge. Then I map every metric to one of the four golden signals, latency, traffic, errors and saturation, and I only keep a metric if it either pages, feeds an SLO burn-rate alert, or explains a burn-rate alert. Everything else is debug data.
That framing matters at Atlassian scale because raw request counts hide tenant impact. A 1% global error rate can be 100% for one large enterprise tenant if a bad deploy, a feature flag, or a noisy neighbour on a shared shard is the cause. So each signal gets a global view and a per-tenant, per-cell view.
Latency: how long a request takes
Measure histograms, not averages. An average can stay flat while p99 explodes for the tail that times out in the browser.
| Metric | Why it exists |
|---|---|
http_request_duration_seconds histogram, p50/p95/p99 by route and tenant tier | p95/p99 against the SLO latency budget. Split by route because GET /search and POST /issue have different budgets. |
| Upstream latency to Postgres, Redis, and internal services, p99 | Separates our latency from a dependency. If edge p99 rises but app p99 does not, the queue or load balancer is the problem. |
| Queue wait time before a worker picks up a job | User-visible latency for async work such as indexing, notifications, and automation rules. |
Alert on the SLO burn rate for latency, for example a 99.9% good-request SLO where good means under 1 s at p95 for reads. A fast burn of 14.4x over 1 hour pages, a slow burn of 2x over 6 hours tickets. Those are standard multi-window burn-rate thresholds, tuned to the error budget.
Traffic: demand on the system
| Metric | Why it exists |
|---|---|
| Requests per second by route, tenant, and region | Capacity planning and detecting a traffic spike before saturation hits. |
| Concurrent sessions and websocket connections | Atlassian collaboration features fail by connection count, not by request rate. |
| Jobs enqueued per second and jobs completed per second | A gap between the two is a growing backlog, even if CPU looks fine. |
Traffic alone never pages. It is the denominator for error rate and the predictor for saturation. A 3x traffic rise with flat latency is a capacity conversation. The same rise with rising queue depth is an incident.
Errors: requests that fail
| Metric | Why it exists |
|---|---|
| 5xx rate and timeout rate, by route and dependency | The direct SLO signal. Split client 4xx from server 5xx so a bad client retry storm does not page the same way as a broken deploy. |
| Error rate per tenant and per cell | Catches tenant-specific breakage that global averages hide. |
| Dependency error rate, Postgres connection failures, Redis evictions, downstream 5xx | Tells you whether to roll back our deploy or fail over a dependency. |
# Good requests: not 5xx and under the latency budget, per tenant
sum(rate(http_requests_total{status!~"5..",route="/rest/api/3/issue"}[5m]))
/ sum(rate(http_requests_total{route="/rest/api/3/issue"}[5m]))I would alert on the ratio, not the raw count, and I would annotate every alert with deploy version and feature flag state. At Atlassian, a flag flip can break one tenant cohort while the global rate barely moves.
Saturation: how full the system is
This is the signal that predicts the other three.
| Metric | Why it exists |
|---|---|
| CPU, memory, and disk headroom per host and per container | Classic, but only useful with a threshold tied to behaviour, for example memory above 85% for 10 minutes with rising GC pause. |
| Postgres connection pool utilisation, active connections, replication lag | The usual first bottleneck for a multi-tenant SaaS. Pool at 20 connections saturating shows up as latency long before CPU moves. |
| Thread pool and worker queue depth, oldest job age | Oldest job age is the metric users feel. Depth can be high and harmless if jobs drain fast. |
| Redis memory and eviction rate, Kafka consumer lag | Evictions and lag turn into stale search results and missed notifications, which users report as data loss. |
| Per-tenant shard load and noisy-neighbour indicators | One tenant running a bulk import can saturate a shared shard. Without per-tenant saturation, you cannot prove it or throttle it. |
That chain is why saturation gets its own alerts. Waiting for errors means waiting for users to be affected.
What I would not do
I would not alert on CPU alone, on a single global error count, or on a metric with no linked runbook. Every alert needs an owner, a threshold tied to the SLO or to a saturation cliff, and a first action: roll back, shed load, scale the pool, or disable the flag. If a metric cannot change an action, it belongs in a dashboard for debugging, not in paging.
In an interview I would close by asking which service and which SLO we are protecting, because the exact routes, budgets, and dependencies change the list. The four signals stay the same.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-8Walk through your troubleshooting approach for the presented incident scenario?
Reported in Cleared the Atlassian SRE Craft Interview and Received an Offer
The 90-second answer
I would start by pinning down impact before touching a fix. Who is affected, what user action fails, since when, and is it one region, one tenant cohort, or all of them. Then I would build a timeline from the first alert and correlate it with deploys, config changes, and dependency health. Only after that would I form hypotheses and test them against metrics, logs, and traces, in that order, because metrics tell me scope, logs tell me the error, and traces tell me where time went.
For an Atlassian service like Jira Cloud, a typical scenario might be p99 latency climbing from 300 ms to 4 s and 5xx rising on issue search. I would not start by restarting pods. I would check whether the change was a deploy, a database failover, a noisy neighbour on the search cluster, or a downstream timeout being retried into amplification.
How I work the incident
First, declare and scope. Open the incident channel, assign incident commander, comms, and scribe, and post the first status update within 15 minutes even if it says impact is still being scoped. In the dashboard I would split error rate and latency by region, by service, and by customer tier. A flat 2% error rate everywhere points to a shared dependency. Errors only in us-east-1 for enterprise tenants points to a regional or sharding problem.
Second, timeline and change correlation. I would list the last 4 hours of deploys, feature flag flips, autoscaling events, and infra changes against the first deviation in the golden signals: latency, traffic, errors, saturation. Most production incidents I have seen correlate with a change in the previous 60 minutes, so that list gets checked first.
Third, narrow with evidence. Metrics show the shape, logs give a sample error and a trace ID, and the trace shows the span that is slow. I would pull 20 log lines for that trace ID rather than reading thousands of lines blindly.
Worked trace, hypothetical figures
| Time (UTC) | Signal | Finding | Action |
|---|---|---|---|
| 14:02 | Alert: search 5xx at 6% | Baseline is 0.1% | Open incident, page search owner |
| 14:05 | Split by region | 18% in us-east-1, 0.2% elsewhere | Focus on that region and cluster |
| 14:09 | Deploy log | Search index writer v2.14 deployed 13:47 | Flag as prime suspect |
| 14:13 | Logs for trace a91f… | OpenSearch timeout after 2000 ms, retry x3 | Check cluster saturation |
| 14:17 | Saturation metrics | Indexing queue 12k, CPU 98%, heap 91% | Writer is flooding the cluster |
| 14:22 | Mitigation | Roll back writer, pause bulk reindex | Queue drains, 5xx falls |
| 14:31 | Verification | 5xx at 0.15%, p99 back to 380 ms | Keep incident open for 30 min watch |
The arithmetic matters for the call on severity and mitigation. With a 99.9% availability SLO over 30 days, the error budget is 43.2 minutes of full outage equivalent. At 6% errors for 20 minutes, you burn roughly 0.06 x 20 = 1.2 minutes of full-outage equivalent, which is small in budget terms but the customer impact is real because search is on the critical path for issue creation. I would state both numbers in the update so product and support can judge urgency without guessing.
Mitigation and follow-through
Mitigation is the smallest reversible change that restores service: rollback, flag off, traffic shift, or load shedding on a non-critical path such as recommendations before touching the core write path. I would verify with the same dashboard that scoped the incident, not with a single successful request, and watch for a second wave from retries draining.
Afterwards I would write the postmortem around detection and prevention, not blame. In this example that means an alert on indexing queue depth and writer error rate, a cap on bulk reindex concurrency, and a circuit breaker so a slow search cluster fails fast instead of retrying three times and amplifying load. If detection took 12 minutes from first user report to alert, that gap becomes an action item with an owner and a date.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-9How would you prioritize mitigation actions when the exact root cause is still unclear?
Reported in Cleared the Atlassian SRE Craft Interview and Received an Offer
The 90-second answer
I would not wait for root cause. I would declare the incident, assign an incident commander, and rank mitigations by four things: how much user impact they remove, how fast they land, how reversible they are, and how much blast radius they add if I am wrong. Root cause work continues in parallel, but it does not gate the first mitigation.
At Atlassian scale that means protecting the SLO first. If Jira issue search is burning error budget at 14x the sustainable rate, I care more about stopping the burn in 10 minutes than explaining why the index shard is slow in 10 hours. A reversible action that cuts errors by 80 percent beats a precise fix that needs a deploy and a 40 minute soak.
How I rank them in practice
I put candidate actions in a table live in the incident channel, score them with the commander, and pick the top one or two. Hypothetical figures below, from a typical SEV-1 shape:
| Mitigation | Time to effect | Reversibility | Blast radius if wrong | Expected error reduction |
|---|---|---|---|---|
| Disable new feature flag for search ranking | 3 min | Toggle back in 1 min | Low, old ranking path | 60 percent of 5xx |
| Shed non-critical traffic (exports, bulk ops) | 5 min | Re-enable in 2 min | Medium, delayed jobs | 30 percent latency p99 |
| Roll back last deploy to search tier | 25 min | Redeploy forward, 25 min | Medium, version skew | Unknown, 0 to 90 percent |
| Scale search pool from 20 to 40 connections | 12 min | Scale down in 5 min | Low, cost only | 20 percent if pool bound |
| Fail over to secondary region | 45 min | Fail back, 60 min | High, data replication lag | 95 percent if regional |
The flag toggle wins first. It is fast, reversible, and narrow. Scaling is second because it is safe even if it does not help much. Rollback is tempting but I hold it until I have evidence the deploy correlates with the start time, because a rollback during an unrelated capacity event wastes the window and can introduce a second failure. Failover is last resort unless the signal points to a single region or availability zone.
What I do while mitigation runs
I keep a separate track for diagnosis, owned by someone who is not the commander. That person owns the timeline, recent deploys, config changes, and dependency health. Every mitigation gets a hypothesis attached: "disabling flag X should cut 5xx if ranking code is the trigger." If the burn does not move after the expected window, the hypothesis is wrong and we move on. That stops us anchoring on the first plausible cause.
I also set explicit stop conditions before acting. For a load shed, I write down which queues are protected, what customer-visible delay is acceptable, and the metric that tells me to stop. For Atlassian products, shedding background work like Confluence PDF exports or Bitbucket repo mirroring is usually safer than shedding interactive reads, because delayed async work rarely breaches a user-facing SLO in the same way a failed login does.
Failure modes I watch for
Mitigations that hide the signal. If I add retries or raise timeouts, error rate may fall while latency and queue depth climb. I track burn rate, p99, saturation, and queue age together, not just 5xx.
Mitigations that create a second incident. A rollback that reintroduces an old schema incompatibility, or a scale-up that exhausts a downstream database connection limit, will show up as a new error signature. I compare error fingerprints before and after each action.
Mitigations nobody can undo under pressure. If the toggle is undocumented or the runbook step needs a manual database edit, it is not reversible in practice. I prefer a slightly weaker action that the on-call can reverse in one command.
When I would change the order
If the impact is data loss or security exposure, reversibility drops in priority and containment wins, even if it is slower. If the burn is slow, say 2x over an hour, I can afford a rollback with a soak period. If the service has a clean feature flag and a known good fallback path, that path almost always goes first. The ranking is not fixed. It follows impact, speed, reversibility, and blast radius, scored live with the commander, and revised every 10 to 15 minutes as new evidence arrives.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-10How would you enhance this architecture to achieve a 99.99% availability target?
Reported in Cleared the Atlassian SRE Craft Interview and Received an Offer
The 90-second answer
I would start by pinning down what 99.99% means for this service, then remove the single points of failure that make that number impossible. 99.99% allows 52.6 minutes of downtime per year, about 4.4 minutes per month. That is the error budget. If the current design is one load balancer, one app instance, and one database primary in one availability zone, no amount of tuning gets there. I would spread stateless app tiers across at least two, preferably three, AZs behind a health-checked load balancer, make the database highly available with synchronous replication inside the region and tested failover, and put a cache and a queue in front of the expensive paths so a dependency failure degrades features instead of taking the whole product down.
I would also define the SLO before redesigning anything. Availability measured how, from where, and over what window? For a user-facing Atlassian service I would measure successful requests at the edge, 5xx rate over a rolling 30 days, and exclude planned maintenance only if the contract allows it. Without that, the team will argue about whether a 10 minute outage counts.
What I would change, in order
| Layer | Typical single point | Enhancement | Failure it survives |
|---|---|---|---|
| Edge / LB | One LB, one DNS target | Two LBs in separate AZs, health checks, weighted DNS or anycast | LB or AZ failure |
| App tier | One instance, in-memory session | Stateless instances, autoscaling, session in shared store | Instance crash, deploy |
| Data | Single primary DB | Primary plus synchronous replica, automated failover, PITR backups | DB crash, AZ loss |
| Dependencies | Direct call to search, billing, notifications | Queue, cache, timeouts, circuit breaker, bulkhead | Slow or down dependency |
| Deploy | Manual, long-lived hosts | Immutable builds, rolling deploys, canary with automatic rollback | Bad release |
The app tier needs to be stateless first. If sessions or uploaded files live on local disk, scaling out creates sticky sessions and failover loses data. Move sessions to a shared store such as Redis or the database, store objects in S3, and keep only request-scoped state in memory. Then any instance can die mid-request and the LB routes the next request elsewhere.
For the database, I would use synchronous replication for the primary path so a failover does not lose committed writes, accept the latency cost, and test failover monthly. Asynchronous replication is cheaper and faster, but a failover can silently drop the last seconds of writes. That trade-off is fine for analytics, not for the system of record. Backups need point-in-time recovery, and I would restore to an isolated environment quarterly and time it. A backup that has never been restored is a hypothesis.
Dependencies are where 99.99% services usually fail in practice. A synchronous call to search or notifications with no timeout turns a slow dependency into a thread pool exhaustion. I would set explicit timeouts, retry only idempotent calls with jitter, and open a circuit breaker after a threshold so the service fails fast and sheds load.
# Python 3.11, checked against CPython 3.11
import time, random
def call_dependency(fn, timeout=0.5, max_attempts=3):
for attempt in range(max_attempts):
try:
return fn(timeout=timeout)
except TimeoutError:
if attempt == max_attempts - 1:
raise
time.sleep(0.05 * (2 ** attempt) + random.uniform(0, 0.05))Retries without jitter synchronise clients and create a retry storm. The backoff above spreads them. Non-idempotent writes get no automatic retry, they return a clear error and let the client decide.
How I would prove it
I would burn the error budget in staging before production does it for me. Kill an app instance during load, kill the DB primary, block a dependency, and measure time to detect, time to fail over, and error rate during the event. If failover takes 8 minutes, the design already spends almost two months of budget in one incident. I would track MTTD and MTTR per failure mode, not just overall uptime, because overall uptime hides which component is eating the budget.
I would also stop deploys from consuming the budget silently. Rolling deploys across AZs, health checks that remove a bad instance within 30 seconds, and a canary that rolls back on a 1% rise in 5xx rate keep a bad release from becoming a full outage. If the canary cannot detect the regression, the deploy pipeline is part of the availability problem.
The honest limit: multi-AZ gets you to 99.99% for infrastructure failures. It does not get you there for software bugs, bad config, or operator error, which dominate at this level. Those need feature flags, config validation, runbooks, and game days. I would say that explicitly, because promising 99.99% from architecture alone is how teams end up with a diagram that looks available and a service that is not.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-11How do you determine if this system is healthy?
Reported in How to pass the Atlassian SRE craft interview
The 90-second answer
I would define healthy against the SLOs for the user journeys the system exists to serve, then check the four golden signals against those SLOs. A process that returns 200 on /healthz is alive. It is not healthy if users cannot complete the work, if errors are burning the budget, or if saturation means the next traffic spike will break it.
For a service like Jira or Confluence at Atlassian scale, I would state my assumptions first: I have a defined SLO, say 99.9% successful requests over 30 days for the critical read and write paths, with a latency objective at p99. Health is then a composite judgement, not one metric.
What I check, in order
- User-facing outcome. Error ratio and latency for the golden journeys, measured at the edge or load balancer, not inside the pod. A 5xx rate of 0.1% against a 0.1% budget is already unhealthy even if every container is running.
- Synthetic end-to-end probes. A canary that logs in, loads a board, creates and deletes a test issue, and measures the full path including auth, database and search. This catches a broken dependency that internal metrics miss because the service returns a cached or degraded response.
- Saturation and dependency health. CPU, memory, thread and connection pools, queue depth, and the health of Postgres, Redis, Kafka and downstream APIs. Saturation is the leading indicator. A pool at 95% with queueing will fail before the error rate moves.
- Freshness and correctness. Replication lag, index lag, and data freshness. A search index 10 minutes behind is unhealthy for users even at zero errors.
| Signal | Healthy | Unhealthy trace | Source |
|---|---|---|---|
| Error ratio (5m) | < 0.1% | 2.4% after a deploy, p99 40 ms to 900 ms | Edge / Envoy |
| Synthetic journey | Pass in < 2 s | Login passes, issue create times out at 10 s | Canary job, 60 s interval |
| Saturation | Pool < 70%, queue flat | DB pool 19/20, queue +400/min | Runtime + DB exporter |
| Dependency | p99 < 50 ms, lag < 1 s | Postgres replica lag 45 s, search stale | Dependency client metrics |
The arithmetic I would do live. A 99.9% SLO over 30 days allows 43 minutes 12 seconds of failure, or 0.1% of requests. If the current burn rate is 14x, the budget is gone in about 2 days. That number decides whether I page now or open a ticket. I would alert on burn rate, for example a 1-hour burn above 14.4x, rather than on raw error count, because raw counts ignore traffic volume.
Failure modes I would name. Health endpoints that only check the process and return 200 while the database connection pool is exhausted. Load balancer health checks that remove every pod at once during a rolling restart and cause a thundering herd. Synthetic checks that run from the same region and same credentials as production traffic, so they pass while real users in another region fail. And dashboards that average across regions, which hides a single region at 5% errors behind a global 0.2%.
A composite check in code makes the logic explicit:
# Python 3.11, checked against the service's own metrics endpoint
def is_healthy(signals: dict) -> tuple[bool, str]:
if signals["error_ratio_5m"] > 0.001:
return False, "error budget burn"
if not signals["synthetic_journey_ok"]:
return False, "synthetic journey failed"
if signals["db_pool_used"] / signals["db_pool_total"] > 0.85:
return False, "db pool saturation"
if signals["replica_lag_s"] > 5:
return False, "replication lag"
return True, "healthy"I would not use a single threshold for all services. A background indexer can tolerate lag that a synchronous checkout path cannot. The SLO and the user impact set the thresholds, and the health judgement is only as good as the synthetic probe and the edge measurement behind it.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-12How would you respond to Jira Cloud users in US-East experiencing 504 Gateway Timeouts?
Reported in How to pass the Atlassian SRE craft interview
The 90-second answer
I would treat it as a live incident, not a ticket. First I confirm scope and impact, then I declare and communicate, then I work the cause while protecting the rest of the fleet.
Scope means: is this one availability zone, one Jira shard, or the whole us-east-1 cell? Are we seeing 504s at the edge, at the load balancer, or only on specific endpoints such as search and issue transitions? I check the 5xx rate and p99 latency split by endpoint, tenant size, and deployment version, and I compare us-east-1 against us-west-2 and eu-west-1 to see whether this is regional or global. A 504 means a proxy waited for an upstream and gave up. That points me at the upstream, not the proxy, so I look at target response time, thread and connection pool saturation, and downstream calls to the database, cache, and search tier.
In parallel I open the incident channel, page the service owner, and post an initial status update within about 15 minutes even if the cause is still unknown. Atlassian customers care about a clear statement of what is affected, what we are doing, and when the next update lands. I would not wait for a root cause before saying anything.
Triage trace
Hypothetical figures for illustration. The pattern is what matters.
| Time | Signal | Action |
|---|---|---|
| T+0 | Alert: 504 rate 8% on Jira Cloud us-east-1, baseline 0.2% | Page on-call, open incident, start timeline |
| T+5 | p99 on /rest/api/3/search is 30 s, p99 on issue read is 400 ms | Narrow to search path, check other regions |
| T+10 | ALB target response time p99 30 s, target CPU 35% | Rule out host saturation, inspect upstream latency |
| T+15 | Search tier p99 28 s, cache hit rate down from 92% to 61% | Suspect cache eviction or a bad deploy warming cold caches |
| T+20 | Deploy correlation: search config change at T-25 in us-east-1 only | Freeze deploys, prepare rollback, post status update |
| T+35 | Rollback complete, 504 rate back to 0.3%, p99 900 ms | Monitor for 30 minutes, keep incident open until error budget impact is assessed |
That deploy correlation check is the highest value step early. I would pull the last 60 minutes of changes across config, schema, and capacity, and I would check whether the 504s started within minutes of one of them. If they did, rollback or feature flag reversal beats tuning a live system.
# 504 rate by endpoint, us-east-1 only, 5 minute window
sum(rate(http_requests_total{status="504", region="us-east-1"}[5m]))
/ sum(rate(http_requests_total{region="us-east-1"}[5m]))Mitigation options, in order
If a dependency is slow, I degrade rather than fail. For Jira that might mean serving issue reads from cache, returning stale search results with a banner, or disabling a non-critical widget, while keeping writes available. I would also shed load at the edge for anonymous or low-priority traffic before I let enterprise tenants time out.
What I would not do is raise proxy timeouts to make the 504s disappear. That converts a fast failure into a slow one, holds connections longer, and usually makes saturation worse. If timeouts need changing, that is a deliberate capacity decision with load testing behind it.
Communication and follow-through
Updates go to status.atlassian.com and to the incident channel on a fixed cadence, for example every 30 minutes during impact. Each update states affected region and product, user-visible symptom, mitigation in progress, and next update time. I avoid speculation about cause in public updates.
After recovery I keep the incident open until I have quantified impact against the SLO and error budget, checked for data loss or duplicate writes caused by client retries, and confirmed no second wave from cache warming. The postmortem is blameless and produces action items with owners, such as an alert on cache hit rate, a deploy canary tied to p99 by endpoint, and a load test for the search tier at peak Monday traffic. That is how a 504 incident turns into a change that prevents the next one.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-13How do we prevent this incident from ever happening again?
Reported in How to pass the Atlassian SRE craft interview
The 90-second answer
I would not promise it can never happen again. I would show how we make that exact failure impossible, or at least detectable and self-limiting, and how we prove the fix worked.
First, I separate the trigger from the system that allowed it. A bad deploy, a config change, or a dependency timeout is the trigger. The prevention work targets the missing guardrail: no validation, no canary, no automated rollback, no alert before customers noticed. Then I write action items that change the system, not just the code path that broke, assign each one an owner and a date, and verify them with a test, a game day, or a production metric. If an action item cannot be verified, it is not done.
At Atlassian scale, that means the fix has to survive thousands of services and frequent deploys, not just the one service in the incident. So I prefer platform guardrails, CI checks, and default limits over a runbook step that depends on someone remembering it at 3 a.m.
How I structure it in the room
I would walk through a concrete, hypothetical example: a config change to a connection pool limit ships to Jira, exhausts database connections, and causes p99 latency to climb from 80 ms to 4 s. The trigger is the config value. The systemic causes are that the value was not validated against the database maximum, the rollout was all-at-once, and the alert fired on CPU rather than on pool saturation.
| Layer | Weak fix | Prevention that holds up |
|---|---|---|
| Trigger | Revert the one config value | Schema and range validation in CI, rejected if pool size exceeds the database limit |
| Blast radius | Tell the team to deploy carefully | Canary to 1% of hosts, automated rollback if error rate or latency burn exceeds threshold for 5 minutes |
| Detection | Add a dashboard nobody watches | Alert on pool wait time and connection saturation, paged before customer impact |
| Verification | Mark the ticket closed | Load test at 2x peak traffic, plus a game day that replays the bad config in staging |
Each row becomes an action item with an owner, a due date, and a verification step. I would track them in the incident review system, not in a doc that decays. Anything that slips past its date gets escalated, because an overdue action item is how the same incident returns six months later.
The loop I would draw
What I would actually ship
For the pool example, the code change is small. The guardrail is the point. A CI check that fails the build:
# checked against Python 3.12, hypothetical limits for this example
MAX_POOL = 100 # database max_connections is 200, reserve headroom
def validate_pool_size(value: int) -> None:
if not 1 <= value <= MAX_POOL:
raise ValueError(f"pool size {value} outside 1..{MAX_POOL}")And the rollout guard, expressed as an alert rule the team can defend:
# Prometheus rule, hypothetical thresholds for this example
groups:
- name: db-pool-saturation
rules:
- alert: DBPoolSaturation
expr: |
db_pool_wait_seconds / db_pool_max_seconds > 0.5
and rate(http_requests_total{status=~"5.."}[5m]) > 0.01
for: 5m
labels:
severity: pageI would also tie the work to the error budget. If the service has a 99.95% SLO, that allows about 22 minutes of downtime per month. A repeat of this incident would consume most of that budget in one event, which is the argument for prioritising the canary and rollback work over feature work until the burn rate is back under control.
Failure modes I would name
Action items that only fix the symptom, such as reverting the config and adding a manual checklist step. Checklists fail under pressure and do not scale across teams. Action items with no owner or no verification, which close on paper while the guardrail never ships. And fixes tested only in staging with production-shaped traffic missing, so the validation passes until the next peak. I would call those out explicitly, because an interviewer is listening for whether I can tell the difference between closing an incident and closing the class of failure.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Curated: · Written: · Reviewed: