Your fleet needs OS patching monthly with no manual SSH. How do you automate it?
IntermediateScenarioEC2, Auto Scaling and Load Balancing
Answer
Situation read → Systems Manager Patch Manager with maintenance windows.
What I'd do →
- Tag instances by
PatchGroup - Create a patch baseline and a maintenance window
- Register the
AWS-RunPatchBaselinetask with rate control (10 percent concurrency, 5 percent error threshold) - Combine with ASG instance refresh to bake new AMIs instead of in-place patching for immutable fleets
- Report compliance in the console
Why → Immutable AMI rotation beats patching in place for repeatability.
Interview tip → Mention rate control to avoid patching the whole fleet at once.