An enterprise utilizes AWS CloudFormation to manage its web application infrastructure, which includes Amazon EC2 Auto Scaling groups and Amazon VPC security groups. To comply with security policies, the security team requires that any configuration drift—specifically unauthorized manual modifications to security groups and EC2 instances—must be automatically detected and remediated. The operations team also requires that remediation actions must not disrupt existing application traffic and must be audit-compliant. Which two of the following options should the Solutions Architect recommend to automate drift detection and remediation while maintaining operational stability? (Select TWO.)
- Implement AWS Config rules to monitor security group configurations, and associate an AWS Systems Manager Automation runbook to automatically revert unauthorized rule changes.Cevap
- Use AWS CloudFormation drift detection on a scheduled basis via Amazon EventBridge, and configure notifications to alert administrators to reconcile legitimate configuration changes via stack updates.Cevap
- CConfigure AWS CloudFormation to perform an automatic rolling update deployment of the stack whenever drift is detected, ensuring immediate restoration of the desired state with minimal downtime.
- DConfigure AWS Systems Manager State Manager to execute a script that directly modifies the running EC2 instances and security groups in the live environment to match the target configuration, bypassing updates to the CloudFormation template.
- EAttach a Service Control Policy (SCP) at the Organizational Unit (OU) level that explicitly permits AWS Config and Systems Manager to modify security groups, assuming this grants the necessary execution permissions across all member accounts without local IAM policies.
Cevap
The correct options are: implementing AWS Config rules paired with Systems Manager Automation runbooks to revert changes, and utilizing scheduled AWS CloudFormation drift detection to alert administrators to reconcile legitimate modifications via stack updates.
Implementing AWS Config rules paired with Systems Manager Automation runbooks allows for non-disruptive, automated detection and remediation of specific resources like security groups. Furthermore, setting up scheduled CloudFormation drift detection ensures that any changes to managed stacks are identified, allowing administrators to reconcile them through proper template updates instead of out-of-band manual changes.
Adım Adım Çözüm
Anahtar Kavram
Automating configuration drift detection and remediation using AWS Config, AWS Systems Manager, and AWS CloudFormation while maintaining stack integrity.