A company is using several AWS CloudFormation templates for deploying infrastructure as code. In most of the deployments, the company uses Amazon EC2 Auto Scaling groups. A DevOps Engineer needs to update the AMIs for the Auto Scaling group in the template if newer AMIs are available. How can these requirements be met?
A) Manage the AMI mappings in the CloudFormation template. Use Amazon CloudWatch Events for detecting new AMIs and updating the mapping in the template. Reference the map in the launch configuration resource block.
B) Use conditions in the AWS CloudFormation template to check if new AMIs are available and return the AMI ID. Reference the returned AMI ID in the launch configuration resource block.
C) Use an AWS Lambda-backed custom resource in the template to fetch the AMI IDs. Reference the returned AMI ID in the launch configuration resource block.
D) Launch an Amazon EC2 m4.small instance and run a script on it to check for new AMIs. If new AMIs are available, the script should update the launch configuration resource block with the new AMI ID.
Correct Answer:
Verified
Q12: A healthcare provider has a hybrid architecture
Q13: A company has deployed several applications globally.
Q14: A company has a hybrid architecture solution
Q15: A DevOps Engineer discovered a sudden spike
Q16: A DevOps Engineer is asked to implement
Q18: A company is setting up a centralized
Q19: A Development team uses AWS CodeCommit for
Q20: A government agency is storing highly confidential
Q21: A DevOps Engineer is building a continuous
Q22: A company has an application that has
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents