Security and Compliance

An S3 bucket's CloudFormation template omits VersioningConfiguration, and an administrator later enables versioning outside CloudFormation. With no other changes, drift detection reports the bucket as IN_SYNC; what best explains this result?

Show the answer

Correct answerC. CloudFormation compares only property values explicitly defined in the template.

AWhy not this: CloudFormation drift detection does not depend on an AWS Config recorder.

BWhy not this: VersioningConfiguration can participate in drift detection when explicitly defined in the template.

CWhy this is right: An omitted property is not compared with the live value, even when the service supplies a default.

DWhy not this: Drift detection compares actual state with the template; it does not update the template to adopt live values.

CloudFormation checks drift only for property values explicitly defined in the template, including explicitly supplied defaults. Omitting VersioningConfiguration leaves it outside that comparison; AWS Config recording is not a prerequisite for drift detection.