Courseiva
Operations and MaintenancemediumMultiple ChoiceObjective-mapped

Patching EC2 Instances in Auto Scaling Groups

A company is running SAP on AWS and wants to implement a patching strategy for the operating system of EC2 instances with minimal downtime. The instances are part of an Auto Scaling group. Which of the following approaches is the MOST appropriate?

Quick Answer

This question tests the same core idea as many Auto Scaling patching scenarios: downtime is avoided by never taking capacity away before replacement capacity is ready, rather than by patching instances where they stand. Building a new AMI that already has the latest OS patches applied, updating the launch configuration to reference it, and then performing a rolling update of the Auto Scaling group means new, already-patched instances are launched and confirmed healthy before the old, unpatched instances are deregistered and terminated, so the group's total serving capacity never drops during the process. This is meaningfully different from applying patches directly to running instances with a tool like Systems Manager Patch Manager, which typically requires rebooting each instance in place, causing a period of unavailability for every instance patched that way. It's also different from stopping the entire Auto Scaling group, which removes all capacity at once and causes a full outage, or from patching every instance simultaneously during a single maintenance window, which would trigger simultaneous reboots across the fleet and again drop capacity to zero at the same moment. The distinguishing idea to hold onto is that rolling replacement, swapping instances one or a few at a time using a pre-built, already-patched image, is what actually prevents downtime, whereas in-place patching of running instances, even when automated, still generally requires a reboot that interrupts service on that instance. Expect this AMI-plus-rolling-update pattern whenever a question asks for zero-downtime OS patching inside an Auto Scaling group.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Create a new Amazon Machine Image (AMI) with the latest patches, update the launch configuration, and perform a rolling update of the Auto Scaling group.

Creating a new AMI with the latest patches, updating the launch configuration, and performing a rolling update of the Auto Scaling group replaces instances with patched AMIs without downtime. Option A is incorrect because applying patches directly to running instances using AWS Systems Manager Patch Manager requires reboots, causing downtime for each instance. Option B is incorrect because stopping the Auto Scaling group stops all instances, resulting in full downtime. Option C is incorrect because using Patch Manager to patch all instances at the same time during a maintenance window would cause simultaneous reboots, leading to downtime.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Apply patches directly to the running instances using AWS Systems Manager Patch Manager and reboot each instance one at a time.

    Why it's wrong here

    This approach still causes downtime for each instance as it reboots.

  • Stop the Auto Scaling group, patch the instances, and start the group again.

    Why it's wrong here

    Stopping the Auto Scaling group stops all instances, causing full downtime.

  • Use AWS Systems Manager Patch Manager to patch all instances at the same time during a maintenance window.

    Why it's wrong here

    Patching all instances simultaneously would cause all instances to reboot at the same time, resulting in downtime.

  • Create a new Amazon Machine Image (AMI) with the latest patches, update the launch configuration, and perform a rolling update of the Auto Scaling group.

    Why this is correct

    This approach replaces instances with patched ones without downtime as the Auto Scaling group launches new instances before terminating old ones.

About these practice questions

Courseiva writes every PAS-C01 question from scratch — 1,616 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way this is tested on PAS-C01

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A company runs SAP on AWS and needs to patch the operating system of multiple EC2 instances on a schedule. The instances are part of an Auto Scaling group. Which AWS service can be used to apply patches without disrupting the Auto Scaling group's desired capacity?

medium
  • A.AWS Systems Manager Patch Manager
  • B.Amazon EC2 Auto Scaling
  • C.AWS CloudFormation
  • D.AWS CodeDeploy

Why A: AWS Systems Manager Patch Manager can be used to apply OS patches to EC2 instances on a schedule. It integrates with Auto Scaling groups to maintain desired capacity, for example by using instance refresh to roll out patches without disrupting the group's capacity. Option B (Amazon EC2 Auto Scaling) is incorrect because it manages scaling, not patching. Option C (AWS CloudFormation) is incorrect because it is used for infrastructure provisioning, not patching. Option D (AWS CodeDeploy) is incorrect because it is for application deployments, not OS patching.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PAS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PAS-C01 exam.