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 151 discussion

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

What does terraform refresh modify?

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

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Uma10
Highly Voted 2 years, 2 months ago
The answer is correct. The terraform refresh command reads the current settings from all managed remote objects and updates the Terraform state to match. Source: https://www.terraform.io/cli/commands/refresh
upvoted 6 times
...
090200f
Most Recent 4 months ago
it's a state file, so answer is B
upvoted 1 times
...
camps
1 year, 7 months ago
Selected Answer: B
B. Your state file. The terraform refresh command in Terraform is used to update the Terraform state file with the current real-world state of the infrastructure. When the terraform refresh command is run, Terraform reads the current state of the resources from the infrastructure provider, and then updates the state file with any changes that have occurred outside of Terraform.
upvoted 1 times
...
G4Exams
2 years ago
Selected Answer: B
refresh updates the state if there was a manuell change in the infrastructure, for example via aws consule.
upvoted 1 times
...
dani88ge
2 years, 1 month ago
Selected Answer: B
It's B.
upvoted 1 times
...
depal_dhir
2 years, 2 months ago
Selected Answer: B
https://www.terraform.io/cli/commands/refresh
upvoted 1 times
...
bora4motion
2 years, 2 months ago
Selected Answer: B
I go with B
upvoted 3 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 ...