Fortinet
FCSS_CDS_AR-7.6 · Question #5
Refer to the exhibit. What would be the impact of confirming to delete all the resources in Terraform?
The correct answer is C. It destroys all the resources in the state file. When you confirm a terraform destroy, Terraform deletes all resources that are tracked in its state file. The state file represents the managed infrastructure, so only those resources defined and tracked there will be destroyed.
Multi-Cloud Security Orchestration
Question
Refer to the exhibit. What would be the impact of confirming to delete all the resources in Terraform?
Exhibit
Options
- AIt destroys all the resources tied to the AWS Identity and Access Management (IAM) user.
- BIt destroys all the resources in the resource group.
- CIt destroys all the resources in the state file.
- DIt destroys all the resources in the .tfvars file.
How the community answered
(28 responses)- B4% (1)
- C93% (26)
- D4% (1)
Explanation
When you confirm a terraform destroy, Terraform deletes all resources that are tracked in its state file. The state file represents the managed infrastructure, so only those resources defined and tracked there will be destroyed.
Topics
#Terraform state file#terraform destroy#infrastructure as code#resource management
Community Discussion
No community discussion yet for this question.
