nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #218

Which command does not cause Terraform to refresh its state?

The correct answer is A. terraform state list. terraform state list only displays resources stored in the state file but does not interact with the cloud provider or refresh the state. terraform plan, terraform apply, and terraform destroy compare or modify the infrastructure, so they refresh the state to ensure accuracy.

Submitted by katya_ua· Apr 18, 2026Manage Terraform State

Question

Which command does not cause Terraform to refresh its state?

Options

  • Aterraform state list
  • Bterraform plan
  • Cterraform apply
  • Dterraform destroy

How the community answered

(36 responses)
  • A
    92% (33)
  • C
    3% (1)
  • D
    6% (2)

Explanation

terraform state list only displays resources stored in the state file but does not interact with the cloud provider or refresh the state. terraform plan, terraform apply, and terraform destroy compare or modify the infrastructure, so they refresh the state to ensure accuracy.

Topics

#Terraform CLI#Terraform state#State refresh#terraform state list

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice