nerdexam
Amazon

DOP-C02 · Question #20

A DevOps engineer has automated a web service deployment by using AWS CodePipeline with the following steps: 1. An AWS CodeBuild project compiles the deployment artifact and runs unit tests. 2. An AWS

The correct answer is A. Insert a manual approval action between the test actions and deployment actions of the pipeline. E. Update the pipeline to invoke an AWS Lambda function that calls the REST API for the. The manual approval action (A) will allow the QA team to inspect the build artifact and run their internal penetration testing tool before the deployment to the production environment proceeds. Using an AWS Lambda function (E) would provide an automated way to call the REST API o

Submitted by andreas_gr· Mar 6, 2026SDLC Automation

Question

A DevOps engineer has automated a web service deployment by using AWS CodePipeline with the following steps: 1. An AWS CodeBuild project compiles the deployment artifact and runs unit tests. 2. An AWS CodeDeploy deployment group deploys the web service to Amazon EC2 instances in the staging environment. 3. A CodeDeploy deployment group deploys the web service to EC2 instances in the production environment. The quality assurance (QA) team requests permission to inspect the build artifact before the deployment to the production environment occurs. The QA team wants to run an internal penetration testing tool to conduct manual tests. The tool will be invoked by a REST API call. Which combination of actions should the DevOps engineer take to fulfill this request? (Choose two.)

Options

  • AInsert a manual approval action between the test actions and deployment actions of the pipeline.
  • BModify the buildspec.yml file for the compilation stage to require manual approval before
  • CUpdate the CodeDeploy deployment groups so that they require manual approval to proceed.
  • DUpdate the pipeline to directly call the REST API for the penetration testing tool.
  • EUpdate the pipeline to invoke an AWS Lambda function that calls the REST API for the

How the community answered

(24 responses)
  • A
    75% (18)
  • B
    4% (1)
  • C
    4% (1)
  • D
    17% (4)

Explanation

The manual approval action (A) will allow the QA team to inspect the build artifact and run their internal penetration testing tool before the deployment to the production environment proceeds. Using an AWS Lambda function (E) would provide an automated way to call the REST API of the penetration testing tool. This would allow for the tests to be conducted automatically within the pipeline. This is beneficial because it ensures consistency in the testing process and could be run programmatically, reducing manual steps.

Topics

#CodePipeline#Manual Approval#CodeBuild#AWS Lambda

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice