FreeExam

Backend engineer: Resilience and Production Diagnosis

Original interview cases on deadlines, retry amplification, queueing, capacity, observability, failure recovery, and release evidence. Questions use explicit workload models and connect performance claims to correct user-visible outcomes.

These prompts are original practice. They are not questions from a named employer or a live hiring loop.

  1. 1.A request has 1,200 ms remaining. Local processing needs 150 ms, a first serial dependency is budgeted 400 ms, and response work reserves 100 ms. Ignoring overlap, what maximum budget remains for a second dependency?

    Show answer and explanation
    1. 950 ms
    2. 800 ms
    3. 550 ms
    4. 1,850 ms

    Answer: 550 ms

    The remaining budget is 1200−150−400−100=550 ms. Giving each dependency the full original deadline would not respect the end-to-end budget.

  2. 2.A downstream timeout is measured from connection acquisition, but requests can wait indefinitely for a connection first. What latency component is unbounded?

    Show answer and explanation
    1. Only response serialization
    2. Pool waiting time
    3. Only the remote execution time
    4. The configured downstream timeout itself

    Answer: Pool waiting time

    A timeout's starting boundary matters. Bound acquisition and queue waits as part of the complete request lifetime.

  3. 3.A request is already past its useful deadline when a worker dequeues it. Its operation is safe to abandon before starting. What should admission logic consider?

    Show answer and explanation
    1. Avoiding work that can no longer produce a useful result
    2. Always doing the expired work before current requests
    3. A guarantee every queued request remains useful forever
    4. Treating dequeue time as a new client deadline

    Answer: Avoiding work that can no longer produce a useful result

    Expired work can consume scarce resources and worsen overload. Cancellation and deadline behavior must match the operation's actual effect semantics.

  4. 4.A client stops waiting, but its remote database query continues consuming resources. What must be verified about cancellation?

    Show answer and explanation
    1. Whether it reaches and stops the underlying work
    2. Only whether the HTTP connection closed
    3. A guarantee caller cancellation stops every downstream task
    4. Only whether the client logged a timeout

    Answer: Whether it reaches and stops the underlying work

    Cancellation is not automatically transitive. Check the actual driver, server, and operation semantics, including any effect already committed.

  5. 5.A call times out after a non-idempotent remote action may have completed. Which retry policy needs the most scrutiny?

    Show answer and explanation
    1. Querying a supported operation-status endpoint
    2. Reporting the outcome as uncertain when required
    3. Using the action's documented idempotency mechanism
    4. Blindly repeating the action

    Answer: Blindly repeating the action

    Timeout does not establish that an effect failed. Automatic repetition can duplicate a completed action unless the protocol makes that safe.

  6. 6.Four nested service layers each allow two total attempts per incoming call. In the worst case where every layer exhausts them, how many leaf attempts can one top-level request trigger?

    Show answer and explanation
    1. 8
    2. 16
    3. 2
    4. 4

    Answer: 16

    The amplification is 2⁴=16. Retry coordination must account for the entire call path rather than each layer independently.

  7. 7.A retry budget permits at most 5% extra attempts relative to 20,000 original requests. How many extra attempts fit that budget?

    Show answer and explanation
    1. 20,000
    2. 1,000
    3. 4,000
    4. 100

    Answer: 1,000

    The allowance is 0.05×20000=1000 additional attempts. Define the denominator and enforcement window explicitly.

  8. 8.Four hundred clients independently choose a retry delay uniformly over four seconds. Ignoring endpoint effects, what is the expected number per one-second interval?

    Show answer and explanation
    1. 100
    2. 400
    3. 1,600
    4. 4

    Answer: 100

    Each client has probability 1/4 of falling in a specified one-second interval. The expected count is 400/4=100, though realized counts vary.

  9. 9.A retry policy uses backoff but gives every client the same deterministic schedule. What risk remains after a shared outage?

    Show answer and explanation
    1. Elimination of all extra load
    2. A guarantee of evenly spaced arrivals
    3. Automatic idempotence of retried effects
    4. Synchronized retry bursts

    Answer: Synchronized retry bursts

    Common start times can keep retries aligned. Suitable randomness and budgets can reduce synchronization without guaranteeing recovery.

  10. 10.A client receives a documented permanent validation rejection for its unchanged payload. What is a sensible automatic-retry decision?

    Show answer and explanation
    1. Change the payload silently until accepted.
    2. Do not retry unchanged as if it were transient.
    3. Retry indefinitely with a longer delay.
    4. Treat every rejection as a lost success response.

    Answer: Do not retry unchanged as if it were transient.

    A deterministic invalid request is not repaired by waiting. Classify failures according to the actual contract and surface needed corrections.

  11. 11.A dependency is recovering but has very little spare capacity. A retry policy immediately restores all deferred traffic. What should recovery controls manage?

    Show answer and explanation
    1. The ramp-up and total offered load
    2. Only the number of successful connection handshakes
    3. A guarantee returning health implies unlimited capacity
    4. Only the first recovered response

    Answer: The ramp-up and total offered load

    A newly available dependency can be overwhelmed by accumulated work and retries. Recovery needs capacity-aware pacing and appropriate admission.

  12. 12.A circuit breaker stops ordinary calls after failures, then permits a small probe set. What should those probes assess?

    Show answer and explanation
    1. Whether the dependency can never fail again
    2. Only whether the client process is running
    3. A guarantee all queued requests are now safe to replay
    4. Whether limited recovery traffic can succeed

    Answer: Whether limited recovery traffic can succeed

    A half-open probe provides bounded recovery evidence. It is not proof of future health or sufficient capacity for unrestricted traffic.

  13. 13.A circuit breaker counts client input errors as dependency failures. What should its signal definition distinguish?

    Show answer and explanation
    1. Only the caller's chosen request ID
    2. A guarantee all non-success statuses have one cause
    3. Only the total number of response bytes
    4. Failures relevant to dependency health

    Answer: Failures relevant to dependency health

    Incorrect failure classification can open a breaker for problems the dependency did not cause. Define the errors and scope the mechanism is intended to react to.

  14. 14.A service uses one worker pool for a critical endpoint and a slow optional enrichment. What isolation can limit the enrichment's effect on the critical path?

    Show answer and explanation
    1. Only a shared unbounded queue
    2. A guarantee optional code cannot block shared workers
    3. Only additional retries for enrichment
    4. Separate bounded resource budgets

    Answer: Separate bounded resource budgets

    Resource isolation can prevent one work class from consuming every worker or connection. It still needs suitable limits and fallback semantics.

  15. 15.An optional recommendation service fails. Checkout can satisfy its documented contract without recommendations. What is a possible graceful response?

    Show answer and explanation
    1. Complete checkout without that optional result.
    2. Report the payment as failed regardless of its actual state.
    3. Invent a successful recommendation response.
    4. Keep every checkout waiting without a deadline.

    Answer: Complete checkout without that optional result.

    A fallback must preserve the real business contract and truthfulness of effects. Optional enrichment can be omitted when the contract explicitly permits it.

  16. 16.A fallback serves cached data, but the contract requires information no older than ten minutes. The cache is thirty minutes old. What must be respected?

    Show answer and explanation
    1. Only the existence of a cached value
    2. Only the cache's fast response time
    3. The stated staleness limit
    4. A guarantee every cached response is acceptable

    Answer: The stated staleness limit

    Graceful degradation has semantic limits. An available fallback is not necessarily valid for the request's freshness requirement.

  17. 17.A service accepts work into an unbounded queue while arrival rate persistently exceeds completion rate. What trend should be expected?

    Show answer and explanation
    1. A guarantee lower arrival rate from accepting more work
    2. Growing backlog and waiting time
    3. Only a harmless increase in completed throughput
    4. Automatic stabilization at zero queue length

    Answer: Growing backlog and waiting time

    Excess arrivals accumulate when capacity remains lower. Bound admission or increase justified capacity rather than assume a queue creates throughput.

  18. 18.An admission limit rejects work before expensive computation begins. What should its success metric include?

    Show answer and explanation
    1. Useful completed work and rejection behavior
    2. Only a zero rejection rate
    3. A guarantee every rejected request would have failed anyway
    4. Only the number of admitted requests

    Answer: Useful completed work and rejection behavior

    Admission can protect useful throughput while rejecting some demand. Evaluate both served outcomes and the cost and fairness of rejections.

  19. 19.An API returns a fast 200 response containing an error object that clients interpret as failure. What should availability measurement reflect?

    Show answer and explanation
    1. Only the HTTP status count
    2. A guarantee transport success equals business success
    3. Only the response time
    4. The user-visible operation outcome

    Answer: The user-visible operation outcome

    An SLI should represent the intended user task. A nominal success code can conceal a failed operation.

  20. 20.A limiter permits one tenant to consume every shared worker as long as its own request count stays below quota. Requests vary greatly in cost. What should allocation consider?

    Show answer and explanation
    1. A guarantee all requests consume the same resources
    2. Only the tenant's raw request count
    3. Only equal payload byte lengths
    4. Resource cost and shared fairness

    Answer: Resource cost and shared fairness

    A request-count quota may not bound CPU, memory, connections, or time. Use measures and isolation appropriate to the actual scarce resources.

  21. 21.A queue receives 90 jobs per second and completes 70 per second for one minute. Starting empty and ignoring retries, what backlog accumulates?

    Show answer and explanation
    1. 4,200 jobs
    2. 5,400 jobs
    3. 20 jobs
    4. 1,200 jobs

    Answer: 1,200 jobs

    Net growth is 20 jobs per second for 60 seconds: 1200 jobs. The count model assumes the stated constant rates.

  22. 22.After arrivals stop, 1,200 queued jobs remain and workers complete 80 per second at a constant rate. Ignoring startup and other work, what is drain time?

    Show answer and explanation
    1. 1.5 seconds
    2. 96,000 seconds
    3. 15 seconds
    4. 80 seconds

    Answer: 15 seconds

    Drain time is backlog divided by completion rate: 1200/80=15 seconds. Real workload variability can change this estimate.

  23. 23.A stable system has arrival rate 50 requests/second and mean time in the system 0.2 seconds. Under the supplied Little's-law model L=λW, what is mean concurrency?

    Show answer and explanation
    1. 250
    2. 0.004
    3. 10
    4. 50

    Answer: 10

    The mean number in the system is 50×0.2=10. Use consistent boundaries and a stable system when interpreting this relationship.

  24. 24.A load test reports constant client concurrency rather than an independently controlled arrival rate. What should throughput interpretation account for?

    Show answer and explanation
    1. The test necessarily simulates independent external arrivals.
    2. Concurrency alone identifies every queueing behavior.
    3. The arrival rate must remain fixed regardless of latency.
    4. Clients send fewer new requests when responses slow.

    Answer: Clients send fewer new requests when responses slow.

    Closed-loop clients can reduce offered load as latency grows. State the load-generation model when making capacity claims.

  25. 25.A service has spare average CPU but one event-loop thread is saturated. What can limit request throughput?

    Show answer and explanation
    1. A guarantee unused cores eliminate bottlenecks
    2. The serialized hot path
    3. Only the amount of free disk space
    4. Only total machine CPU utilization

    Answer: The serialized hot path

    Capacity can be constrained by one execution path or resource. Aggregate utilization can hide a local bottleneck.

  26. 26.A request allocates memory proportional to an untrusted item count with no bound. What admission property should be considered?

    Show answer and explanation
    1. Only the average payload size
    2. A guarantee low average traffic prevents exhaustion
    3. Per-request resource limits
    4. Only the number of currently healthy instances

    Answer: Per-request resource limits

    A small number of expensive requests can exhaust resources. Bound relevant input-driven work and memory under the service contract.

  27. 27.A database query's execution time is unchanged, but application latency rises because connection acquisition takes longer. What should diagnosis focus on?

    Show answer and explanation
    1. Pool contention and connection occupancy
    2. Only optimizing the unchanged query plan
    3. Only the database's row count
    4. A guarantee the database is uninvolved in any wait

    Answer: Pool contention and connection occupancy

    Break latency into acquisition, execution, and other components. The changed component directs a more informative investigation.

  28. 28.A cache miss triggers identical expensive work in many concurrent requests for the same key. What mechanism can reduce duplicated computation?

    Show answer and explanation
    1. Only assigning each request a new cache key
    2. Coalescing concurrent work for that key
    3. A guarantee a cache automatically merges all misses
    4. Only shortening the response payload

    Answer: Coalescing concurrent work for that key

    A suitable single-flight or coordination scheme can share work. Its failure, timeout, and key-scope semantics still matter.

  29. 29.A cache evicts many popular entries simultaneously, creating a database surge. What should resilience testing include?

    Show answer and explanation
    1. Cold and correlated-miss behavior
    2. Only steady-state hit rate
    3. Only the fastest cached responses
    4. A guarantee average hit rate bounds every burst

    Answer: Cold and correlated-miss behavior

    Correlated misses can expose origin capacity limits. Test warmup, expiry patterns, and miss handling rather than only the average hit path.

  30. 30.Autoscaling adds application workers, but the bottleneck is a fixed-capacity downstream service. What may happen?

    Show answer and explanation
    1. Automatic expansion of downstream limits
    2. Elimination of queued work by definition
    3. More contention without proportional throughput
    4. Guaranteed linear throughput growth

    Answer: More contention without proportional throughput

    Scaling one tier can increase pressure on another. Measure the end-to-end bottleneck and relevant resource budgets.

  31. 31.A service serves two request classes: cheap requests cost 1 unit and expensive ones cost 20 units. What is the total work for 100 cheap and 10 expensive requests?

    Show answer and explanation
    1. 300 units
    2. 120 units
    3. 2,100 units
    4. 110 units

    Answer: 300 units

    Total work is 100×1+10×20=300. Raw request count alone does not capture this mix.

  32. 32.A performance test uses only cheap requests, but production includes costly report generation. What limits the capacity claim?

    Show answer and explanation
    1. A guarantee all endpoints share the same resource cost
    2. Only the test's total request count
    3. Only the runtime's version number
    4. Workload representativeness

    Answer: Workload representativeness

    Capacity depends on request mix, sizes, paths, and dependencies. A narrow workload supports a correspondingly narrow claim.

  33. 33.One failure domain holds 60% of service capacity. Losing it leaves 40%, while demand remains 70% of the original capacity. What shortfall remains?

    Show answer and explanation
    1. 30% of original capacity
    2. No shortfall
    3. 10% of original capacity
    4. 70% of original capacity

    Answer: 30% of original capacity

    Remaining capacity is 40 against demand of 70 on the same scale, leaving a shortfall of 30. Redundancy counts alone do not quantify surviving capacity.

  34. 34.Two replicas exist but both depend on one shared storage service. What availability assumption needs scrutiny?

    Show answer and explanation
    1. A guarantee replication removes all shared dependencies
    2. Independence of failure domains
    3. Only the number of process IDs
    4. Only whether their software versions match

    Answer: Independence of failure domains

    Shared dependencies can fail both replicas together. Model the actual dependency structure when assessing resilience.

  35. 35.A load balancer sends traffic only to instances that pass a shallow process-alive check. Some cannot reach a required database. What should readiness represent?

    Show answer and explanation
    1. Ability to serve the intended request class
    2. A guarantee every running process is fully ready
    3. Only whether a TCP port accepts connections
    4. Only whether the process has a PID

    Answer: Ability to serve the intended request class

    A health signal should match its routing purpose. Avoid both falsely ready instances and checks that create harmful dependency-wide cascades.

  36. 36.All instances restart whenever a shared optional dependency fails a liveness check. What failure coupling can result?

    Show answer and explanation
    1. Restarts necessarily repair the dependency.
    2. A dependency outage can trigger a restart cascade.
    3. Every restart creates additional downstream capacity.
    4. Optional failures cannot affect instance availability.

    Answer: A dependency outage can trigger a restart cascade.

    Liveness and readiness policies have consequences. Restarting healthy application processes may amplify a shared dependency problem rather than resolve it.

  37. 37.A service's error rate is low because failed requests wait indefinitely and never enter completed-request metrics. What should monitoring include?

    Show answer and explanation
    1. Only completed successes
    2. Outstanding work, timeouts, and an appropriate denominator
    3. A guarantee unfinished requests are harmless
    4. Only mean latency of completed requests

    Answer: Outstanding work, timeouts, and an appropriate denominator

    Completion-only metrics can hide stuck work. Define user-facing outcomes and account for requests that expire or remain unresolved.

  38. 38.An error budget allows 0.1% bad outcomes over one million eligible requests. What is the allowed count?

    Show answer and explanation
    1. 10,000
    2. 999,000
    3. 100
    4. 1,000

    Answer: 1,000

    The allowance is 0.001×1000000=1000 outcomes under the stated definition. Eligibility and window semantics remain important.

  39. 39.A service consumes its entire monthly error budget in one day. What should an operational decision consider?

    Show answer and explanation
    1. Current reliability risk and remaining budget
    2. Only the calendar date
    3. A guarantee the service is healthy because the month is not over
    4. Only the number of recent deployments

    Answer: Current reliability risk and remaining budget

    Budget consumption is evidence for risk decisions under an agreed policy. It is not automatically a diagnosis of one specific cause.

  40. 40.An availability metric excludes maintenance, while the consumer contract counts maintenance failures. What must be aligned?

    Show answer and explanation
    1. Only the number of monitoring probes
    2. Only the uptime display's color
    3. The measurement's eligibility definition
    4. A guarantee any percentage called availability has one universal meaning

    Answer: The measurement's eligibility definition

    A denominator or exclusion rule changes the measured quantity. The SLI and promise must refer to the same relevant outcomes.

  41. 41.Median latency remains 30 ms, but 2% of requests now take 10 seconds. Which observation should be investigated?

    Show answer and explanation
    1. Only the unchanged median
    2. Only the average request payload
    3. Tail latency and affected request classes
    4. A guarantee no users are affected

    Answer: Tail latency and affected request classes

    A stable central percentile can hide a severe tail. Examine distribution, timeouts, and the segments experiencing the delay.

  42. 42.Two regions have p99 latencies of 100 ms and 900 ms. Is their simple average necessarily the global p99?

    Show answer and explanation
    1. No; global percentiles cannot be estimated from any data.
    2. Yes; every percentile is additive.
    3. No; quantiles do not combine that way.
    4. Yes; equal units guarantee an average percentile.

    Answer: No; quantiles do not combine that way.

    A global quantile depends on the combined distributions and weights. Regional quantiles alone generally do not determine it.

  43. 43.A latency histogram changes bucket boundaries between versions. What should a comparison account for?

    Show answer and explanation
    1. A guarantee identical names mean identical measurements
    2. Only the metric's unchanged name
    3. Compatibility of the summaries and quantile estimates
    4. Only the number of application instances

    Answer: Compatibility of the summaries and quantile estimates

    Histogram representation affects what can be inferred or aggregated. Preserve or explicitly reconcile the measurement semantics.

  44. 44.An endpoint's aggregate latency improves because fast cache hits become more common, while miss latency worsens. What should diagnosis separate?

    Show answer and explanation
    1. Only the aggregate mean
    2. Hit and miss distributions and their changing mix
    3. A guarantee every request path improved
    4. Only the total cache memory

    Answer: Hit and miss distributions and their changing mix

    A mix change can move a global metric without improving each constituent path. Segment metrics according to the causal question.

  45. 45.A trace shows 80 ms CPU work and 300 ms waiting for a lock. What investigation fits the observed dominant component?

    Show answer and explanation
    1. Only the payload's text encoding
    2. A guarantee more CPU cores removes the wait
    3. Only replacing arithmetic with faster instructions
    4. Contention and the lock holder's behavior

    Answer: Contention and the lock holder's behavior

    The measured wait points toward synchronization and competing work. Optimizing an unrelated component may not address the dominant latency.

  46. 46.A distributed trace is sampled only for successes. What failure evidence can be missing?

    Show answer and explanation
    1. Paths specific to failed requests
    2. The existence of the sampled successful requests
    3. The durations actually measured on those sampled traces
    4. The ability to inspect successful spans

    Answer: Paths specific to failed requests

    Sampling policy shapes observability. Include suitable failure evidence while accounting for sampling and resource constraints.

  47. 47.An incident begins after a deploy, but a dependency changes configuration at the same time. What does temporal correlation alone establish?

    Show answer and explanation
    1. The application deploy must be the sole cause.
    2. The dependency change must be irrelevant.
    3. Both are candidate explanations, not a proved cause.
    4. The later logged event cannot have contributed.

    Answer: Both are candidate explanations, not a proved cause.

    Use timing to form hypotheses, then inspect mechanisms and discriminating evidence. Concurrent changes can confound attribution.

  48. 48.A request correlation ID is regenerated at each hop with no linkage. What becomes harder?

    Show answer and explanation
    1. Reconstructing one end-to-end request
    2. Counting local requests at a hop
    3. Measuring one local span's duration
    4. Reading one local log line

    Answer: Reconstructing one end-to-end request

    Cross-service diagnosis needs a consistent or linked identity scheme. Local records can be valid while the end-to-end path is difficult to join.

  49. 49.A metric adds a unique request ID as a label for every request. What resource risk can emerge?

    Show answer and explanation
    1. A guarantee more accurate aggregate quantiles
    2. Only a change in request ordering
    3. Unbounded time-series cardinality
    4. Automatic reduction of storage cost

    Answer: Unbounded time-series cardinality

    Per-request labels can create huge numbers of series. Use observability mechanisms and bounded dimensions appropriate to the question.

  50. 50.An operator sees database CPU at 20% and concludes the database cannot be the bottleneck. What evidence should be checked?

    Show answer and explanation
    1. A guarantee unused CPU implies unlimited query throughput
    2. Only the database process's age
    3. Waits, locks, I/O, and other constrained resources
    4. Only CPU utilization again

    Answer: Waits, locks, I/O, and other constrained resources

    A system can bottleneck on resources or synchronization other than CPU. Diagnose the observed wait and workload rather than one aggregate percentage.

  51. 51.Memory grows with request backlog, then drops when queued work drains. What hypothesis is worth testing before declaring a leak?

    Show answer and explanation
    1. A proof that garbage collection never ran
    2. Memory retained by live queued work
    3. A guaranteed permanent allocation leak
    4. Only a smaller executable binary

    Answer: Memory retained by live queued work

    Backlog can retain request state without a permanent leak. Measure retained objects and queue behavior to distinguish mechanisms.

  52. 52.A metric's collection agent fails during an incident, leaving a flat graph at the last value. What should the dashboard distinguish?

    Show answer and explanation
    1. Stale measurement from current stability
    2. A guarantee a flat line means healthy service
    3. Only the last numeric value
    4. Only the graph's time-axis width

    Answer: Stale measurement from current stability

    Measurement age and collection status matter. Missing updates should not masquerade as stable current observations.

  53. 53.Logs show an internal error but not which dependency call or operation failed. What would improve diagnosis without indiscriminately exposing payloads?

    Show answer and explanation
    1. Only the log level's name
    2. A guarantee raw full payloads are always necessary
    3. Structured operation context and suitable failure categories
    4. Only a longer stack trace for every successful request

    Answer: Structured operation context and suitable failure categories

    Use relevant correlation and failure context, with appropriate data handling. More raw data is not automatically better evidence.

  54. 54.A service's request rate falls sharply while its success percentage rises. What should be examined?

    Show answer and explanation
    1. Only the current number of healthy pods
    2. A guarantee customers are happier
    3. Only the improved percentage
    4. Lost demand, rejections, and measurement coverage

    Answer: Lost demand, rejections, and measurement coverage

    A healthier-looking ratio can result from excluding or losing difficult requests. Relate the metric to user demand and denominator changes.

  55. 55.A synthetic probe reaches one cached endpoint successfully, but actual writes fail. What coverage gap remains?

    Show answer and explanation
    1. The write path and its dependencies
    2. The existence of the probe response
    3. The tested cached endpoint's observed outcome
    4. The ability to reach that endpoint

    Answer: The write path and its dependencies

    A narrow probe supports a narrow availability claim. Exercise important user paths and interpret probe coverage explicitly.

  56. 56.A dashboard aggregates all tenants. A small tenant has a complete outage while large tenants remain healthy. What should monitoring include?

    Show answer and explanation
    1. A guarantee aggregate health covers every tenant
    2. Only total process uptime
    3. Only the global average
    4. Relevant per-tenant or cohort outcomes

    Answer: Relevant per-tenant or cohort outcomes

    Large healthy populations can conceal a critical smaller segment. Choose bounded dimensions and meaningful coverage for the service's promises.

  57. 57.A release canary receives 1% of traffic but none of the unusual requests that triggered the defect. What does a clean canary fail to establish?

    Show answer and explanation
    1. That the observed canary requests completed
    2. The existence of a measured canary interval
    3. Safety for the unexercised request class
    4. That the configured route sent some traffic to the canary

    Answer: Safety for the unexercised request class

    Canary evidence depends on workload coverage, duration, and relevant dependencies. Absence of failures in an unexercised path is weak evidence about that path.

  58. 58.A code rollback restores old binaries after a migration has irreversibly changed stored data. What must recovery planning address?

    Show answer and explanation
    1. Data and schema compatibility
    2. Only the binary's old version label
    3. Only the instance restart time
    4. A guarantee every deployment is reversed by restoring code

    Answer: Data and schema compatibility

    Rollback is a system-state operation, not just a binary swap. Some data transformations require a different repair or forward-recovery path.

  59. 59.A rolling update introduces a required field before all old writers are retired. What deployment strategy should be evaluated?

    Show answer and explanation
    1. Only a bigger migration timeout
    2. A compatible staged transition
    3. Only restarting readers faster
    4. A guarantee every writer changes simultaneously

    Answer: A compatible staged transition

    Coordinate old and new writers, readers, and retained data. Expand-and-contract or another justified transition can preserve compatibility.

  60. 60.A service restarts with an empty cache and immediately receives full traffic. What should a recovery test include?

    Show answer and explanation
    1. Only the process startup duration
    2. A guarantee a fresh process has full steady-state capacity
    3. Only steady-state cached throughput
    4. Warmup behavior and origin load

    Answer: Warmup behavior and origin load

    Readiness and rollout pacing should reflect what the instance can actually serve. Cold caches can shift substantial work to dependencies.

  61. 61.A deployment reduces per-instance capacity, but the rollout temporarily removes additional instances. What must planning account for?

    Show answer and explanation
    1. Only the new binary's average latency under light load
    2. A guarantee a healthy final state proves a safe rollout
    3. Only final fleet size
    4. Capacity during the transition

    Answer: Capacity during the transition

    Intermediate states can be the least provisioned. Evaluate demand, surge, unavailable capacity, and dependency limits throughout rollout.

  62. 62.A new instance reports ready before loading a required lookup dataset. What routing failure can occur?

    Show answer and explanation
    1. Requests reach an instance unable to satisfy its contract.
    2. A readiness flag necessarily loads the dataset.
    3. Every routed request is guaranteed to wait safely.
    4. Only startup logs become longer.

    Answer: Requests reach an instance unable to satisfy its contract.

    Readiness should reflect required initialization. A process that can accept connections may not yet provide valid service.

  63. 63.A recovery procedure restores a database backup but omits newer committed events retained elsewhere. What should reconciliation determine?

    Show answer and explanation
    1. Which acknowledged effects need recovery or replay
    2. A guarantee any restored backup contains every acknowledged write
    3. Only whether the database process starts
    4. Only the backup file's creation date

    Answer: Which acknowledged effects need recovery or replay

    Recovery targets and actual restored state must align. Identify gaps, effect identities, and safe replay rather than equate startup with full recovery.

  64. 64.A backup file exists and passes an integrity check, but no restore has been tested. What evidence is still needed?

    Show answer and explanation
    1. Usable restoration under the required conditions
    2. The existence of the checked artifact
    3. The fact an integrity check ran
    4. The ability to identify the stored backup file

    Answer: Usable restoration under the required conditions

    Artifact integrity does not prove a working recovery process. Test restoration, dependencies, credentials, compatibility, and relevant time objectives.

  65. 65.A failover promotes a replica missing acknowledged writes under the original promise. What is at stake?

    Show answer and explanation
    1. A guarantee any promotion preserves every acknowledged effect
    2. Only the number of running replicas
    3. Only the region's display name
    4. The stated recovery and durability contract

    Answer: The stated recovery and durability contract

    Failover policy must match replication and durability guarantees. Reconcile missing effects and define acceptable recovery loss explicitly.

  66. 66.A cleanup task deletes operation records still needed for delayed retries. What should retention policy align with?

    Show answer and explanation
    1. The supported retry and reconciliation horizon
    2. Only the newest client's usual delay
    3. A guarantee old requests can never reappear
    4. Only current disk utilization

    Answer: The supported retry and reconciliation horizon

    Retention affects correctness as well as storage. Identify the time window in which records support promised deduplication or recovery.

  67. 67.A repaired dependency returns, but clients' open breakers reset simultaneously and unleash full load. What should recovery controls assess?

    Show answer and explanation
    1. Only the number of logged recovery messages
    2. A guarantee all reopened circuits are independent
    3. Coordinated recovery bursts and pacing
    4. Only the dependency's first successful probe

    Answer: Coordinated recovery bursts and pacing

    Recovery can synchronize demand. Staggered probes, bounded retries, and capacity-aware ramps can help prevent immediate relapse.

  68. 68.An incident workaround disables one expensive feature. What should follow-up establish before treating it as a permanent fix?

    Show answer and explanation
    1. A guarantee removing work fixes every related failure
    2. Only the new lower CPU value
    3. Only the feature flag's name
    4. The root mechanism and effect on the service contract

    Answer: The root mechanism and effect on the service contract

    Mitigation can restore service while leaving cause or product obligations unresolved. Verify both operational effects and the intended behavior.

  69. 69.A remediation increases a timeout from one second to sixty seconds while worker count and dependency capacity stay fixed. What must be measured?

    Show answer and explanation
    1. A guarantee longer waiting creates downstream capacity
    2. Longer occupancy and queueing under failures
    3. Only whether successful calls still return the same payload
    4. Only the reduction in timeout responses

    Answer: Longer occupancy and queueing under failures

    A larger timeout can let work finish but can also tie up resources longer. Evaluate complete outcomes and load effects rather than one error counter.

  70. 70.An endpoint caches a successful authorization result indefinitely. Permissions can be revoked. What failure mode should resilience design avoid?

    Show answer and explanation
    1. Serving stale permission decisions beyond the contract
    2. Only an increase in cache memory
    3. Only the lookup's low latency
    4. A guarantee cached success remains valid forever

    Answer: Serving stale permission decisions beyond the contract

    Availability fallbacks must preserve security semantics. Define appropriate freshness, invalidation, and failure behavior for authorization data.

  71. 71.A load-shedding policy rejects inexpensive critical requests while accepting expensive optional requests by arrival order. What should policy review assess?

    Show answer and explanation
    1. A guarantee first-arrival order is always the intended fairness rule
    2. Only the total acceptance rate
    3. Only the length of the optional response
    4. Priority and resource allocation against service goals

    Answer: Priority and resource allocation against service goals

    Admission policy should reflect explicit priorities and fairness requirements. Maximizing a raw count may conflict with useful work or critical outcomes.

  72. 72.A fault test makes a dependency fail instantly but never makes it hang. What failure behavior remains underexamined?

    Show answer and explanation
    1. A guarantee a fast error is the worst possible failure
    2. Only the count of injected exceptions
    3. Resource retention during slow or stuck calls
    4. Only immediate error handling

    Answer: Resource retention during slow or stuck calls

    Slow failures can retain connections, workers, and memory much longer than quick rejection. Test relevant timing as well as response codes.

  73. 73.A service passes a restart test when no work is in flight. What additional case is important for recovery correctness?

    Show answer and explanation
    1. A guarantee idle recovery covers all transaction windows
    2. Only another idle restart
    3. Restart during partially completed operations
    4. Only the startup banner

    Answer: Restart during partially completed operations

    In-flight work can create ambiguous effects, duplicates, lost acknowledgments, or stale ownership. Test relevant interruption points.

  74. 74.A load test keeps offered traffic low enough that no queue forms. Which follow-up extends coverage beyond that tested regime?

    Show answer and explanation
    1. Repeat only the same unstressed workload.
    2. Report more decimal places from the same case.
    3. Assume empty queues prove unbounded capacity.
    4. Exercise overload and measure admission, queueing, and recovery.

    Answer: Exercise overload and measure admission, queueing, and recovery.

    A low-load test does not exercise saturation. A relevant extension measures how the service admits, delays, rejects, and recovers work when demand exceeds available resources.

  75. 75.A failure test asserts only that the service eventually returns to green. What useful evidence is missing?

    Show answer and explanation
    1. The ability to inspect the final status value
    2. User impact, recovery time, and state correctness
    3. The fact that the test reached its final check
    4. The existence of a final green observation

    Answer: User impact, recovery time, and state correctness

    Recovery quality includes what happened during the failure and whether state is correct afterward. A final status alone is incomplete.

  76. 76.A bulk request test uses only small item counts, while production accepts much larger batches. What should boundary testing examine?

    Show answer and explanation
    1. Only the batch field's type name
    2. Work and memory near allowed limits
    3. Only another tiny request
    4. A guarantee small-case latency extrapolates linearly forever

    Answer: Work and memory near allowed limits

    Batch size can affect memory, lock duration, query plans, and failure handling. Test the contract's actual boundaries and resource behavior.

  77. 77.Two tenants have equal request counts, but one sends much more expensive requests and monopolizes CPU. What should a fairness test vary?

    Show answer and explanation
    1. Only the order of metric labels
    2. A guarantee equal counts imply equal resource use
    3. Workload cost as well as counts
    4. Only tenant names

    Answer: Workload cost as well as counts

    Use realistic mixtures and relevant resource measurements. A count-only test can miss cost-based interference.

  78. 78.A throttling policy is evaluated only by reduced backend CPU. What additional outcome matters?

    Show answer and explanation
    1. Whether intended clients can complete useful work
    2. Only the number of configured rules
    3. A guarantee low utilization always means good service
    4. Only the limiter's internal decision count

    Answer: Whether intended clients can complete useful work

    Low resource use can result from rejecting too much legitimate demand. Evaluate availability, fairness, and useful throughput with the protection mechanism.

  79. 79.A request needs both independent dependencies A and B. Their success probabilities are 0.99 and 0.98 for the modeled request. What joint success probability follows?

    Show answer and explanation
    1. 0.0002
    2. 0.9702
    3. 0.985
    4. 0.99

    Answer: 0.9702

    Under the supplied independence assumption, both succeed with probability 0.99×0.98=0.9702. This is a model, not a universal availability composition rule.

  80. 80.The same two dependencies share a network failure domain. What assumption must be reconsidered before multiplying their individual success probabilities?

    Show answer and explanation
    1. The ability to measure each marginal success rate
    2. The fact that both are required by the request
    3. Independence
    4. The definition of a joint outcome

    Answer: Independence

    Shared causes can correlate failures. Marginal rates alone do not determine joint availability without a dependence model.

  81. 81.An eligible sample has 98,000 successful operations and 2,000 failures. A dashboard mistakenly omits 1,000 failures from its denominator and numerator. What should an honest success rate use?

    Show answer and explanation
    1. 100% because omitted failures are uncounted
    2. 99,000/100,000=99%
    3. 98,000/99,000≈98.99%
    4. 98,000/100,000=98%

    Answer: 98,000/100,000=98%

    The defined eligible population includes all 100,000 operations. Selective exclusion makes the displayed success rate look better without improving outcomes.

  82. 82.A request performs 40 ms local work, then independent calls of 80 and 120 ms in parallel, then 20 ms final work. Ignoring overhead, what is the critical-path time?

    Show answer and explanation
    1. 140 ms
    2. 180 ms
    3. 260 ms
    4. 120 ms

    Answer: 180 ms

    The path is 40+max(80,120)+20=180 ms. Adding every parallel duration would overcount overlapping work.

  83. 83.A response waits for all 20 independent shards. Each meets a time budget with probability 0.99. What is the probability all meet it, approximately?

    Show answer and explanation
    1. 19.8%
    2. 81.79%
    3. 99%
    4. 0.99%

    Answer: 81.79%

    The supplied model gives 0.99²⁰≈0.8179. Fan-out can make the whole request's tail behavior much worse than one shard's marginal percentile.

  84. 84.A read request is hedged to reduce tail latency. What resource effect must its policy bound?

    Show answer and explanation
    1. A guarantee duplicate reads are free
    2. Only the number of successful client responses
    3. Additional work on the dependencies
    4. Only the primary request's duration

    Answer: Additional work on the dependencies

    Hedging can improve latency at extra load cost. Timing, cancellation, budgets, and operation semantics determine whether it helps the system.

  85. 85.A benchmark reports the best of fifty runs for the new version and the median for the old version. What should comparison correct?

    Show answer and explanation
    1. Only the order of the version labels
    2. Only the displayed time unit
    3. The unequal summary and sampling procedure
    4. A guarantee every summary estimates the same performance quantity

    Answer: The unequal summary and sampling procedure

    Use comparable, justified measurement and reporting. Selective statistics can create an apparent gain from noise or favorable selection.

  86. 86.A rollout's overall error rate falls because high-error traffic shifts away from it. What should release evidence compare?

    Show answer and explanation
    1. Only the aggregate rate
    2. A guarantee every rate reduction is a code improvement
    3. Comparable request cohorts and traffic mix
    4. Only the count of deployed instances

    Answer: Comparable request cohorts and traffic mix

    Mix changes can confound the apparent effect of a release. Analyze relevant cohorts and the routing change itself.

  87. 87.A release improves latency by returning partial responses where the contract requires complete results. What metric should prevent misclassifying this as success?

    Show answer and explanation
    1. Only the fraction of requests with any response body
    2. Correct completion under the actual response contract
    3. Only HTTP 200 count
    4. Only time to first byte

    Answer: Correct completion under the actual response contract

    Performance must be evaluated alongside correctness. A fast incomplete result is not a successful equivalent operation under this contract.

  88. 88.An incident requires tracing failed operations, but raw logs contain sensitive request bodies. What observability design helps?

    Show answer and explanation
    1. Logging every payload indefinitely as the default
    2. A guarantee diagnosis always requires full raw secrets
    3. Necessary structured context with appropriate data controls
    4. Removing every operation identifier from all evidence

    Answer: Necessary structured context with appropriate data controls

    Relevant identities and failure categories can support investigation without indiscriminate payload exposure. Use controls appropriate to the data and task.

  89. 89.A connection pool's occupied count rises after every failed operation and never falls, while successful operations release connections. What hypothesis should be tested?

    Show answer and explanation
    1. Only a slower network on successful calls
    2. A missing release on an error path
    3. A proof that more pool capacity permanently fixes the cause
    4. A guarantee the database has too many rows

    Answer: A missing release on an error path

    Path-specific resource cleanup can leak connections. Reproduce failures and inspect ownership/release behavior rather than only raising the limit.

  90. 90.A service compares error rates across versions, but one includes canceled client requests and the other excludes them. What must be reconciled?

    Show answer and explanation
    1. Only the percentage formatting
    2. A guarantee identical metric names imply identical denominators
    3. Outcome definitions and eligible populations
    4. Only the release names

    Answer: Outcome definitions and eligible populations

    Different classification rules measure different quantities. Align semantics before interpreting an apparent improvement.

  91. 91.A disaster-recovery test restores one small partition successfully. What broader claim needs additional evidence?

    Show answer and explanation
    1. Recovery of the required full system and workload
    2. The existence of the particular test artifact
    3. That the tested procedure produced an observable result
    4. That the tested partition was restored

    Answer: Recovery of the required full system and workload

    Scale, dependencies, state coverage, and objectives can differ in a full recovery. Keep the claim within tested conditions.

  92. 92.Rolling back a deployment restores service while traffic also drops sharply. What should a root-cause review distinguish?

    Show answer and explanation
    1. Only the count of incident log entries
    2. Mitigation evidence from complete causal attribution
    3. Only the rollback's timestamp
    4. A guarantee the rollback proves the sole cause

    Answer: Mitigation evidence from complete causal attribution

    A useful mitigation does not necessarily isolate the mechanism. Concurrent changes and load effects can confound a simple before/after conclusion.

  93. 93.Logs from two hosts disagree on event order, and their clocks are known to skew. What additional evidence can help?

    Show answer and explanation
    1. Only sorting raw wall-clock strings
    2. Causal linkage and clock-qualified timing
    3. Only the hosts' alphabetical names
    4. A guarantee every later timestamp means a later causal event

    Answer: Causal linkage and clock-qualified timing

    Cross-host timestamps need appropriate uncertainty and causal context. Trace links, request relationships, or logical ordering can clarify what occurred.

  94. 94.A duration is measured by subtracting wall-clock timestamps across a local clock adjustment. What should instrumentation consider?

    Show answer and explanation
    1. A suitable monotonic duration clock
    2. A guarantee wall-clock changes preserve every measured elapsed interval
    3. Only adding more decimal places
    4. Only sorting the two timestamps

    Answer: A suitable monotonic duration clock

    Wall time serves calendar interpretation; a monotonic clock is suited to elapsed duration within its supported scope. Choose the measurement according to the question.

  95. 95.A cache key omits tenant identity for tenant-specific responses. During an outage, more requests use cached fallbacks. What correctness issue becomes critical?

    Show answer and explanation
    1. Only a lower cache hit rate
    2. Only the time spent serializing responses
    3. A guarantee fallback caching cannot affect isolation
    4. Cross-tenant result confusion

    Answer: Cross-tenant result confusion

    A key must represent inputs that determine a result's permitted scope. Increased fallback usage can expose an existing isolation defect.

  96. 96.A service's safe budget is 600 work units per second. Each admitted request costs 5 units under the supplied model. What maximum constant admission rate fits that budget?

    Show answer and explanation
    1. 30 requests/second
    2. 120 requests/second
    3. 600 requests/second
    4. 3,000 requests/second

    Answer: 120 requests/second

    The rate is 600/5=120 under the stated constant-cost model. Real admission may need to account for variable work and other constrained resources.

  97. 97.Staging has the same code but much smaller datasets and no shared noisy neighbors. What should confidence in production capacity account for?

    Show answer and explanation
    1. A guarantee code identity implies equal performance
    2. Only identical source revisions
    3. Only staging's successful deployment status
    4. Environmental and workload differences

    Answer: Environmental and workload differences

    Scale and interference can change bottlenecks. Reproduce relevant conditions or qualify the extrapolation and measure production behavior appropriately.

  98. 98.A queue consumer's visibility lease expires while it still processes a long job. Another consumer receives that job. What should the design handle?

    Show answer and explanation
    1. A proof that the original job was invalid
    2. Only a different queue display position
    3. A guarantee the first worker has stopped executing
    4. Concurrent attempts and duplicate effects

    Answer: Concurrent attempts and duplicate effects

    Lease expiry or redelivery does not automatically stop prior work. Use suitable extension, cancellation, identity, and effect coordination semantics.

  99. 99.Two hypotheses explain latency: lock contention and remote slowness. What experiment is most informative when feasible?

    Show answer and explanation
    1. One that changes or measures a distinguishing mechanism
    2. Only collecting more of the same aggregate mean
    3. Only choosing the hypothesis with the shorter name
    4. A guarantee the most recent deploy is the cause

    Answer: One that changes or measures a distinguishing mechanism

    Seek discriminating evidence, such as wait breakdowns or controlled changes, while preserving service safety and the actual test scope.

  100. 100.Original demand is 100 requests/second. A retry policy allows 10% extra attempts, and the dependency can serve 105 attempts/second at the required accuracy. At the maximum retry allowance, what follows?

    Show answer and explanation
    1. Capacity exceeds offered load by 5 attempts/second.
    2. Offered load can exceed capacity by 5 attempts/second.
    3. The presence of a retry budget guarantees no overload.
    4. Only 10 total attempts per second are offered.

    Answer: Offered load can exceed capacity by 5 attempts/second.

    Maximum offered load is 100+10=110, against capacity 105. A retry budget must be coordinated with actual capacity, not merely exist.

  101. 101.Recovery restores committed orders but loses the operation-result records used to recognize retries. Clients then retry requests whose responses were lost. What must recovery validation include?

    Show answer and explanation
    1. Only successful database startup
    2. A guarantee restored orders make duplicate suppression unnecessary
    3. Only the time to load the first table
    4. Consistency between recovered identities and business effects

    Answer: Consistency between recovered identities and business effects

    A usable recovery must preserve the protocol's required state relationships. Missing operation identity can allow duplicate effects despite successful startup and intact order rows.