Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
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.
A and D
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.
A and D
A and D
A and D
A and D
A and D
A and D
A and D
A and D.
A and D are the correct options.
A and D for sure.
A is the correct answer.
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.
I think the question is bad formulated, not all providers are cloud-based