Hard1 markMultiple Choice
Domain 3.1: Operational ExcellenceSystems ManagerOperational ExcellencePatching

AWS SAP-C02 · Question 36 · Domain 3.1: Operational Excellence

A company is using AWS Organizations. They want to ensure that any new EC2 instance launched in any account automatically has the AWS Systems Manager (SSM) Agent installed and is managed by SSM. They also want to automatically apply critical OS patches every weekend. What is the MOST operationally efficient way to achieve this?

Answer options:

A.

Create a custom AMI with the SSM Agent installed. Enforce its use via SCP.

B.

Use Default Host Management Configuration (DHMC) in Systems Manager to automatically manage all instances. Configure SSM Patch Manager with a maintenance window.

C.

Deploy an AWS Config rule to detect unmanaged instances and trigger a Lambda function to attach an IAM role.

D.

Use AWS CloudFormation StackSets to deploy an IAM instance profile to all accounts and attach it manually to instances.

How to approach this question

Look for the newest, most automated SSM feature (DHMC).

Full Answer

B.Use Default Host Management Configuration (DHMC) in Systems Manager to automatically manage all instances. Configure SSM Patch Manager with a maintenance window.✓ Correct
Default Host Management Configuration (DHMC) allows Systems Manager to automatically manage EC2 instances without the need to manually attach an IAM instance profile. SSM Patch Manager can then be used to automate patching across the organization.

Common mistakes

Relying on legacy methods like custom AMIs or manual IAM role attachment.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 4

75 questions · hints · full answers · grading

More questions from this exam