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.
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.
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
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.
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.
faltu1985
Highly Voted 2 years, 1 month agocamps
Highly Voted 1 year, 7 months agof2e2419
Most Recent 10 months ago[Removed]
11 months, 1 week agoawsexams
11 months, 2 weeks agoSelva247
1 year agoPikopo
1 year, 1 month agoVSMu
1 year, 4 months agoabhi6199
1 year, 5 months agoMarch2023
1 year, 5 months agoKJ_Rollings
1 year, 6 months agoNi33
1 year, 6 months agowojtec
1 year, 6 months agoRavi528
1 year, 8 months agoSilentMilli
1 year, 8 months agorotimislaw
1 year, 9 months agompetbteam
1 year, 9 months ago