Question 70
During a resilience and compliance assessment at a public services agency, the DevOps team discovers that the pipeline considers a successful Docker image build sufficient evidence that database compatibility tests passed. The affected workload supports citizen identity and digital service access; service disruption can affect statutory service commitments. Which automation approach BEST satisfies this operational requirement?
Explanation
Correct Answer
Correct. Run automated tests in CodeBuild before any production deployment action, and fail the pipeline when required unit or integration checks fail. The reported condition is that the pipeline considers a successful Docker image build sufficient evidence that database compatibility tests passed. The design addresses the corresponding exposure: Unvalidated application changes can reach production when compilation success is treated as evidence of functional correctness. Its effectiveness must be demonstrated by this result: Introduce an intentionally failing required integration test and verify the build exits unsuccessfully and blocks the release stage.
Incorrect Answers
Return meaningful nonzero exit codes from test and security commands in CodeBuild and keep test reports so CodePipeline blocks unsafe artifacts. That result could pass without demonstrating ci unit and integration quality gates.
Use a pipeline with delegated cross-account IAM roles and an artifact store whose encryption keys permit the destination account to retrieve approved artifacts. Acceptance here depends on observing ci unit and integration quality gates, not only that test.
Configure source integration and revision-specific event triggers so the pipeline deploys the exact approved commit and records its immutable revision identifier. It does not establish the requested ci unit and integration quality gates outcome.