Be able to configure and migrate remote backends, run state inspection and manipulation commands, import existing resources, and recover from version or lock errors. The most important thing is knowing that state is Terraform's source of truth and must be changed through Terraform commands, not manual edits.
Start practicing
Implement and maintain state — choose a session length
Free · No account required
Domain overview
This domain covers how Terraform records and reconciles infrastructure state: remote backends, state locking, partial backend configuration, inspecting and editing state, importing existing resources, and handling version or drift errors. Questions present short operational scenarios and ask which command, backend setting, or recovery step is correct.
Exam objectives
Configuring remote backends such as S3 with DynamoDB locking and partial backend configuration via terraform init
Using terraform state list, show, mv, rm, and pull to inspect or modify tracked resources
Importing existing infrastructure with terraform import and matching resource addresses in configuration
Resolving state errors including version mismatches, locking conflicts, and drift between state and reality
Assuming terraform import also writes the resource configuration; it only adds the object to state, so the matching resource block must already exist.
Forgetting that changing backend settings requires terraform init with -migrate-state or -reconfigure, not just an apply.
Editing state files by hand or ignoring lock errors, which risks corruption or concurrent writes instead of using state commands and lock release.
Practice questions for the Implement and maintain state domain are being added. Check back soon.
← Back to all TF-004 domainsBe able to configure and migrate remote backends, run state inspection and manipulation commands, import existing resources, and recover from version or lock errors. The most important thing is knowing that state is Terraform's source of truth and must be changed through Terraform commands, not manual edits.
The Courseiva TF-004 question bank contains 0 questions in the Implement and maintain state domain, covering the 12% of the exam attributed to this domain in the official HashiCorp blueprint. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the Implement and maintain state domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included