nerdexam
HashiCorp

TA-002-P · Question #371

terraform destroy is the only way to remove infrastructure.

The correct answer is B. False. terraform destroy is a primary method, but not the exclusive way to remove infrastructure managed by Terraform.

Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)

Question

terraform destroy is the only way to remove infrastructure.

Options

  • ATrue
  • BFalse

How the community answered

(60 responses)
  • A
    10% (6)
  • B
    90% (54)

Why each option

terraform destroy is a primary method, but not the exclusive way to remove infrastructure managed by Terraform.

ATrue

This statement is false because there are other methods to remove infrastructure, such as manual deletion or removing resources from the configuration and applying changes.

BFalseCorrect

While terraform destroy is the standard command for tearing down all resources managed by a Terraform configuration, infrastructure can also be removed manually outside of Terraform, or by removing resource blocks from the configuration and running terraform apply.

Concept tested: Terraform infrastructure removal methods

Source: https://developer.hashicorp.com/terraform/cli/commands/destroy

Topics

#terraform destroy#infrastructure removal#resource lifecycle#terraform apply

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice