Rationale for Correct Answer: terraform plan -destroy does not destroy anything. It only creates a plan that proposes destroying all managed resources. Actual destruction happens only when you run terraform destroy or terraform apply with an approved destroy plan.
Analysis of Incorrect Options (Distractors):
A: Does trigger destruction (interactive approval by default).
B: Incorrect because terraform plan -destroy does not perform destruction.
D: Does trigger destruction and skips the interactive approval prompt.
Key Concept: Difference between planning a destroy and executing a destroy.
[Reference: Terraform Objectives — Understand Terraform Basics and CLI (plan vs apply/destroy behaviors)., , ]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit