A SysOps Administrator is using AWS Systems Manager Patch Manager to automate security updates for a fleet of Red Hat Enterprise Linux (RHEL) EC2 instances. The administrator wants to apply different patch baselines to development and production instances. To achieve this, the administrator tags the development instances with the key-value pair `patch-group: RHEL-dev` and the production instances with `patch-group: RHEL-prod`. However, during the next maintenance window, Patch Manager fails to apply the custom baselines, and all instances are updated using the AWS-provided default patch baseline. Which action will resolve this issue?
- AChange the tag key on the instances to `ssm:patch-group` and register the patch groups in the Systems Manager Quick Setup console.
- BModify the IAM role assigned to the EC2 instances to include the `iam:PassRole` permission for the Systems Manager service role.
- Change the tag key on the EC2 instances to the case-sensitive string `Patch Group` and register the patch groups to the respective custom patch baselines.Answer
- DConfigure detailed CloudWatch monitoring on all instances to allow Systems Manager to dynamically read the default tags.
Answer
Change the tag key on the EC2 instances to the case-sensitive string 'Patch Group' and register the patch groups to the respective custom patch baselines.
The correct action is to change the tag key on the EC2 instances to the case-sensitive string 'Patch Group' and register the patch groups to the respective custom patch baselines. AWS Systems Manager Patch Manager specifically requires the exact tag key 'Patch Group' (case-sensitive and with a space) to map instances to patch groups. If the tag key is misspelled, has incorrect casing, or uses a hyphen, Patch Manager will not match the instances to their registered patch groups. Consequently, it falls back to the default patch baseline for that operating system.
Step-by-Step Solution
Key Concept
AWS Systems Manager Patch Manager uses the case-sensitive tag key 'Patch Group' to associate managed instances with patch groups. Each patch group must then be registered to a patch baseline to override the default baseline.
Estimated Time:1m 0s