Q70 — AWS DVA-C02 Ch.1
Question 70 of 100 | ← Chapter 1
A developer receives the following error during an AWS CloudFormation stack deletion: DELETE_FAILED (Failed to delete resource: [ASGInstanceRole12345678].). What action should the developer take to resolve this error?
- A. Contact AWS Support to report an issue with the Auto Scaling Groups (ASG) service.
- B. Add a DependsOn attribute for the ASGInstanceRole12345678 resource in the CloudFormation template, then delete the stack.
- C. Modify the CloudFormation template to retain the ASGInstanceRole12345678 resource, then manually delete it after stack deletion completes. ✓
- D. Add a force parameter when calling CloudFormation and specify the role-arn for ASGInstanceRole12345678.
Correct Answer: C. Modify the CloudFormation template to retain the ASGInstanceRole12345678 resource, then manually delete it after stack deletion completes.
Explanation
Option A is premature—support escalation is reserved for unresolved cases. Option B’s DependsOn addresses creation/deletion ordering but does not resolve persistent deletion failures caused by resource state or external dependencies. Option D is invalid—CloudFormation has no 'force' parameter for deletion. Option C is correct: retaining the problematic resource allows CloudFormation to successfully delete all other resources, after which the retained resource can be manually deleted—ensuring stack cleanup proceeds without interruption. 【Lantern Certification: swufelp1999】