AWS Systems Manager Patching with ALB IP Target Groups
Short answer
CD Implement the AWS-EC2-PatchLoadBalancerInstance Automation document and use Maintenance Windows to remove instances from service.
Question
Key Takeaways
Tests the ability to integrate Systems Manager with ALB deregistration; the trap is assuming standard patching works without explicit traffic removal for IP-based targets.
Resolves errors when patching EC2 instances behind an Application Load Balancer using IP-based target groups by leveraging specific Automation documents and Maintenance Windows.
Common mistake: Candidates often select changing the target type (A) or assume existing documents work out-of-the-box (B), ignoring that IP targets bypass instance-level deregistration logic.
Expert Analysis
Why the Answer Is Correct
The correct options are C and D. Because the target group uses IP addresses, the ALB routes traffic based on IP, not the EC2 instance ID. Standard Systems Manager patching does not automatically deregister IPs from the target group, causing errors if the instance is stopped/patched while still registered. Option C is correct because the 'AWS-EC2-PatchLoadBalancerInstance' Automation document explicitly handles deregistering instances from a Load Balancer before patching and re-registering them after. Option D is correct because Maintenance Windows allow you to define execution roles and schedules, and when combined with the appropriate Automation document or scripts, they can orchestrate the safe removal of instances from service.
Why the Other Options Are Wrong
Option A is incorrect because changing the target type to 'instance' is a structural change to the architecture, not a fix for the patching process itself, and may not be feasible or desired. Option B is incorrect because the existing generic document is not optimized for this specific scenario involving IP-based target groups and requires modification or replacement. Option E is incorrect because State Manager is designed for maintaining state (compliance) rather than performing operational tasks like patching and load balancer deregistration; it does not handle the dynamic deregistration required here.
Community Comment Notes
Community consensus strongly supports CD, noting that the errors stem from instances being patched while still active in the target group. As LeonSauveterre noted, "The errors occur because the company is trying to patch instances that are still actively serving traffic." Another commenter, JoeAWS, initially suggested AC but was corrected, highlighting that simply changing the target type doesn't solve the immediate patching workflow error without the proper automation tool.
Official Reference
This link opens the official vendor documentation in a new tab.
Exam Strategy
Always check the target group type (IP vs Instance) when dealing with Load Balancers and Systems Manager. If it's IP-based, you need explicit deregistration logic, which is provided by specific Automation documents, not just standard maintenance windows.
Frequently Asked Questions
Why doesn't the default Systems Manager patch document work?
Can I just change the target group to Instance type?
Community Votes
100% of anonymous learners picked answer CD. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 5 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 5
-
bujuman 👍 3https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awsec2-patch-load-balancer-instance.html
-
LeonSauveterre 👍 2YOU SHOULD KNOW: The errors occur because the company is trying to patch instances that are still actively serving traffic. A - Unnecessary when existing tools can handle the issue. B - The existing document is not optimized for instances in an IP address type target group, so errors would persist. C - This document automates the process of deregistering instances from the ALB during patching and re-registering them afterward, ensuring no traffic is routed to the instances while they are being patched. It directly addresses the issue and adheres to best practices. D - Maintenance Windows allow you to define a schedule for patching and ensure instances are temporarily removed from service during the process. E - This alone can't de-register and re-register instances.
-
JoeAWS 👍 1The document deregisters instances from target group. Since they are using IP address type, it won't prevent traffic from reaching the server. Need to work choice A into the answer.
-
EllenLiu 👍 1https://docs.aws.amazon.com/systems-manager/latest/userguide/state-manager-vs-maintenance-windows.html
-
aragon_saa 👍 3Answe is CD
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SAA-C03 Questions
Access 120 questions with complete answers and detailed explanations.
View Full SAA-C03 Practice Test →