Scenario: To minimize the risk of 'Accidental Resource Deletion' during a CloudFormation stack deletion, you want to ensure that specific resources (like S3 buckets or RDS instances) are retained. Which attribute should you add to the resource definition?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: DeletionPolicy: Retain

The DeletionPolicy attribute allows you to retain or in some cases, backup a resource even when its stack is deleted....

📋Part of AWS Certified DevOps Engineer – Professional (DOP-C02) · AWS Certification Practice
Real Exam ScenarioScenario Based

Scenario: To minimize the risk of 'Accidental Resource Deletion' during a CloudFormation stack deletion, you want to ensure that specific resources (like S3 buckets or RDS instances) are retained. Which attribute should you add to the resource definition?

✓ Correct Answer & ExplanationScenario Based

Correct Answer

DeletionPolicy: Retain

Why This Answer Is Correct

The DeletionPolicy attribute allows you to retain or in some cases, backup a resource even when its stack is deleted.

📚 What This Question Tests

This question evaluates your knowledge of Scenario Based — a core concept tested in AWS Certified DevOps Engineer – Professional (DOP-C02). Understanding Scenario Based is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.