AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 23

A company uses AWS CodePipeline pipelines to automate releases of its application A typical pipeline consists of three stages build, test, and deployment. The company has been using a separate AWS CodeBuild project to run scripts for each stage. However, the company now wants to use AWS CodeDeploy to handle the deployment stage of the pipelines.
The company has packaged the application as an RPM package and must deploy the application to a fleet of Amazon EC2 instances. The EC2 instances are in an EC2 Auto Scaling group and are launched from a common AMI.
Which combination of steps should a DevOps engineer perform to meet these requirements? (Choose two.)

Answer options

Correct answer: A, D

Explanation

Option A is correct because installing the CodeDeploy agent on the AMI and updating the IAM role ensures that the EC2 instances can communicate with CodeDeploy. Option D is also correct as it involves creating an application in CodeDeploy and configuring the pipeline to use CodeDeploy for deployment to the Auto Scaling group. The other options either focus on unnecessary steps or do not correctly configure the deployment process.