Question 50
For this case: A developer changes a billing calculation, but the pipeline deploys after compilation without running unit tests. The team applies this change: Run deterministic unit tests with fail-fast exit status in CodeBuild before any deploy promotion. Which evidence BEST confirms it worked?
Explanation
Correct Answer
The reason is: Unit tests validate isolated application behavior early, reducing feedback time before integration and release.
Incorrect Answers
A manual approval stage is a release control, not a substitute for technical tests and artifact traceability. The appropriate remedy is to introduce a controlled failing test and verify the build stage stops and prevents downstream deployment.
Build and deployment credentials should be retrieved through controlled secret stores and least-privilege runtime identities. Instead, the response must introduce a controlled failing test and verify the build stage stops and prevents downstream deployment.
Cross-account pipeline access should use temporary assumed-role credentials with explicit trust and least-privilege permissions. The relevant control is to introduce a controlled failing test and verify the build stage stops and prevents downstream deployment.





AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests