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.)
Select 2 answers.
Marked answer: A
This question asks for 2 answers, but our data marks only 1. Compare with the community discussion below for the full answer.
Community Discussion
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Chose AD1
the ans is A and D
1
the ans is A and D D not E because in deployment the best practise deploy in group not instance
Chose AD6
A and D are correct: A: rebuild the AMI and Update the IAM role of the EC2 instances to allow access to CodeDeploy is necessary B: no need to grants AppSpec file access to code CodeDeploy C: <Add a step to the CodePipeline pipeline to use EC2 Image Builder to create a new AMI> : this is unnecessary, we have already done it in option A. Addtionally, recreating AIM each time running the CICD pipiline is unnecessary D: ok E: <Specify the EC2 instances that are launched from the common AMI as the deployment targe>: this is time-consumming. There might by hundreds of EC2 instances and targeting them individually is time-consuming and not effective.