nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #63

Select the command that doesn't cause Terraform to refresh its state.

The correct answer is D. Terraform state list. This is the command that does not cause Terraform to refresh its state, as it only lists the resources that are currently managed by Terraform in the state file. The other commands will refresh the state file before performing their operations, unless you use the -refresh=false…

Implement and Maintain State

Question

Select the command that doesn't cause Terraform to refresh its state.

Options

  • ATerraform destroy
  • BTerraform apply
  • CTerraform plan
  • DTerraform state list

How the community answered

(55 responses)
  • A
    4% (2)
  • B
    7% (4)
  • C
    11% (6)
  • D
    78% (43)

Explanation

This is the command that does not cause Terraform to refresh its state, as it only lists the resources that are currently managed by Terraform in the state file. The other commands will refresh the state file before performing their operations, unless you use the -refresh=false flag.

Topics

#state refresh#terraform commands#terraform state list#core workflow

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice