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

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

When do you need to explicitly execute terraform refresh?

  • A. Before every terraform plan
  • B. Before every terraform apply
  • C. Before every terraform import
  • D. None of the above
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
Uma10
Highly Voted 2 years, 2 months ago
The answer is correct. Wherever possible, avoid using terraform refresh explicitly and instead rely on Terraform's behavior of automatically refreshing existing objects as part of creating a normal plan. Source: https://www.terraform.io/cli/commands/refresh
upvoted 13 times
keiffo2
2 years, 2 months ago
so the answer is D
upvoted 2 times
...
...
Darshan07
Most Recent 9 months ago
Selected Answer: D
D is correct
upvoted 1 times
...
hajurbau
1 year, 2 months ago
Selected Answer: D
D is correct
upvoted 1 times
...
RVivek
2 years, 1 month ago
Selected Answer: D
As per Terraform documentation refresh command is not recommended, it is there only for backward compatibility
upvoted 2 times
...
Pinky0289
2 years, 2 months ago
D. None of the above. Refresh is used to check backward compatibility to read the infrastructure objects, and update the state file. Terraform performs refresh by itself during every plan and apply commands. So, it is recommended that we not perform refresh often.
upvoted 3 times
...
depal_dhir
2 years, 2 months ago
Selected Answer: D
https://www.terraform.io/cli/commands/refresh
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 ...