Question

Difficulty: EasyAutomating Deployment and Configuration Management

An administrator deployed an Amazon S3 bucket by using an AWS CloudFormation template. A developer subsequently modified the bucket's lifecycle policy directly in the Amazon S3 console. Which AWS CloudFormation feature should the administrator use to identify the discrepancy between the template definition and the current live configuration of the S3 bucket?

  1. AWS CloudFormation drift detectionAnswer
  2. B
    A Service Control Policy (SCP) attached to the organizational unit to grant the CloudFormation stack permission to automatically restore the bucket's lifecycle policy
  3. C
    An AWS-managed KMS key (aws/s3) with an attached key policy that restricts bucket configuration changes to CloudFormation stack updates
  4. D
    A linear deployment strategy configured in AWS CodeDeploy to automatically rollback the live S3 bucket modifications when they occur

Answer

AWS CloudFormation drift detection
AWS CloudFormation drift detection allows you to compare the stack's current resource configuration against the template's specified properties. Running drift detection on the stack identifies that the S3 bucket's configuration has drifted due to the manual lifecycle policy modification, indicating the exact differences.

Step-by-Step Solution

1
Analyze the scenario requirements.
The goal is to find a feature that identifies out-of-band changes (drift) made directly to an S3 bucket that was deployed via CloudFormation.
Identifying changes that make a live resource differ from its defined template configuration is known as detecting configuration drift.
2
Evaluate the capabilities of AWS CloudFormation.
CloudFormation provides a built-in feature called drift detection.
Drift detection compares the current configuration of stack resources with the expected configuration defined in the CloudFormation template.

Key Concept

Identifying configuration drift on resources managed by AWS CloudFormation.
Rate this question