A company used IaC to create two EC2 instances that have remained unchanged for years. Rapid business growth caused the operations team to introduce an Auto Scaling group, which replaces instances during spikes. Company policy requires monthly OS security updates that sometimes require a reboot. After a recent patch that required reboot, the Auto Scaling group terminated the patched instances and launched new, unpatched instances. Which combination of actions should the solutions architect recommend to prevent this from happening again? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Modify the Auto Scaling group by setting the update policy to target the oldest launch configuration for replacement., Automate patching of an AMI: create scripts that build a patched AMI, update the launch configuration to use it, and invoke an Auto Scaling instance refresh..
Why this is the answer
Automating patching of an AMI and updating the launch configuration ensures that new instances launched by the Auto Scaling group are always based on the latest, patched image. This prevents unpatched instances from being launched. Invoking an Auto Scaling instance refresh then systematically replaces existing instances with new ones from the updated launch configuration. Modifying the Auto Scaling group's update policy to target the oldest launch configuration for replacement is not a standard or effective Auto Scaling group setting for ensuring patched instances. Auto Scaling groups typically replace instances based on health checks or scaling policies, not specifically targeting the "oldest launch configuration" in this manner. The correct approach for updating instances within an ASG is through an instance refresh, which leverages a new launch template/configuration.
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