Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 121


Which of the following does terraform apply change after you approve the execution plan? (Choose two.)

Show Answer
Correct Answer: AD

When you run 'terraform apply' and approve the execution plan, Terraform makes changes to the cloud infrastructure as specified in the configuration files. These changes alter the actual state of the resources being managed. In addition, Terraform updates the state file to reflect the current state of the infrastructure after the changes have been applied. The state file maintains the mapping between the configuration files and the real-world resources. Therefore, the correct options are 'Cloud infrastructure' and 'State file'. The .terraform directory, execution plan, and Terraform code are not changed during this process.

Discussion

30 comments
Sign in to comment
faltu1985Option: A
Mar 26, 2023

A and D

camps
Sep 30, 2023

After you approve the execution plan, terraform apply will make changes to both the cloud infrastructure and the state file. Therefore, options A and D are correct. The .terraform directory is a local directory used by Terraform to store plugins and other files, and is not modified by terraform apply. The execution plan is generated by Terraform to show you the changes that will be made, and is not modified by terraform apply. The Terraform code is also not modified by terraform apply; it simply tells Terraform what changes to make to the infrastructure.

Selva247
May 8, 2024

A. Cloud infrastructure: Terraform applies the changes to your cloud infrastructure based on the configuration described in your Terraform code. D. State file: Terraform applies the changes and updates the state file to reflect the current state of the infrastructure.

BurakkoOption: A
Mar 2, 2023

It has to be AD

alifieOption: D
Apr 14, 2023

A and D

adoubanOption: D
Jun 12, 2023

A and D

f2e2419Option: D
Jul 22, 2024

A and D

bora4motionOption: D
Mar 2, 2023

I go with a and d but this site is useless and you can't even check two checkboxes, apart of the fact that most of the answers are wrong.

dinesh198728Option: A
Mar 10, 2023

A and D

legendary7
Mar 29, 2023

D. State file After apply, the state file is changed to match the created resources

rotimislawOption: D
Aug 24, 2023

A and D

awsexams
Jun 14, 2024

A and D

[Removed]Option: D
Jun 16, 2024

A and D

kprodOption: A
Mar 5, 2023

AD is the answer

amanpOption: A
Mar 5, 2023

Answer is A and D

donathonOption: A
Mar 6, 2023

It should be AD.

geekneek
Mar 7, 2023

A and D.

Pinky0289
Mar 13, 2023

A and D

G4Exams
May 1, 2023

It's A and D for sure

mpetbteam
Aug 17, 2023

I think the question is bad formulated, not all providers are cloud-based

wojtec
Nov 5, 2023

A and D

KJ_RollingsOption: D
Nov 18, 2023

A and D

Pikopo
Apr 2, 2024

A and D

kennynelconOption: A
Aug 4, 2023

Says choose two

SilentMilliOption: A
Sep 15, 2023

When you run terraform apply and approve the execution plan, Terraform will make changes to the cloud infrastructure based on the desired state defined in the Terraform code. Terraform will also update the state file to reflect the new state of the infrastructure after the changes have been made. Therefore, options A and D are correct.

Ravi528Option: A
Sep 28, 2023

Cloud infra will be updated/changed not the execution plan. It will update the content/values in state file based on latest changes happened as a part of apply. I will go with A

Ni33
Nov 9, 2023

A is the correct answer.

March2023Option: A
Dec 12, 2023

A and D for sure.

abhi6199
Dec 22, 2023

A and D are the correct options.

VSMuOption: A
Jan 20, 2024

A and D.