Which of the following is not a method to trigger a Terraform destroy?

Prepare for your Terraform Associate Exam with our engaging quiz. Test your knowledge with multiple choice questions and receive detailed explanations to enhance your understanding. Ace your exam with confidence!

The correct choice highlights that passing --destroy at the end of a plan request is not a recognized method to trigger a Terraform destroy operation. In Terraform, the standard way to explicitly destroy resources is by using the terraform destroy command, which is designed for that specific purpose.

When you invoke terraform destroy, Terraform understands that you intend to remove the resources defined in your configuration. Similarly, the Terraform UI allows users to manage resources, including destruction, through a graphical interface.

On the other hand, using terraform apply followed by -destroy is also not a valid invocation in Terraform. The command structure does not recognize this flag in conjunction with apply, which is focused on applying changes rather than destructive actions. Therefore, the correct understanding of how Terraform commands function clarifies that --destroy at the end of a plan request does not align with any operational method for initiating a destroy process within Terraform.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy