Question 165 of 519
Use Terraform outside the core workfloweasyMultiple ChoiceObjective-mapped

Quick Answer

The answer is to configure an S3 backend with DynamoDB locking and have both engineers use the remote state. This directly resolves state conflicts because a remote backend stores the state file centrally, eliminating the drift caused by each engineer applying changes against a local copy. DynamoDB locking ensures that only one engineer can run an operation at a time, preventing the race condition where Alice’s apply succeeds but Bob’s subsequently fails. On the HashiCorp Terraform Associate TF-003 exam, this scenario tests your understanding of state management best practices for teams, often appearing as a question about preventing state corruption. A common trap is thinking Git can serve as a state backend—it cannot, because Git lacks locking and can lead to stale or conflicting state files. Remember the memory tip: “S3 stores, Dynamo locks” to recall that remote state needs both a durable backend and a locking mechanism for safe team collaboration.

TF-003 Use Terraform outside the core workflow Practice Question

This TF-003 practice question tests your understanding of use terraform outside the core workflow. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A small startup uses Terraform to manage infrastructure on AWS. They store the state file directly in a Git repository (gitignored but accidentally committed) and have no remote backend. The team has two engineers: Alice and Bob. They both run Terraform from their local machines. Recently, they experienced state conflicts where Alice's apply would succeed but subsequently Bob's apply would fail due to state drift. They want a simple solution without adding too much complexity. What should they do?

Question 1easymultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Configure an S3 backend with DynamoDB locking and have both engineers use the remote state.

Option C is correct because using S3 as a remote backend with a consistent locking mechanism (like DynamoDB) is the standard way to prevent conflicts and maintain a single source of truth. Option A is wrong because manual state file management is error-prone. Option B is wrong because ignoring the state file doesn't solve conflict; they'd have no shared state. Option D is wrong because Terraform Cloud might be overkill for a small team, but could work. However, C is simpler and directly addresses the problem.

Key principle: NAT direction and interface roles matter as much as the IP address mapping. Inside/outside designation controls which traffic is translated.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Add the state file to .gitignore and stop versioning it.

    Why it's wrong here

    This would remove the single source of truth, causing more drift.

  • Configure an S3 backend with DynamoDB locking and have both engineers use the remote state.

    Why this is correct

    Remote backend with locking prevents conflicts.

    Related concept

    Static NAT maps one inside address to one outside address.

  • Continue with the current setup but ask Alice and Bob to coordinate via Slack before running apply.

    Why it's wrong here

    Coordination is unreliable and does not prevent race conditions.

  • Switch to Terraform Cloud with remote execution for automated locking.

    Why it's wrong here

    This is a valid but more complex solution for a small team; S3 backend is simpler.

Common exam traps

Common exam trap: NAT rules depend on direction and matching traffic

NAT is not only about the public address. The inside/outside interface roles and the ACL or rule that matches traffic are just as important.

Detailed technical explanation

How to think about this question

NAT questions usually test address translation, overload/PAT behaviour, static mappings and whether the right traffic is being translated. Read the interface direction and address terms carefully.

KKey Concepts to Remember

  • Static NAT maps one inside address to one outside address.
  • PAT allows many inside hosts to share one public address using ports.
  • Inside local and inside global describe the private and translated addresses.
  • NAT ACLs identify traffic for translation, not always security filtering.

TExam Day Tips

  • Identify inside and outside interfaces first.
  • Check whether the scenario needs static NAT, dynamic NAT or PAT.
  • Do not confuse NAT matching ACLs with normal packet-filtering intent.

Key takeaway

NAT direction and interface roles matter as much as the IP address mapping. Inside/outside designation controls which traffic is translated.

Real-world example

How this comes up in practice

A small business has 20 workstations on the 192.168.1.0/24 network and one public IP from its ISP. The router uses PAT (NAT overload) so all 20 devices share one public address using different source ports. NAT questions test whether you understand the four address terms and which direction each translation applies.

What to study next

Got this wrong? Here's your next step.

Review the four NAT address types (inside local, inside global, outside local, outside global), PAT port overload, and static vs dynamic NAT use cases. Then practise related TF-003 NAT questions on configuration and troubleshooting.

Related practice questions

Related TF-003 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free TF-003 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this TF-003 question test?

Use Terraform outside the core workflow — This question tests Use Terraform outside the core workflow — Static NAT maps one inside address to one outside address..

What is the correct answer to this question?

The correct answer is: Configure an S3 backend with DynamoDB locking and have both engineers use the remote state. — Option C is correct because using S3 as a remote backend with a consistent locking mechanism (like DynamoDB) is the standard way to prevent conflicts and maintain a single source of truth. Option A is wrong because manual state file management is error-prone. Option B is wrong because ignoring the state file doesn't solve conflict; they'd have no shared state. Option D is wrong because Terraform Cloud might be overkill for a small team, but could work. However, C is simpler and directly addresses the problem.

What should I do if I get this TF-003 question wrong?

Review the four NAT address types (inside local, inside global, outside local, outside global), PAT port overload, and static vs dynamic NAT use cases. Then practise related TF-003 NAT questions on configuration and troubleshooting.

What is the key concept behind this question?

Static NAT maps one inside address to one outside address.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on TF-003

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. Which THREE of the following are valid methods to manage Terraform state in a team environment? (Choose three.)

easy
  • A.Storing state in a version control system
  • B.Using a remote backend like S3 with DynamoDB locking
  • C.Using Terraform workspaces with a remote backend
  • D.Storing state locally and sharing via network drive
  • E.Using Terraform Cloud to manage state

Why B: Option B is correct because using a remote backend like Amazon S3 with DynamoDB locking provides a centralized, durable, and consistent state storage solution. DynamoDB implements a distributed lock mechanism using conditional writes to prevent concurrent state modifications, ensuring state integrity in team environments.

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This TF-003 practice question is part of Courseiva's free HashiCorp certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the TF-003 exam.