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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Bere
Highly Voted 4 weeks, 1 day 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 7 months, 3 weeks ago
Selected Answer: D
D-Nothing
upvoted 1 times
...
Power123
9 months ago
Nothing. Answer is D
upvoted 2 times
...
InformationOverload
12 months ago
Selected Answer: D
keyword: Idempotent
upvoted 3 times
...
adouban
1 year ago
Selected Answer: D
Nothing
upvoted 1 times
...
legendary7
1 year, 3 months 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
1 year, 3 months ago
Selected Answer: D
nothing change hence do nothing
upvoted 1 times
...
amanp
1 year, 3 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
1 year, 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago