An organization has a fleet of Ubuntu Amazon EC2 instances. A SysOps Administrator creates a custom patch baseline in AWS Systems Manager Patch Manager to control which security updates are installed. The administrator registers a patch group named 'ubuntu-prod' with this custom baseline. During a scheduled maintenance window, the administrator observes that the instances are being patched, but they are receiving updates from the default AWS-provided patch baseline rather than the custom baseline.
Which of the following is the most likely cause of this behavior?
- The EC2 instances are tagged with the key 'PatchGroup' and the value 'ubuntu-prod'.Answer
- BThe custom patch baseline has not been set as the default patch baseline for the Ubuntu operating system in Systems Manager Patch Manager.
- CThe IAM role used by the Maintenance Window to run the patch task is missing the 'iam:PassRole' permission.
- DThe EC2 instances do not have the 'AmazonSSMManagedInstanceCore' policy attached to their IAM instance profile.
Answer
The EC2 instances are tagged with the key 'PatchGroup' and the value 'ubuntu-prod'.
For AWS Systems Manager Patch Manager to associate an instance with a patch group, the instance must have a tag with the exact case-sensitive key 'Patch Group' (with a space). If the tag key is 'PatchGroup' (without a space), Systems Manager fails to map the instance to the 'ubuntu-prod' patch group, causing Patch Manager to apply the default AWS-provided patch baseline instead.
Step-by-Step Solution
Key Concept
AWS Systems Manager Patch Group Tagging Requirements