Bird
0
0

During stack deletion, you get an error that a resource cannot be deleted due to dependencies. What should you do?

medium📝 Debug Q7 of 15
AWS - CloudFormation
During stack deletion, you get an error that a resource cannot be deleted due to dependencies. What should you do?
AForce delete the stack ignoring dependencies.
BManually delete or detach dependent resources before retrying.
CUpdate the stack to remove the resource first.
DRename the stack and try deleting again.
Step-by-Step Solution
Solution:
  1. Step 1: Understand dependency errors during deletion

    Resources with dependencies cannot be deleted until dependencies are removed or detached.
  2. Step 2: Correct approach to fix error

    Manually remove or detach dependent resources, then retry stack deletion.
  3. Final Answer:

    Manually delete or detach dependent resources before retrying. -> Option B
  4. Quick Check:

    Resolve dependencies before deletion = B [OK]
Quick Trick: Remove dependencies manually before deleting stack [OK]
Common Mistakes:
  • Trying to force delete ignoring dependencies
  • Updating stack instead of fixing dependencies
  • Renaming stack does not help deletion

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes