Question

Difficulty: EasyAutomating Deployment and Configuration Management

A company has a fleet of Amazon EC2 instances that must maintain a specific security configuration. A Solutions Architect needs to implement a solution to automatically detect and remediate any configuration drift on these instances. Which of the following approaches should the Solutions Architect use to achieve this goal? (Select TWO.)

  1. Use AWS Systems Manager State Manager to define and enforce the desired configuration on the instances at regular intervals.Answer
  2. Use AWS Config with an AWS Systems Manager Automation runbook as a remediation action to automatically correct non-compliant resource configurations.Answer
  3. C
    Modify the AWS Organizations Service Control Policy (SCP) attached to the account to prevent local IAM users from making manual configuration changes within the EC2 operating systems.
  4. D
    Enable AWS CloudFormation drift detection with automatic stack rollback to revert manual changes made to the instances.
  5. E
    Configure AWS Key Management Service (AWS KMS) with an AWS-managed key to automatically intercept and override configuration changes on the instances.

Answer

Use AWS Systems Manager State Manager to define and enforce configurations, and use AWS Config with an AWS Systems Manager Automation runbook as a remediation action.
The correct options are using AWS Systems Manager State Manager and using AWS Config with SSM Automation. State Manager enforces defined configuration states at regular intervals. AWS Config detects non-compliant resource states and triggers SSM Automation runbooks to remediate them.

Step-by-Step Solution

1
Analyze the requirements for configuration drift detection and remediation on EC2 instances.
Identify that the solution must monitor configuration compliance and automatically revert any deviations.
This establishes the need for configuration management tools (SSM State Manager) and compliance monitoring with remediation (AWS Config + SSM Automation).
2
Evaluate the capabilities of AWS Systems Manager State Manager.
Confirm State Manager can apply SSM documents at set schedules to keep EC2 instances in a consistent state.
This provides continuous enforcement of the desired OS-level or application-level configurations.
3
Evaluate the capabilities of AWS Config combined with SSM Automation.
Confirm AWS Config can detect compliance drift and trigger an SSM Automation runbook to remediate the drift.
This provides automated compliance detection and remediation at the resource level.

Key Concept

Continuous compliance and drift remediation utilizing AWS Systems Manager and AWS Config.
Rate this question