TA-002-P · Question #304
True or False? By default, Terraform destroy will prompt for confirmation before proceeding.
The correct answer is B. True. By default, Terraform's destroy command requires explicit confirmation before it proceeds to deprovision infrastructure.
Question
True or False? By default, Terraform destroy will prompt for confirmation before proceeding.
Options
- AFalse
- BTrue
How the community answered
(26 responses)- A12% (3)
- B88% (23)
Why each option
By default, Terraform's `destroy` command requires explicit confirmation before it proceeds to deprovision infrastructure.
`terraform destroy` explicitly prompts for confirmation by default to prevent accidental resource deletion.
The `terraform destroy` command is a destructive operation that removes all resources managed by the current Terraform configuration. To prevent accidental data loss, Terraform includes a default safety mechanism that prompts the user for confirmation before executing the destruction plan.
Concept tested: Terraform destroy confirmation prompt
Source: https://developer.hashicorp.com/terraform/cli/commands/destroy
Topics
Community Discussion
No community discussion yet for this question.