DOP-C02 Question 90
Select 3Your company uses AWS CodePipeline to automate the build and deployment of a web application. The application must pass automated integration tests before deploying to production. However, failures in the test phase are causing the pipeline to stop, and the operations team struggles to debug the issue without accessing the test execution environment. How can you allow the operations team to debug the failed tests while ensuring the pipeline remains secure and efficient?
- A
Enable AWS CodeBuild session debugging for the test phase and provide operations team IAM permissions to start a debugging session.
- B
Use AWS Step Functions to retry the failed test phase automatically before moving to production.
- C
Store test execution logs in Amazon CloudWatch Logs and provide the operations team access to the logs.
- D
Configure the pipeline to upload test artifacts to an S3 bucket and provide the operations team access to the bucket.
- E
Modify the pipeline to bypass the test phase and allow deployments to production for faster debugging.
Show answer and explanation
Correct answers: A, C, D
Explanation
To debug failed tests effectively while maintaining a secure, efficient pipeline, enabling AWS CodeBuild session debugging provides an interactive environment for troubleshooting. Additionally, storing logs in CloudWatch Logs and uploading test artifacts to S3 ensures the operations team has sufficient insights into the failure without compromising security or efficiency. Bypassing the test phase is not recommended as it violates best practices for CI/CD pipelines.
- A. Correct.
Correct: AWS CodeBuild session debugging allows the operations team to interact with the test environment in real time for troubleshooting.
- B. Incorrect.
Incorrect: AWS Step Functions can retry steps but does not provide an interactive debugging environment, nor does it help in identifying the root cause of test failures.
- C. Correct.
Correct: Storing logs in Amazon CloudWatch Logs enables the operations team to analyze test execution details and identify potential issues.
- D. Correct.
Correct: Uploading test artifacts (e.g., logs, reports) to S3 provides additional information for debugging the test failures.
- E. Incorrect.
Incorrect: Bypassing the test phase compromises the CI/CD pipeline's quality control and introduces risks to production deployments.