Which operation is not performed by terraform apply?

Prepare for the HashiCorp Terraform Associate Exam. Utilize flashcards and multiple-choice questions with detailed hints and explanations. Boost your confidence and be ready for success!

Multiple Choice

Which operation is not performed by terraform apply?

Explanation:
Terraform apply works by taking the planned changes and making the cluster match your configuration. It creates new resources, updates existing ones, and destroys those that are no longer in the desired state. It also runs any provisioners you’ve defined on the resources during the apply process. Import, however, is a separate command used to bring an existing real-world resource into Terraform’s state so it can be managed going forward. Since importing is not part of the apply workflow, it isn’t performed by terraform apply. The other options align with apply’s responsibilities: applying changes, destroying resources when they’re removed from config, and provisioning via provisioners.

Terraform apply works by taking the planned changes and making the cluster match your configuration. It creates new resources, updates existing ones, and destroys those that are no longer in the desired state. It also runs any provisioners you’ve defined on the resources during the apply process. Import, however, is a separate command used to bring an existing real-world resource into Terraform’s state so it can be managed going forward. Since importing is not part of the apply workflow, it isn’t performed by terraform apply. The other options align with apply’s responsibilities: applying changes, destroying resources when they’re removed from config, and provisioning via provisioners.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy