An Auto Scaling group is slow to make instances available because the UserData script runs for a long time. The solution must ensure instances are available quickly, always have the latest application version, apply security updates, minimize the number of images created, and validate images. Which combination of steps meets these requirements? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Use EC2 Image Builder to create an AMI that includes all required OS patches and management/run-time agents. Update the Auto Scaling group's launch configuration to use this AMI., Configure AWS CodeDeploy to install the most recent application version at instance launch time..
Why this is the answer
The correct combination of steps addresses the need for fast instance availability, up-to-date applications, security, and efficient image management. Using EC2 Image Builder to create an AMI with pre-installed OS patches and agents significantly reduces the UserData script's execution time, making instances available faster. This also ensures security updates are applied and minimizes the number of images by creating a golden AMI. Image Builder also validates images. Configuring AWS CodeDeploy to install the latest application version at instance launch time ensures that instances always have the most current application. This separates the application deployment from the base AMI creation, allowing for frequent application updates without rebuilding the entire AMI for every code change. The incorrect option of using EC2 Image Builder to include the latest application version in the AMI would require rebuilding the AMI every time the application updates, which is inefficient and creates many images. Configuring AWS CodePipeline for deployment at launch is less direct for application installation than CodeDeploy, which is designed for this purpose. Removing OS patching commands from UserData without another mechanism would leave instances unpatched and insecure.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed