An enterprise manages a fleet of Amazon EC2 instances in an Auto Scaling group (ASG) deployed via AWS CloudFormation. Security policies require that all instances maintain a specific software configuration baseline, including a running logging agent, and that any unauthorized manual configuration changes on the instances be automatically remediated. Systems Manager Agent (SSM Agent) is installed on all instances. Which combination of actions should the Solutions Architect take to meet these requirements? (Select TWO.)
- Create an AWS Systems Manager State Manager association using an SSM document that defines the desired configuration baseline, targeting the EC2 instances using resource tags.Cevap
- Configure the State Manager association to run on a recurring schedule to automatically reapply the document's configuration, which remediates any local configuration drift.Cevap
- CIncorporate a custom script into the AWS CloudFormation template using cfn-init, and execute a scheduled hourly stack update to identify and remediate internal OS-level modifications.
- DDeliver the Systems Manager execution logs to a centralized S3 bucket in a separate security account, encrypting the logs using the default AWS-managed KMS key (aws/s3) of the security account.
- ECreate a Service Control Policy (SCP) at the root of the AWS Organization to grant the necessary Systems Manager permissions to the EC2 instances in all member accounts.
Cevap
To automatically detect and remediate OS-level configuration changes, a Systems Manager State Manager association must be created with an SSM document defining the baseline, targeting instances via tags. The association should be configured on a recurring schedule to enforce the configuration and remediate drift.
Automating OS-level configuration management and drift remediation is best accomplished with AWS Systems Manager State Manager. By defining the configuration baseline inside an SSM document and creating a State Manager association targeting the instances by resource tags, the configuration is applied systematically. Setting the association to execute on a recurring schedule ensures that any configuration changes introduced by manual operations are automatically overwritten and corrected back to the desired baseline.
Adım Adım Çözüm
Anahtar Kavram
Automated drift remediation at the OS level using AWS Systems Manager State Manager
Tahmini Süre:2m 0s