Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 292 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 292
Topic #: 1
[All Terraform Associate Questions]

What does terraform refresh-only modify?

  • A. Your cloud infrastructure
  • B. Your Terraform plan
  • C. Your Terraform configuration
  • D. Your state file
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Stargazer11
12 months ago
Selected Answer: D
refresh-only tries to match state file with real world infra. It does not refer to configuration in tf files.
upvoted 1 times
...
Ramdi1
12 months ago
Selected Answer: D
The terraform refresh command is used to reconcile the state Terraform knows about (via its state file) with the real-world infrastructure. This can be used to detect any drift from the last-known state and to update the state file. This does not modify infrastructure, but does modify the state file
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...