
Answer-first summary for fast verification
Answer: Use EC2 Image Builder with a custom recipe to install the application and its dependencies.
EC2 Image Builder simplifies the creation, maintenance, validation, sharing, and deployment of Linux or Windows Server images for use on Amazon EC2 and on-premises. It provides an automated pipeline that can run vulnerability scans (e.g., via Amazon Inspector) and use custom recipes, making it the most operationally efficient choice.
Author: Ritesh Yadav
Ultimate access to all questions.
Question #40 A CloudOps engineer is preparing to deploy an application to Amazon EC2 instances that are in an Auto Scaling group. The application requires dependencies to be installed. Application updates are issued weekly. The CloudOps engineer needs to implement a solution to incorporate the application updates on a regular basis. The solution also must conduct a vulnerability scan during Amazon Machine Image (AMI) creation. What is the MOST operationally efficient solution that meets these requirements?
A
Create a script that uses Packer. Schedule a cron job to run the script.
B
Install the application and its dependencies on an EC2 instance. Create an AMI of the EC2 instance.
C
Use EC2 Image Builder with a custom recipe to install the application and its dependencies.
D
Invoke the EC2 CreateImage API operation by using an Amazon EventBridge scheduled rule.
No comments yet.