nerdexam
Amazon

DOP-C02 · Question #22

A company runs an application on Amazon EC2 instances. The company uses a series of AWS CloudFormation stacks to define the application resources. A developer performs updates by building and…

The correct answer is A. Create an application group and a deployment group in AWS CodeDeploy. Install the D. Use AWS CodePipeline to invoke the CodeBuild job, create CloudFormation change sets for. (A) This step sets up the environment to use AWS CodeDeploy for application deployments. CodeDeploy uses an agent installed on the EC2 instances to perform the deployment tasks. (D) This option uses CodePipeline to orchestrate the process. CodeBuild is used to build and test…

Submitted by yasin.bd· Mar 6, 2026SDLC Automation

Question

A company runs an application on Amazon EC2 instances. The company uses a series of AWS CloudFormation stacks to define the application resources. A developer performs updates by building and testing the application on a laptop and then uploading the build output and CloudFormation stack templates to Amazon S3. The developer's peers review the changes before the developer performs the CloudFormation stack update and installs a new version of the application onto the EC2 instances. The deployment process is prone to errors and is time-consuming when the developer updates each EC2 instance with the new application. The company wants to automate as much of the application deployment process as possible while retaining a final manual approval step before the modification of the application or resources. The company already has moved the source code for the application and the CloudFormation templates to AWS CodeCommit. The company also has created an AWS CodeBuild project to build and test the application. Which combination of steps will meet the company's requirements? (Choose two.)

Options

  • ACreate an application group and a deployment group in AWS CodeDeploy. Install the
  • BCreate an application revision and a deployment group in AWS CodeDeploy. Create an
  • CUse AWS CodePipeline to invoke the CodeBuild job, run the CloudFormation update, and pause
  • DUse AWS CodePipeline to invoke the CodeBuild job, create CloudFormation change sets for
  • EUse AWS CodePipeline to invoke the CodeBuild job, create CloudFormation change sets for

How the community answered

(29 responses)
  • A
    69% (20)
  • B
    21% (6)
  • C
    3% (1)
  • E
    7% (2)

Explanation

(A) This step sets up the environment to use AWS CodeDeploy for application deployments. CodeDeploy uses an agent installed on the EC2 instances to perform the deployment tasks. (D) This option uses CodePipeline to orchestrate the process. CodeBuild is used to build and test the application. CloudFormation is used to prepare the infrastructure updates as change sets. A manual approval step is inserted before applying the changes. After approval, the CloudFormation change sets are applied, and then CodeDeploy is invoked to deploy the new version of the application to the EC2 instances.

Topics

#CodePipeline#CodeBuild#CodeDeploy#CloudFormation Change Sets

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice