Administrators have applied different emergency patches to EC2 instances in an Auto Scaling group. Which approach restores consistent configuration while following immutable infrastructure principles?
Show the answer
Correct answerB. Build a tested AMI and replace instances using a new launch template version.
AWhy not this: Individual snapshots can preserve the different configurations rather than establish a common baseline.
BWhy this is right: A tested AMI and a new launch template version provide a consistent baseline for replacement instances.
CWhy not this: Monitoring can reveal problems but does not remove configuration differences.
DWhy not this: Remote patching modifies running instances rather than replacing them with a consistent image.
Immutable infrastructure replaces instances with instances built from a consistent, tested image rather than modifying them in place. Remote patching changes existing instances and can preserve configuration drift.