A SysOps Administrator performs a drift detection operation on an AWS CloudFormation stack that contains an Amazon S3 bucket. The drift detection report shows that the S3 bucket has a drift status of DELETED. Which of the following describes the root cause of this drift status?
- The S3 bucket was deleted directly from the AWS account outside of CloudFormation operations.Cevap
- BThe CloudFormation stack deletion failed, and the stack has rolled back to its previous state.
- CThe CloudFormation service role lacks the necessary permissions to describe or access the S3 bucket.
- DThe S3 bucket was automatically terminated as part of a blue/green deployment strategy to save costs.
Cevap
The S3 bucket was deleted directly from the AWS account outside of CloudFormation operations.
The correct answer is correct because CloudFormation drift detection compares the current resource state against the expected state defined in the stack template. If a resource exists in the template but has been deleted from the AWS account via the AWS Console, CLI, or API, the drift status for that resource is marked as DELETED.
Adım Adım Çözüm
Anahtar Kavram
CloudFormation Drift Detection Statuses