Gate changes on meaningful test evidence
Place fast checks, dependency tests and user journeys where their failures can stop promotion.
Gate changes on meaningful test evidence
A pull request can run deterministic unit tests without a live environment. At integration time, provision a disposable dependency with the same interface and permissions as the target and test its failure cases. A passing mock can conceal a changed response schema. For load tests, record traffic mix, warmup and the latency percentile that matters to users.
CodeBuild can publish structured test reports alongside the build result. Make the test runner return a failing exit status when a required assertion fails. Preserve reports when a build fails so the owner can identify the first broken test. Include a user-visible transaction after deployment to catch failures that a process readiness probe will miss.
Worked case 1
The test report contains failed assertions but the pipeline advanced. What do you fix?
Check your reasoning
Trace the shell command’s exit status through wrappers and pipes. Ensure the build reports failure and still uploads the diagnostic report.
Worked case 2
The mock returns a string but the updated service now returns a nested object. What test belongs before promotion?
Check your reasoning
Exercise the consumer against the versioned service interface in isolation and validate the shape of the response.
Official DOP-C02 skills for this topic
Related lesson in AWS Certified Developer – Associate. Test the boundary that can fail.
Practice with the recording
A high-volume load test overwhelms the shared QA environment and makes unrelated builds fail. Where should this test run?
Check your reasoning
Create a representative isolated target after the cheaper build and unit checks succeed. Tag the environment with the candidate revision, load it with synthetic traffic and preserve its results before cleanup. Gate that candidate on both error rate and latency.
Gate changes on meaningful test evidence quiz
Answer 3 questions. Check each answer for an explanation.