codejump

Reliability & Test Strategy — Series 2

Preview — 3 of 10 questions

A transaction spans an order write and inventory reservation. What test reveals an accidental partial commit?

AForce the reservation to fail and verify neither write remains
BAssert only the order response schema
CCount pytest fixtures
DRun a GET before creating the order only

A client may retry POST after a timeout. What scenario should an idempotency test simulate?

ATwo different URLs with no writes
BTwo requests with the same key and one durable result
COnly a successful GET
DA renamed route function

An API emits an event after committing a row. What fault-injection test probes the publish gap?

ACheck only that the row has a response model
BMock the event publisher to always succeed
CFail publishing after commit and verify a durable recovery record or compensating path
DAssert that HTTPX installed

Sign up free to play

Answer all 10 questions (7 more), see explanations for every answer, and track your score.