Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 114

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?

    Correct 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, Terraform will report that there are no differences and won't apply any changes. Therefore, nothing will happen.

Discussion
BereOption: 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.

amanpOption: D

Nothing. If the desired state in state file is same as current state, no changes will happen

InformationOverloadOption: D

keyword: Idempotent

BurakkoOption: D

Nothing without changing the configuration file, the state file or desired state.

Power123Option: D

Nothing. Answer is D

legendary7Option: D

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

Ni33Option: D

D-Nothing

adoubanOption: D

Nothing

shopkittyOption: D

nothing change hence do nothing