SAP-C02 · Question #534
A company has an application that runs on Amazon EC2 instances in an Amazon EC2 Auto Scaling group. The company uses AWS CodePipeline to deploy the application. The instances that run in the Auto…
The correct answer is D. Create a new AMI that has the CodeDeploy agent installed. Configure the Auto Scaling group's. https://aws.amazon.com/blogs/devops/under-the-hood-aws-codedeploy-and-auto-scaling-
Question
A company has an application that runs on Amazon EC2 instances in an Amazon EC2 Auto Scaling group. The company uses AWS CodePipeline to deploy the application. The instances that run in the Auto Scaling group are constantly changing because of scaling events. When the company deploys new application code versions, the company installs the AWS CodeDeploy agent on any new target EC2 instances and associates the instances with the CodeDeploy deployment group. The application is set to go live within the next 24 hours. What should a solutions architect recommend to automate the application deployment process with the LEAST amount of operational overhead?
Options
- AConfigure Amazon EventBridge to invoke an AWS Lambda function when a new EC2 instance is
- BWrite a script to suspend Amazon EC2 Auto Scaling operations before the deployment of new
- CCreate a new AWS CodeBuild project that creates a new AMI that contains the new code.
- DCreate a new AMI that has the CodeDeploy agent installed. Configure the Auto Scaling group's
How the community answered
(40 responses)- A5% (2)
- B3% (1)
- C10% (4)
- D83% (33)
Explanation
https://aws.amazon.com/blogs/devops/under-the-hood-aws-codedeploy-and-auto-scaling-
Community Discussion
No community discussion yet for this question.