AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 184

A company uses AWS Directory Service for Microsoft Active Directory as its identity provider (IdP). The company requires all infrastructure to be defined and deployed by AWS CloudFormation.

A DevOps engineer needs to create a fleet of Windows-based Amazon EC2 instances to host an application. The DevOps engineer has created a CloudFormation template that contains an EC2 launch template, IAM role, EC2 security group, and EC2 Auto Scaling group. The DevOps engineer must implement a solution that joins all EC2 instances to the domain of the AWS Managed Microsoft AD directory.

Which solution will meet these requirements with the MOST operational efficiency?

Answer options

Correct answer: B

Explanation

Option B is the most operationally efficient solution as it uses tags to target specific instances for joining the domain, leveraging AWS Systems Manager's automation capabilities. Options A and C involve additional complexities with SSM documents and runbooks that can complicate maintenance. Option D requires handling sensitive credentials in user data, which can pose security risks.