Question 100
During a production change review at a healthcare software provider, the DevOps team discovers that pipeline stages continue after a dependency scan times out and returns an ignored error. The affected workload supports patient scheduling and record access; downtime and integrity failures can affect clinical service delivery. Which automation approach BEST satisfies this operational requirement?
Explanation
Correct Answer
Correct. Return meaningful nonzero exit codes from test and security commands in CodeBuild and keep test reports so CodePipeline blocks unsafe artifacts. The reported condition is that pipeline stages continue after a dependency scan times out and returns an ignored error. The design addresses the corresponding exposure: A hidden test failure can falsely mark a build successful and promote an invalid artifact. Its effectiveness must be demonstrated by this result: A deliberately failed scan or test makes CodeBuild report failure, retains the diagnostic results and stops downstream promotion.
Incorrect Answers
Configure source integration and revision-specific event triggers so the pipeline deploys the exact approved commit and records its immutable revision identifier. The configuration must instead establish build process failure signaling.
Use a pipeline with delegated cross-account IAM roles and an artifact store whose encryption keys permit the destination account to retrieve approved artifacts. The build process failure signaling prerequisite remains unaddressed.
Add representative automated acceptance and performance tests to a controlled preproduction pipeline gate with pass/fail thresholds tied to service objectives. That change would not implement build process failure signaling.