Soru

Zorluk: KolayAutomating Deployment and Configuration Management

A company manages its infrastructure using AWS CloudFormation stacks. A Solutions Architect notices that some Amazon EC2 instances and security groups have been modified manually outside of CloudFormation, creating configuration drift. The Solutions Architect wants to detect these changes and ensure future configuration consistency for both the AWS resource properties and the operating system configurations inside the EC2 instances. Which two actions should the Solutions Architect take to meet these requirements?

  1. Run drift detection on the AWS CloudFormation stacks to identify which AWS resource properties have diverged from the stack templates.Cevap
  2. Create an AWS Systems Manager State Manager association to regularly apply and enforce the desired operating system configurations on the EC2 instances.Cevap
  3. C
    Modify the Service Control Policies (SCPs) at the organizational level to automatically revert EC2 instance properties to their launch configuration when drift occurs.
  4. D
    Enable AWS Config rules with AWS KMS managed keys to automatically re-encrypt and redeploy the CloudFormation templates when template drift is detected.
  5. E
    Configure AWS CodeDeploy with a linear deployment strategy to recreate the CloudFormation stack resources whenever a resource status changes.

Cevap

Run drift detection on the AWS CloudFormation stacks to identify resource-level changes, and create an AWS Systems Manager State Manager association to enforce operating system configurations on the EC2 instances.
The correct solution involves using CloudFormation's native drift detection to identify out-of-band infrastructure changes, combined with AWS Systems Manager State Manager to enforce operating system configurations on the EC2 instances.

Adım Adım Çözüm

1
Analyze the requirement for identifying resource-level configuration changes in CloudFormation.
Identify that CloudFormation drift detection natively compares current resource states against stack templates.
This identifies out-of-band modifications to resources managed by the stack.
2
Analyze the requirement for ensuring OS-level configuration consistency inside EC2 instances.
Select AWS Systems Manager State Manager to define and enforce OS configurations.
SSM State Manager automatically maintains the desired configuration state (e.g., packages, settings) on target instances.

Anahtar Kavram

Continuous configuration management and drift detection across AWS resources and guest operating systems.
Bu soruyu puanla