Which of the following is not a way to trigger terraform destroy?
A.
terraform destroy
B.
All of these will trigger terraform destroy
C.
terraform plan -destroy
D.
terraform destroy -auto-approve
The Answer Is:
C
This question includes an explanation.
Explanation:
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)., ====================, ]
Terraform-Associate-004 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 65% Discount on All Products,
Use Coupon: "ac4s65"