ExamGecko
Question list
Search
Search

Question 157 - Terraform Associate 003 discussion

Report
Export

Define the purpose of state in Terraform.

A.
State maps real world resources to your configuration and keeps track of metadata
Answers
A.
State maps real world resources to your configuration and keeps track of metadata
B.
State lets you enforce resource configurations that relate to compliance policies
Answers
B.
State lets you enforce resource configurations that relate to compliance policies
C.
State stores variables and lets you quickly reuse existing code
Answers
C.
State stores variables and lets you quickly reuse existing code
D.
State codifies the dependencies of related resources
Answers
D.
State codifies the dependencies of related resources
Suggested answer: A

Explanation:

The purpose of state in Terraform is to keep track of the real-world resources managed by Terraform, mapping them to the configuration. The state file contains metadata about these resources, such as resource IDs and other important attributes, which Terraform uses to plan and manage infrastructure changes. The state enables Terraform to know what resources are managed by which configurations and helps in maintaining the desired state of the infrastructure. Reference = This role of state in Terraform is outlined in Terraform's official documentation, emphasizing its function in mapping configuration to real-world resources and storing vital metadata .

asked 18/09/2024
Daniel Bucknor-Ankrah
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first