All quizzesHard
Reliability & Test Strategy
Preview — 3 of 10 questions
An API has unit tests for a fake repository but no request test for authorization. What high-risk gap remains?
AThe HTTP route may allow forbidden users despite correct repository behavior
BThe repository cannot be imported
CEvery fake writes to production
DPytest cannot compare status codes
A test suite has 100% line coverage but no concurrent duplicate-creation test. What claim is unsupported?
AThat the source lines were executed
BThat uniqueness behavior is safe under racing requests
CThat pytest collected tests
DThat JSON parsing works
A service uses an external payment API. Which layered tests best support the route contract?
AOnly snapshots of OpenAPI JSON
BOnly a live payment charge on every test run
CUnit tests for mapping plus controlled integration tests of the HTTP boundary and provider failure
DOnly tests of the Pydantic model constructor
Sign up free to play
Answer all 10 questions (7 more), see explanations for every answer, and track your score.