Which command does not cause Terraform to refresh its state?
A.
terraform state list
B.
terraform plan
C.
terraform apply
D.
terraform destroy
The Answer Is:
A
This question includes an explanation.
Explanation:
Rationale for Correct Answer:terraform state list only reads the existing state file and lists the resources Terraform currently tracks. It does not contact providers or refresh resource data, so stale state is not updated.
Analysis of Incorrect Options (Distractors):
B. terraform plan: Refreshes state by default before generating the execution plan.
C. terraform apply: Refreshes state before applying changes.
D. terraform destroy: Refreshes state to determine what resources must be destroyed.
Key Concept:Some Terraform commands read state only, while others refresh state by querying providers.
[Reference:Terraform Exam Objective – Implement and Maintain State, ]
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 60% Discount on All Products,
Use Coupon: "8w52ceb345"