nerdexam
AmazonAmazon

SAP-C02 · Question #338

SAP-C02 Question #338: Real Exam Question with Answer & Explanation

The correct answer is C: Create an Elastic Load Balancer in front of the Auto Scaling group.. The following example updates an Auto Scaling group with a newly patched AMI. This approach ensures that new images are automatically made available to different computing environments that use Auto Scaling groups. The final step of the automation in this example uses a Python fu

Submitted by omar99· Mar 6, 2026Continuous Improvement for Existing Solutions

Question

A company has used infrastructure as code (laC) to provision a set of two Amazon EC2 instances. The instances have remained the same tor several years. The company's business has grown rapidly in the past few months. In response, the company's operations team has implemented an Auto Scaling group to manage the sudden increases in traffic Company policy requires a monthly installation of security updates on all operating systems that are running. The most recent security update required a reboot. As a result the Auto Scaling group terminated the instances and replaced them with new, unpatched instances. Which combination of steps should a sol-tons architect recommend to avoid a recurrence of this issue? (Choose two.)

Options

  • AModify the Auto Scaling group by setting the Update policy to target the oldest launch
  • BCreate a new Auto Scaling group before the next patch maintenance.
  • CCreate an Elastic Load Balancer in front of the Auto Scaling group.
  • DCreate automation scripts to patch an AMI.
  • ECreate an Elastic Load Balancer in front of the Auto Scaling group Configure termination

Explanation

The following example updates an Auto Scaling group with a newly patched AMI. This approach ensures that new images are automatically made available to different computing environments that use Auto Scaling groups. The final step of the automation in this example uses a Python function to create a new launch template that uses the newly patched AMI. Then the Auto Scaling group is updated to use the new launch template. In this type of Auto Scaling scenario, users could terminate existing instances in the Auto Scaling group to force a new instance to launch that uses the new image. Or, users could wait and allow scale-in or scale-out events to naturally launch newer instances.

Community Discussion

No community discussion yet for this question.

Full SAP-C02 PracticeBrowse All SAP-C02 Questions