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

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

You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully.
What will happen if you terraform apply again immediately afterwards without changing any Terraform code?

  • A. Terraform will terminate and recreate the VM
  • B. Terraform will create another duplicate VM
  • C. Terraform will apply the VM to the state file
  • D. Nothing
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
Bere
Highly Voted 12 months ago
Selected Answer: D
If you run terraform apply again immediately afterwards without changing any Terraform code, Terraform will compare the desired state with the actual state of the infrastructure as recorded in the state file. Since there are no changes, then Terraform will report that there are no differences and won't do anything.
upvoted 5 times
...
Ni33
Most Recent 1 year, 6 months ago
Selected Answer: D
D-Nothing
upvoted 1 times
...
Power123
1 year, 7 months ago
Nothing. Answer is D
upvoted 2 times
...
InformationOverload
1 year, 10 months ago
Selected Answer: D
keyword: Idempotent
upvoted 3 times
...
adouban
1 year, 11 months ago
Selected Answer: D
Nothing
upvoted 1 times
...
legendary7
2 years, 1 month ago
D is the correct answer. Terraform would refresh and see that the current state and the desired state are the-same and hence would do nothing
upvoted 3 times
...
shopkitty
2 years, 2 months ago
Selected Answer: D
nothing change hence do nothing
upvoted 1 times
...
amanp
2 years, 2 months ago
Selected Answer: D
Nothing. If the desired state in state file is same as current state, no changes will happen
upvoted 4 times
...
Burakko
2 years, 2 months ago
Selected Answer: D
Nothing without changing the configuration file, the state file or desired state.
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 ...