DOP-C02 Question 100
Single answerYour team is managing an application that runs on Amazon EC2 instances within an Auto Scaling group and must ensure that software updates, configuration changes, and package installations are consistently applied across all instances. The solution should minimize operational overhead and ensure that updates are applied automatically to newly launched instances. Which approach should you choose to achieve these requirements?
- A
Use AWS Systems Manager State Manager to define and enforce the desired configuration across instances.
- B
Manually SSH into each instance and perform the configuration updates.
- C
Use AWS OpsWorks Stacks to manage configurations and automate updates for the EC2 instances.
- D
Create a custom AMI with the required configuration and update the Auto Scaling group to use the new AMI.
Show answer and explanation
Correct answer: A
Explanation
AWS Systems Manager State Manager is the best choice for this scenario as it provides a scalable and automated way to enforce and maintain configurations on EC2 instances. It ensures that configurations are consistently applied to both existing and newly launched instances in an Auto Scaling group, reducing operational effort and minimizing manual intervention.
- A. Correct.
AWS Systems Manager State Manager is a configuration management service that allows you to define, enforce, and maintain the desired configuration state on your instances. It automates updates and ensures consistency, which minimizes operational overhead.
- B. Incorrect.
Manually SSH-ing into each instance is error-prone, time-consuming, and does not scale well, especially for dynamic environments like Auto Scaling groups.
- C. Incorrect.
AWS OpsWorks Stacks is a configuration management service, but it is better suited for applications that require Chef-based automation. It may require more setup and maintenance overhead compared to Systems Manager for this use case.
- D. Incorrect.
Creating a custom AMI can ensure consistency for initial instance provisioning, but it does not address ongoing updates or configuration changes after the instance is launched.