ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 38 - NSE7_PBC-7.2 discussion

Report
Export

How does Terraform keep track of provisioned resources?

A.
It uses the terraform. tf state file
Answers
A.
It uses the terraform. tf state file
B.
Terraform does not keep the state of resources created
Answers
B.
Terraform does not keep the state of resources created
C.
It uses the terraform. tfvars file.
Answers
C.
It uses the terraform. tfvars file.
D.
It uses the database. tf file.
Answers
D.
It uses the database. tf file.
Suggested answer: A

Explanation:

Terraform manages and tracks the state of infrastructure resources through a file known as terraform.tfstate. This file is automatically created by Terraform and is updated after the application of a Terraform plan to capture the current state of the resources.

State File Purpose: The terraform.tfstate file contains a JSON object that records the IDs and properties of resources Terraform manages, so that it can map real-world resources to your configuration, keep track of metadata, and improve performance for large infrastructures.

State File Management: This file is crucial for Terraform to perform resource updates, deletions, and for creating dependencies. It's essentially the 'source of truth' for Terraform about your managed infrastructure and services.

asked 18/09/2024
Aaron Ford Jr
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first