nerdexam
Fortinet

NSE7_PBC-7.2 · Question #83

Refer to the exhibit. What would be the impact of confirming to delete all the resources in Terraform?

The correct answer is D. It destroys all the resources in the state file. Confirming to delete all the resources in Terraform will have the following impact: D. It destroys all the resources in the state file. Terraform State File Role: The terraform.tfstate file contains a real-time mapping of the resources that Terraform manages, including their…

FortiGate-VM in Public Cloud

Question

Refer to the exhibit. What would be the impact of confirming to delete all the resources in Terraform?

Exhibit

NSE7_PBC-7.2 question #83 exhibit

Options

  • AIt destroys all the resources in the . tfvars file
  • BIt destroys all the resources tied to the AWS Identity and Access Management (1AM) user.
  • CIt destroys all the resources in the resource group
  • DIt destroys all the resources in the state file.

How the community answered

(65 responses)
  • A
    3% (2)
  • B
    5% (3)
  • C
    12% (8)
  • D
    80% (52)

Explanation

Confirming to delete all the resources in Terraform will have the following impact: D. It destroys all the resources in the state file. Terraform State File Role: The terraform.tfstate file contains a real-time mapping of the resources that Terraform manages, including their current configuration and relationships. This file tracks the actual state of resources provisioned by Terraform. Impact of Destruction: When Terraform prompts for confirmation to destroy resources, and 'yes' is entered, Terraform reads the state file and systematically removes all the resources that are managed as part of that state. This is not limited to a specific .tfvars file, IAM user, or resource group--it is a global action that affects all resources tracked by the state file associated with the current Terraform workspace and configuration.

Topics

#Terraform#state file#terraform destroy#resource management

Community Discussion

No community discussion yet for this question.

Full NSE7_PBC-7.2 Practice