A Terraform apply cannot _______ infrastructure.

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

A Terraform apply cannot _______ infrastructure.

Explanation:
The thing being tested is how Terraform brings existing infrastructure under its management. Terraform apply takes the configuration and makes the real world match it by creating, updating, or deleting resources as needed. However, it does not bring existing resources into Terraform’s state on its own—that’s what the separate operation is for. To manage resources that already exist, you first use an import step to record those resources in Terraform’s state, linking them to the corresponding configuration. Once a resource is imported, apply can then manage it according to the config. So the best choice is that Terraform apply cannot perform the import action itself. It can create new resources, change existing ones to match the configuration, or destroy resources as dictated by the plan, but importing existing infrastructure is done via a separate import operation before applying.

The thing being tested is how Terraform brings existing infrastructure under its management. Terraform apply takes the configuration and makes the real world match it by creating, updating, or deleting resources as needed. However, it does not bring existing resources into Terraform’s state on its own—that’s what the separate operation is for. To manage resources that already exist, you first use an import step to record those resources in Terraform’s state, linking them to the corresponding configuration. Once a resource is imported, apply can then manage it according to the config.

So the best choice is that Terraform apply cannot perform the import action itself. It can create new resources, change existing ones to match the configuration, or destroy resources as dictated by the plan, but importing existing infrastructure is done via a separate import operation before applying.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy