nerdexam
HashiCorp

TA-002-P · Question #425

What does terraform refresh modify?

The correct answer is B. Your state file. The terraform refresh command reads the current settings from all managed remote objects and updates the Terraform state to match.

Implement and maintain state

Question

What does terraform refresh modify?

Options

  • AYour cloud infrastructure
  • BYour state file
  • CYour Terraform plan
  • DYour Terraform configuration

How the community answered

(61 responses)
  • A
    7% (4)
  • B
    87% (53)
  • C
    3% (2)
  • D
    3% (2)

Explanation

The terraform refresh command reads the current settings from all managed remote objects and updates the Terraform state to match.

Topics

#Terraform CLI#terraform refresh#State file#State management

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice