ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 42 - NSE7_PBC-7.2 discussion

Report
Export

Refer to the exhibit.

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

A.
It destroys all the resources in the . tfvars file
Answers
A.
It destroys all the resources in the . tfvars file
B.
It destroys all the resources tied to the AWS Identity and Access Management (1AM) user.
Answers
B.
It destroys all the resources tied to the AWS Identity and Access Management (1AM) user.
C.
It destroys all the resources in the resource group
Answers
C.
It destroys all the resources in the resource group
D.
It destroys all the resources in the state file.
Answers
D.
It destroys all the resources in the state file.
Suggested answer: D

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.

asked 18/09/2024
Ackim Sanuka
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first