A CodePipeline runs: (1) CodeBuild compiles and runs unit tests, (2) CodeDeploy deploys to EC2 staging, (3) CodeDeploy deploys to EC2 production. QA wants to inspect the build artifact before production and run a manual penetration test that is invoked via a REST API. Which combination of changes should the DevOps engineer make? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Insert a manual approval action between the test actions and deployment actions of the pipeline., Update the pipeline to invoke an AWS Lambda function that calls the REST API for the penetration testing tool..
Why this is the answer
To allow QA to inspect the build artifact before production deployment, a manual approval action should be inserted into the CodePipeline. This pauses the pipeline, enabling QA to perform their checks. The approval action should be placed after the staging deployment and before the production deployment, ensuring the artifact is available for inspection in a deployed environment. For the manual penetration test invoked via a REST API, an AWS Lambda function is the most suitable integration method. The Lambda function can be configured to call the external REST API of the penetration testing tool. This allows the pipeline to trigger the test programmatically. Directly calling the REST API from the pipeline is not a native CodePipeline feature. Modifying the buildspec.yml for manual approval is incorrect because buildspec.yml controls the build process, not pipeline flow. CodeDeploy deployment groups do not inherently support manual approval for proceeding; pipeline-level approval is required.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed