What happens when a terraform plan is executed?

Posted by: Pdfprep Category: VA-002-P Tags: , ,

What happens when a terraform plan is executed?
A . the backend is initialized and the working directory is prepped
B . creates an execution plan and determines what changes are required to achieve the desired state in the configuration files.
C . applies the changes required in the target infrastructure in order to reach the desired configuration
D . reconciles the state Terraform knows about with the real-world infrastructure

Answer: B

Explanation:

The terraform plan command is used to create an execution plan. Terraform performs a refresh, unless explicitly disabled, and then determines what actions are necessary to

achieve the desired state specified in the configuration files.

After a plan has been run, it can be executed by running a terraform apply

Leave a Reply

Your email address will not be published.