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

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

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

  • A. terraform apply
  • B. terraform destroy
  • C. terraform plan
  • D. terraform state list
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
Blitz123
10 months ago
again a poorly framed question "Terraform to refresh its state" the obvious answer is "D" but "terraform plan" command does not refresh it's states. it reads state file and it compares the configuration against the current state stored in the Terraform state file. It identifies the differences between what is declared in the configuration and what currently exists in the infrastructure. but it in any shape of form it does not refresh the state these kind of questions confuses people. terraform plan is a read-only command if we see from state file point of view, but there are certain aspects, such as we not be running terraform plan when there is a state lock.
upvoted 2 times
...
Spandrop
11 months, 2 weeks ago
why terraform plan would refresh the state file?
upvoted 2 times
Spandrop
11 months, 2 weeks ago
got it, it is not about the state file. This kind of question is not about technical skill, but reading skill instead.
upvoted 4 times
...
...
vindi135
12 months ago
Selected Answer: D
...or C are both not updating the state.
upvoted 1 times
...
Pete987
1 year, 3 months ago
sorry, my bad - didn't read the question well. Answer is D
upvoted 1 times
...
Pete987
1 year, 3 months ago
A: terraform apply
upvoted 1 times
...
Oleg_gol
1 year, 6 months ago
Selected Answer: D
D. terraform state list
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 ...