Sample questions
Question 1Easy
- Deliberately injecting failures to test resilience
- Writing code without tests
- Deploying randomly at night
- Letting each team pick its own programming language
Answer: A. Deliberately injecting failures to test resilience
Explanation
Controlled experiments (killing instances, adding latency) reveal weaknesses before real outages do.
Step-by-step solution
- Chaos engineering runs controlled experiments on a system.
- It injects faults such as killing instances or adding latency.
- The aim is to find weaknesses before real outages do.
- So it means deliberately injecting failures to test resilience (option A).
Why the other options are wrong
- B. Writing code without tests is not chaos engineering.
- C. Random night deploys are not a controlled experiment.
- D. Language choice per team is unrelated to testing resilience.
Tip: Chaos experiments should be controlled, small and aimed at a known risk.
Question 2Easy
- Deliberately rejecting some requests when overloaded
- Moving load to a cheaper region
- Lowering the database isolation level so that queries take fewer locks
- Deleting old logs
Answer: A. Deliberately rejecting some requests when overloaded
Explanation
Rejecting excess work quickly (often lower-priority traffic) keeps the service responsive for the rest.
Step-by-step solution
- When a service is overloaded, it cannot serve every request.
- Load shedding deliberately rejects some requests quickly.
- Rejecting lower-priority work keeps the service responsive for the rest.
- So load shedding is deliberately rejecting some requests when overloaded (option A).
Why the other options are wrong
- B. Moving load to another region is traffic routing, not shedding.
- C. Lowering isolation levels is a database tuning choice, not shedding.
- D. Deleting old logs is housekeeping, not load shedding.
Tip: Shed low-priority requests early so the important ones still get served.
Question 3Easy
Why should every network call have a timeout?
- Timeouts encrypt the connection
- Timeouts make calls succeed more often
- Without a timeout, most HTTP clients send the request twice by default
- So a hung dependency cannot tie up threads forever
Answer: D. So a hung dependency cannot tie up threads forever
Explanation
Without timeouts, slow dependencies exhaust thread pools and connections, spreading the failure upstream.
Step-by-step solution
- A call to a slow or hung dependency may never return.
- Its thread or connection stays blocked while it waits.
- A timeout gives up after a set time and frees the resource.
- So a hung dependency cannot tie up threads forever (option D).
Why the other options are wrong
- A. A timeout does not encrypt the connection.
- B. A timeout does not make the call succeed; it limits how long the call waits.
- C. HTTP clients do not send requests twice by default because of a missing timeout.
Tip: Set a timeout on every network call so one slow dependency cannot exhaust threads.
Question 4Easy
What are the three classic circuit breaker states?
- Active, Passive, Standby
- Closed, Open, Half-open
- Up, Down, Unknown
- Green, Amber, Red
Answer: B. Closed, Open, Half-open
Explanation
Closed passes calls; Open fails fast; Half-open lets a few trial calls through to test recovery.
Step-by-step solution
- Closed means calls pass through normally.
- Open means calls fail fast after too many failures.
- Half-open lets a few trial calls through to test recovery.
- So the three classic states are Closed, Open and Half-open (option B).
Why the other options are wrong
- A. Active, Passive and Standby are failover roles, not breaker states.
- C. Up, Down and Unknown are health labels, not breaker states.
- D. Green, Amber and Red are status colours, not breaker states.
Tip: Closed passes calls; Open fails fast; Half-open tests with a few calls.
Question 5Medium
A 'retry storm' happens when:
- Retries at several layers multiply load on a struggling service
- A cache entry expires
- A load balancer adds many new servers at once during a sudden traffic spike
- A circuit breaker opens
Answer: A. Retries at several layers multiply load on a struggling service
Explanation
If each of 3 layers retries 3 times, one user request can become 27 backend calls; retry at one layer and use budgets.
Step-by-step solution
- Each layer that retries multiplies the calls made to the next layer.
- Three layers each retrying three times turn one request into many calls.
- That extra load lands on a service that is already struggling.
- So a retry storm is retries at several layers multiplying load (option A).
Why the other options are wrong
- B. A cache expiry is a cache event, not a retry storm.
- C. A load balancer adding servers is scaling, not a retry storm.
- D. A breaker opening reduces load; it does not cause a storm.
Tip: Retry at one layer only, and cap retries with a budget.
Question 6Medium
A recommendation service is down. The product page still shows, with a generic 'popular items' list. This is:
- Write-through caching
- A cascading failure
- Graceful degradation with a fallback
- Split brain
Answer: C. Graceful degradation with a fallback
Explanation
Non-critical features fall back to a simpler response rather than failing the whole page.
Step-by-step solution
- The recommendation service is down.
- The product page still loads, and shows a generic popular items list instead.
- The non-critical feature falls back to a simpler response.
- So this is graceful degradation with a fallback (option C).
Why the other options are wrong
- A. Write-through caching is about writes to a cache and database, not a fallback.
- B. A cascading failure would take the page down, which did not happen here.
- D. Split brain is two leaders in a replicated database, not a fallback.
Tip: Give non-critical features a simpler fallback so the whole page does not fail.
Question 7Medium
- Sends all requests through a single shared connection pool to save memory overall
- Retries failed calls in bulk
- Merges all thread pools into one
- Isolates resources per dependency to contain failures
Answer: D. Isolates resources per dependency to contain failures
Explanation
Separate pools for each dependency keep a slow one from consuming every thread, like compartments in a ship.
Step-by-step solution
- A bulkhead gives each dependency its own pool of threads or connections.
- A slow dependency can then use up only its own pool.
- The others keep working, like watertight compartments on a ship.
- So the bulkhead isolates resources per dependency to contain failures (option D).
Why the other options are wrong
- A. One shared pool is the opposite of a bulkhead, since one slow user can drain it.
- B. Bulk retries are not a bulkhead.
- C. Merging all pools into one removes the isolation.
Tip: Separate pools per dependency keep one failure from taking every thread.
Question 8Medium
In the half-open state, a circuit breaker:
- Sends half of all traffic to the dependency
- Retries each failed request exactly twice before giving up on it
- Blocks every request permanently
- Lets a few trial requests through to test recovery
Answer: D. Lets a few trial requests through to test recovery
Explanation
Half-open probes whether the dependency has recovered before restoring full traffic.
Step-by-step solution
- Half-open is the state after an open period.
- The breaker lets a few trial calls through.
- If they succeed, the breaker closes again; if they fail, it opens again.
- So in half-open it lets a few trial requests through (option D).
Why the other options are wrong
- A. Half-open does not send half of all traffic; only a few trial calls pass.
- B. Retrying each failed request twice is a retry policy, not the breaker's half-open state.
- C. Blocking every request permanently is the Open state without a recovery test.
Tip: Half-open is a recovery test: a few calls decide whether to close or reopen.
Question 9Hard
Why add random jitter to retry backoff?
- To make retries finish faster
- Because exponential backoff alone never stops retrying
- So many clients do not retry in synchronised waves
- To encrypt retry traffic
Answer: C. So many clients do not retry in synchronised waves
Explanation
Without jitter, clients that failed together retry together, repeatedly hammering the recovering service.
Step-by-step solution
- Without jitter, clients back off to the same delays.
- They all retry at the same moments, creating waves.
- Random jitter spreads the retries.
Why the other options are wrong
- A. Jitter adds delay, not speed.
- B. Retry limits stop retries, not jitter.
- D. Jitter is unrelated to encryption.
Question 10Hard
Service B slows down; A's threads all wait on B; A stops responding; C, which calls A, also fails. This is:
- A cache stampede
- A cascading failure
- A deadlock in the database
- Eventual consistency
Answer: B. A cascading failure
Explanation
Failures propagate upstream through blocked resources; timeouts, breakers and bulkheads contain them.
Step-by-step solution
- Service B slows down.
- A's threads all wait on B, so A stops responding.
- C calls A, so C fails too; the failure travels upstream.
- So this is a cascading failure (option B).
Why the other options are wrong
- A. A cache stampede is many misses on one key, not slow dependencies.
- C. No database deadlock is described; the threads are waiting on a service.
- D. Eventual consistency is about data replicas, not failures spreading.
Tip: Timeouts, breakers and bulkheads stop one slow service from taking down its callers.
Practise all 15 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →