Terraform State Management Questions
Practice questions for Terraform State Management topic in HashiCorp Certified: Terraform Associate (004). 36 questions covering this domain.
Which statement about Terraform backends is correct?
A team wants to keep remote backend credentials out of version control and fill in some settings only during initialization. Which approach is support...
Which backend does Terraform use by default when no other backend or cloud integration is configured?
What is the purpose of state locking?
What do Terraform CLI workspaces provide in a single working directory?
Why is remote state storage usually better than local state for a team?
If no backend is configured, where does Terraform store state by default?
A practitioner wants Terraform to refresh recorded state to match real infrastructure and persist that update without making normal configuration chan...
What is state drift in Terraform?
Why does Terraform keep dependency metadata in state even after you remove a resource from configuration?
Why must each imported remote object map to only one Terraform resource instance?
What is the main reason Terraform stores cached attribute values in state?
Why is deleting an old moved block from a module potentially dangerous?
When multiple aliased provider configurations exist, what additional metadata can Terraform keep in state for a resource?
What does a removed block with lifecycle destroy = false do?
A resource previously had prevent_destroy = true, but its resource block is later removed from configuration. What is the important caveat?
A module author renames aws_instance.old to aws_instance.new and adds a moved block from the old address to the new address. What should happen on the...
A resource previously had no count argument, and the new version adds count = 3. Without an explicit moved block, where does Terraform automatically p...
Can a moved block convert a managed resource into a data source?
A module call is renamed from module.a to module.b and a moved block records the change. What happens on the next plan?
Sign in to see all 36 questions
Create a free account to browse all questions — completely free during our launch phase.