An enterprise wants to enforce a consistent configuration baseline across all Amazon EC2 instances in its AWS Organization. The baseline configuration requires that a specific third-party security daemon is installed and continuously running on all instances. During routine troubleshooting, developers occasionally stop this daemon, creating security non-compliance. A solutions architect needs to design an automated solution that detects and automatically remediates this configuration drift with the least operational overhead. Which of the following is the most efficient and compliant solution to meet these requirements?
- Deploy an AWS Systems Manager (SSM) State Manager association targeted at the instances. Configure the association to run a custom SSM document on a recurring schedule that checks the status of the security daemon and starts the service if it is stopped.Cevap
- BDeploy a Service Control Policy (SCP) at the root of the AWS Organization to deny permissions for stopping or disabling the security daemon service within the operating system of the EC2 instances.
- CDeploy the EC2 instances using AWS CloudFormation templates. Enable native CloudFormation drift detection to monitor the instances and configure the templates to automatically perform a stack update with a rollback configuration if the daemon stops.
- DUse AWS Config to monitor the status of the security daemon. If the daemon is stopped, trigger an AWS Systems Manager Automation runbook that uses the default AWS-managed KMS key for Systems Manager (aws/ssm) to securely decrypt configuration files and restart the service across accounts.
Cevap
Deploy an AWS Systems Manager (SSM) State Manager association targeted at the instances. Configure the association to run a custom SSM document on a recurring schedule that checks the status of the security daemon and starts the service if it is stopped.
The correct answer is the solution that uses an AWS Systems Manager (SSM) State Manager association to execute an SSM document on a schedule. SSM State Manager is specifically designed to enforce configuration baselines on EC2 instances. By targeting the instances and running a check on a schedule, State Manager can detect if the daemon has stopped and run the commands to restart it, remediating the OS-level drift automatically with minimal operational overhead.
Adım Adım Çözüm
Anahtar Kavram
AWS Systems Manager State Manager is a configuration management service that automates the process of keeping your EC2 and hybrid infrastructure in a defined state, enabling native remediation of OS-level configuration drift.