McAfee-Secured Website

Exam Bundle

Exam Code: Terraform Associate 004

Exam Name HashiCorp Certified: Terraform Associate (004)

Certification Provider: HashiCorp

Corresponding Certification: Terraform Associate

HashiCorp Terraform Associate 004 Bundle $19.99

100% HashiCorp Terraform Associate 004 Guaranteed Success With Testking Training Materials

Get Real Terraform Associate 004 Exam Questions & Expert Verified Answers as Experienced on the Real Exam!

  • Questions & Answers

    Terraform Associate 004 Questions & Answers

    167 Questions & Answers

    The ultimate exam preparation tool, Questions & Answers mirrors the actual Terraform Associate 004 exam while allowing you to hone and measure every aspect of your test-taking ability.

  • Study Guide

    Terraform Associate 004 Study Guide

    285 PDF Pages

    Developed by industry experts, this 285-page guide spells out in painstaking detail all of the information you need to ace Terraform Associate 004 exam.

HashiCorp Certified: Terraform Associate (004) (Terraform Associate 004) Practice Tests

Satisfaction Guaranteed

Money Back Guarantee

Testking provides hassle-free money back guarantee with our products. That is because we have 100% trust in the abilities of our professional and experience product team, and our record is a proof of that.

99.6% PASS RATE
Total Cost: $154.98
Bundle Price: $134.99

Purchase Individually

  • Questions & Answers

    Questions & Answers

    167 Questions

    $124.99
  • Study Guide

    Study Guide

    285 PDF Pages

    $29.99

HashiCorp Terraform Associate 004 Practice Test 57

Question 560

Brightside Cloud Works requires independent evidence before signing off this Terraform correction: An engineer assumes the version argument works for every local or generic Git module source just as it does for Registry modules. Which controlled check would validate the remediation?

  1. The application resources depend on the newly produced network output and plan with the correct VPC ID.
  2. terraform validate succeeds and both condition paths evaluate to the expected type.
  3. The module source resolves with the appropriate versioning syntax and init completes.
  4. The inspected state stays within approved secure storage and an external viewer cannot retrieve it.

Explanation

Correct Answer

C:

The module source resolves with the appropriate versioning syntax and init completes. This directly verifies the corrective action: Use version constraints for registry modules and use the source ref mechanism for generic Git module versioning. The measured result specifically addresses the failure at Brightside Cloud Works: An engineer assumes the version argument works for every local or generic Git module source just as it does for Registry modules.

Incorrect Answers

A:

The application resources depend on the newly produced network output and plan with the correct VPC ID. This evidence would validate a DIFFERENT correction: Consume the networking module's output from the app module input rather than hardcoding a remote ID. That different correction addresses: A root module needs a VPC ID created by a networking module but copies an ID from another workspace. It does not establish that the Brightside Cloud Works issue has been corrected: An engineer assumes the version argument works for every local or generic Git module source just as it does for Registry modules. The relevant measured outcome is: The module source resolves with the appropriate versioning syntax and init completes.

B:

terraform validate succeeds and both condition paths evaluate to the expected type. This evidence would validate a DIFFERENT correction: Make both branches return compatible types and keep the condition a Boolean expression. That different correction addresses: An operator uses a conditional expression with incompatible branch value types and receives a configuration type error. It does not establish that the Brightside Cloud Works issue has been corrected: An engineer assumes the version argument works for every local or generic Git module source just as it does for Registry modules. The relevant measured outcome is: The module source resolves with the appropriate versioning syntax and init completes.

D:

The inspected state stays within approved secure storage and an external viewer cannot retrieve it. This evidence would validate a DIFFERENT correction: Treat pulled state as potentially sensitive and restrict its storage, sharing, and retention. That different correction addresses: A reviewer runs terraform state pull and stores the resulting JSON in a public issue tracker. It does not establish that the Brightside Cloud Works issue has been corrected: An engineer assumes the version argument works for every local or generic Git module source just as it does for Registry modules. The relevant measured outcome is: The module source resolves with the appropriate versioning syntax and init completes.

Question 561

Beacon Engineering is preparing a controlled Terraform update after identifying this fault: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. Which engineering change most directly resolves this issue?

  1. Record each caller's module source and pinned version and plan deliberate upgrade waves.
  2. Use a provider for API interactions and use modules to group reusable Terraform configuration.
  3. Pass provider configurations from the caller and avoid nested provider configuration in reusable child modules where possible.
  4. Use a supported import block with the target resource address and existing object identifier, then review the resulting plan.

Explanation

Correct Answer

A:

Record each caller's module source and pinned version and plan deliberate upgrade waves. This is targeted to the observed Terraform issue: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. At Beacon Engineering, the acceptance criterion is not merely a valid plan; the team should verify: An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration.

Incorrect Answers

B:

Use a provider for API interactions and use modules to group reusable Terraform configuration. This would be suitable for a DIFFERENT Terraform problem: An operator confuses provider plugins with Terraform modules and looks for an installable module to supply API resource schemas. It does not directly resolve the Beacon Engineering failure: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. The required acceptance evidence instead is: An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration.

C:

Pass provider configurations from the caller and avoid nested provider configuration in reusable child modules where possible. This would be suitable for a DIFFERENT Terraform problem: An application module quietly configures an independent provider account, conflicting with the root's deployment credentials. It does not directly resolve the Beacon Engineering failure: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. The required acceptance evidence instead is: An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration.

D:

Use a supported import block with the target resource address and existing object identifier, then review the resulting plan. This would be suitable for a DIFFERENT Terraform problem: A Terraform 1.12 project needs a reviewed, repeatable record of existing resource adoption instead of a one-off unlogged CLI import. It does not directly resolve the Beacon Engineering failure: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. The required acceptance evidence instead is: An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration.

Question 562

Beacon Engineering requires independent evidence before signing off this Terraform correction: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. What acceptance evidence is most relevant to this reported issue?

  1. The module's resources resolve the caller-approved account and no unexpected credentials are used.
  2. An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration.
  3. The import plan links the existing object to its declared address and records the adoption in versioned configuration.
  4. Initialization downloads the plugin while module references expand into configuration that consumes its resource types.

Explanation

Correct Answer

B:

An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration. This directly verifies the corrective action: Record each caller's module source and pinned version and plan deliberate upgrade waves. The measured result specifically addresses the failure at Beacon Engineering: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions.

Incorrect Answers

A:

The module's resources resolve the caller-approved account and no unexpected credentials are used. This evidence would validate a DIFFERENT correction: Pass provider configurations from the caller and avoid nested provider configuration in reusable child modules where possible. That different correction addresses: An application module quietly configures an independent provider account, conflicting with the root's deployment credentials. It does not establish that the Beacon Engineering issue has been corrected: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. The relevant measured outcome is: An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration.

C:

The import plan links the existing object to its declared address and records the adoption in versioned configuration. This evidence would validate a DIFFERENT correction: Use a supported import block with the target resource address and existing object identifier, then review the resulting plan. That different correction addresses: A Terraform 1.12 project needs a reviewed, repeatable record of existing resource adoption instead of a one-off unlogged CLI import. It does not establish that the Beacon Engineering issue has been corrected: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. The relevant measured outcome is: An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration.

D:

Initialization downloads the plugin while module references expand into configuration that consumes its resource types. This evidence would validate a DIFFERENT correction: Use a provider for API interactions and use modules to group reusable Terraform configuration. That different correction addresses: An operator confuses provider plugins with Terraform modules and looks for an installable module to supply API resource schemas. It does not establish that the Beacon Engineering issue has been corrected: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. The relevant measured outcome is: An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration.

Question 563

A Terraform maintainer supporting Arbor Cloud Systems investigates this scenario: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. How should the Terraform engineer correct this specific failure?

  1. Use provider-specific resource schemas behind reusable high-level modules rather than treating vendor resource types as identical.
  2. Use appropriate workspace run triggers or explicit orchestration to model legitimate cross-workspace dependencies.
  3. Record each caller's module source and pinned version and plan deliberate upgrade waves.
  4. Build a reusable child module for the shared networking pattern and invoke it with documented application inputs.

Explanation

Correct Answer

C:

Record each caller's module source and pinned version and plan deliberate upgrade waves. This is targeted to the observed Terraform issue: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. At Arbor Cloud Systems, the acceptance criterion is not merely a valid plan; the team should verify: An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration.

Incorrect Answers

A:

Use provider-specific resource schemas behind reusable high-level modules rather than treating vendor resource types as identical. This would be suitable for a DIFFERENT Terraform problem: A new cloud account is added to a multi-cloud repository by copying AWS resource names into Azure provider blocks. It does not directly resolve the Arbor Cloud Systems failure: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. The required acceptance evidence instead is: An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration.

B:

Use appropriate workspace run triggers or explicit orchestration to model legitimate cross-workspace dependencies. This would be suitable for a DIFFERENT Terraform problem: A group organizes HCP Terraform workspaces by application but manually starts dependent runs in the wrong order. It does not directly resolve the Arbor Cloud Systems failure: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. The required acceptance evidence instead is: An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration.

D:

Build a reusable child module for the shared networking pattern and invoke it with documented application inputs. This would be suitable for a DIFFERENT Terraform problem: A service team duplicates a networking subnet and routing configuration across five applications. It does not directly resolve the Arbor Cloud Systems failure: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. The required acceptance evidence instead is: An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration.

Question 564

A controlled test for Arbor Cloud Systems focuses on the original failure: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. Which verification outcome is the strongest evidence of the required correction?

  1. Both provider configurations validate and produce appropriate resource types for their respective platforms.
  2. A successful upstream run invokes the configured downstream run without manual ordering errors.
  3. The applications use the same reviewed module interface while each plan creates its own correctly parameterized resources.
  4. An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration.

Explanation

Correct Answer

D:

An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration. This directly verifies the corrective action: Record each caller's module source and pinned version and plan deliberate upgrade waves. The measured result specifically addresses the failure at Arbor Cloud Systems: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions.

Incorrect Answers

A:

Both provider configurations validate and produce appropriate resource types for their respective platforms. This evidence would validate a DIFFERENT correction: Use provider-specific resource schemas behind reusable high-level modules rather than treating vendor resource types as identical. That different correction addresses: A new cloud account is added to a multi-cloud repository by copying AWS resource names into Azure provider blocks. It does not establish that the Arbor Cloud Systems issue has been corrected: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. The relevant measured outcome is: An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration.

B:

A successful upstream run invokes the configured downstream run without manual ordering errors. This evidence would validate a DIFFERENT correction: Use appropriate workspace run triggers or explicit orchestration to model legitimate cross-workspace dependencies. That different correction addresses: A group organizes HCP Terraform workspaces by application but manually starts dependent runs in the wrong order. It does not establish that the Arbor Cloud Systems issue has been corrected: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. The relevant measured outcome is: An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration.

C:

The applications use the same reviewed module interface while each plan creates its own correctly parameterized resources. This evidence would validate a DIFFERENT correction: Build a reusable child module for the shared networking pattern and invoke it with documented application inputs. That different correction addresses: A service team duplicates a networking subnet and routing configuration across five applications. It does not establish that the Arbor Cloud Systems issue has been corrected: An organization updates a shared module but deployers cannot identify which consuming environments still use older versions. The relevant measured outcome is: An inventory identifies installed versions and an upgraded workspace confirms the new module version in its configuration.

Question 565

A Terraform maintainer supporting Oakridge DevOps investigates this scenario: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. Which proposed fix addresses the reported root cause?

  1. Run terraform plan and examine create/update/delete or replace actions, not just the source diff.
  2. Identify the default local backend behavior and explicitly configure a suitable shared backend when collaboration is required.
  3. Treat the identifier as a diagnostic for the specific lock and use authorized administrative recovery procedures only when needed.
  4. Create dedicated primary and recovery aliases and map each child module to its expected configuration.

Explanation

Correct Answer

B:

Identify the default local backend behavior and explicitly configure a suitable shared backend when collaboration is required. This is targeted to the observed Terraform issue: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. At Oakridge DevOps, the acceptance criterion is not merely a valid plan; the team should verify: The default local run produces a local state file while the configured shared run reads the expected remote state instead.

Incorrect Answers

A:

Run terraform plan and examine create/update/delete or replace actions, not just the source diff. This would be suitable for a DIFFERENT Terraform problem: A proposed firewall change contains an unintended replacement, but the team reviews only changed HCL lines. It does not directly resolve the Oakridge DevOps failure: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. The required acceptance evidence instead is: The default local run produces a local state file while the configured shared run reads the expected remote state instead.

C:

Treat the identifier as a diagnostic for the specific lock and use authorized administrative recovery procedures only when needed. This would be suitable for a DIFFERENT Terraform problem: An operator treats the lock identifier printed by Terraform as a reusable password and sends it to every teammate. It does not directly resolve the Oakridge DevOps failure: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. The required acceptance evidence instead is: The default local run produces a local state file while the configured shared run reads the expected remote state instead.

D:

Create dedicated primary and recovery aliases and map each child module to its expected configuration. This would be suitable for a DIFFERENT Terraform problem: A root configuration uses the same provider family for primary and recovery sites, but both modules inherit the default provider by accident. It does not directly resolve the Oakridge DevOps failure: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. The required acceptance evidence instead is: The default local run produces a local state file while the configured shared run reads the expected remote state instead.

Question 566

A controlled test for Oakridge DevOps focuses on the original failure: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. What result would demonstrate that the identified problem is actually resolved?

  1. Plans for the primary and recovery modules target different documented regions or accounts.
  2. Lock recovery references the correct stale lock and an unrelated active lock remains protected.
  3. The default local run produces a local state file while the configured shared run reads the expected remote state instead.
  4. The plan highlights the specific replacement and allows reviewers to block it.

Explanation

Correct Answer

C:

The default local run produces a local state file while the configured shared run reads the expected remote state instead. This directly verifies the corrective action: Identify the default local backend behavior and explicitly configure a suitable shared backend when collaboration is required. The measured result specifically addresses the failure at Oakridge DevOps: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared.

Incorrect Answers

A:

Plans for the primary and recovery modules target different documented regions or accounts. This evidence would validate a DIFFERENT correction: Create dedicated primary and recovery aliases and map each child module to its expected configuration. That different correction addresses: A root configuration uses the same provider family for primary and recovery sites, but both modules inherit the default provider by accident. It does not establish that the Oakridge DevOps issue has been corrected: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. The relevant measured outcome is: The default local run produces a local state file while the configured shared run reads the expected remote state instead.

B:

Lock recovery references the correct stale lock and an unrelated active lock remains protected. This evidence would validate a DIFFERENT correction: Treat the identifier as a diagnostic for the specific lock and use authorized administrative recovery procedures only when needed. That different correction addresses: An operator treats the lock identifier printed by Terraform as a reusable password and sends it to every teammate. It does not establish that the Oakridge DevOps issue has been corrected: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. The relevant measured outcome is: The default local run produces a local state file while the configured shared run reads the expected remote state instead.

D:

The plan highlights the specific replacement and allows reviewers to block it. This evidence would validate a DIFFERENT correction: Run terraform plan and examine create/update/delete or replace actions, not just the source diff. That different correction addresses: A proposed firewall change contains an unintended replacement, but the team reviews only changed HCL lines. It does not establish that the Oakridge DevOps issue has been corrected: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. The relevant measured outcome is: The default local run produces a local state file while the configured shared run reads the expected remote state instead.

Question 567

A proposed infrastructure change for Brookhaven Cloud Team must address the following observed failure: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. Which engineering change most directly resolves this issue?

  1. Confirm that no active writer remains before using the backend's supported lock recovery procedure.
  2. Review destroy implications and lifecycle/retention controls before decommissioning managed data services.
  3. Describe the intended network and related resources as Terraform configuration managed through a reviewed version-control workflow.
  4. Identify the default local backend behavior and explicitly configure a suitable shared backend when collaboration is required.

Explanation

Correct Answer

D:

Identify the default local backend behavior and explicitly configure a suitable shared backend when collaboration is required. This is targeted to the observed Terraform issue: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. At Brookhaven Cloud Team, the acceptance criterion is not merely a valid plan; the team should verify: The default local run produces a local state file while the configured shared run reads the expected remote state instead.

Incorrect Answers

A:

Confirm that no active writer remains before using the backend's supported lock recovery procedure. This would be suitable for a DIFFERENT Terraform problem: A failed run leaves an apparently stale lock, but engineers cannot tell whether another apply is still active. It does not directly resolve the Brookhaven Cloud Team failure: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. The required acceptance evidence instead is: The default local run produces a local state file while the configured shared run reads the expected remote state instead.

B:

Review destroy implications and lifecycle/retention controls before decommissioning managed data services. This would be suitable for a DIFFERENT Terraform problem: A training exercise uses destroy to clear a resource but ignores a required retention policy for its database. It does not directly resolve the Brookhaven Cloud Team failure: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. The required acceptance evidence instead is: The default local run produces a local state file while the configured shared run reads the expected remote state instead.

C:

Describe the intended network and related resources as Terraform configuration managed through a reviewed version-control workflow. This would be suitable for a DIFFERENT Terraform problem: A small platform team provisions virtual networks through undocumented web-console clicks, so nobody can explain what the next environment should contain. It does not directly resolve the Brookhaven Cloud Team failure: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. The required acceptance evidence instead is: The default local run produces a local state file while the configured shared run reads the expected remote state instead.

Question 568

The Terraform change owner at Brookhaven Cloud Team seeks a verifiable outcome for: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. What acceptance evidence is most relevant to this reported issue?

  1. The default local run produces a local state file while the configured shared run reads the expected remote state instead.
  2. The review identifies the protected database and prevents unauthorized data destruction.
  3. A clean environment is planned from the checked-in configuration and produces the expected inventory without reconstructing console click history.
  4. The lock is cleared only after verifying the prior process is gone and a subsequent plan obtains exclusive access.

Explanation

Correct Answer

A:

The default local run produces a local state file while the configured shared run reads the expected remote state instead. This directly verifies the corrective action: Identify the default local backend behavior and explicitly configure a suitable shared backend when collaboration is required. The measured result specifically addresses the failure at Brookhaven Cloud Team: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared.

Incorrect Answers

B:

The review identifies the protected database and prevents unauthorized data destruction. This evidence would validate a DIFFERENT correction: Review destroy implications and lifecycle/retention controls before decommissioning managed data services. That different correction addresses: A training exercise uses destroy to clear a resource but ignores a required retention policy for its database. It does not establish that the Brookhaven Cloud Team issue has been corrected: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. The relevant measured outcome is: The default local run produces a local state file while the configured shared run reads the expected remote state instead.

C:

A clean environment is planned from the checked-in configuration and produces the expected inventory without reconstructing console click history. This evidence would validate a DIFFERENT correction: Describe the intended network and related resources as Terraform configuration managed through a reviewed version-control workflow. That different correction addresses: A small platform team provisions virtual networks through undocumented web-console clicks, so nobody can explain what the next environment should contain. It does not establish that the Brookhaven Cloud Team issue has been corrected: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. The relevant measured outcome is: The default local run produces a local state file while the configured shared run reads the expected remote state instead.

D:

The lock is cleared only after verifying the prior process is gone and a subsequent plan obtains exclusive access. This evidence would validate a DIFFERENT correction: Confirm that no active writer remains before using the backend's supported lock recovery procedure. That different correction addresses: A failed run leaves an apparently stale lock, but engineers cannot tell whether another apply is still active. It does not establish that the Brookhaven Cloud Team issue has been corrected: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. The relevant measured outcome is: The default local run produces a local state file while the configured shared run reads the expected remote state instead.

Question 569

A proposed infrastructure change for Eastbridge Operations must address the following observed failure: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. Which action would best restore the intended infrastructure-as-code workflow?

  1. Review destroy implications and lifecycle/retention controls before decommissioning managed data services.
  2. Use the documented lock-timeout behavior or release scheduling instead of disabling locking.
  3. Preserve or migrate the local state file with the configuration rather than leaving resource mappings behind.
  4. Set a supported Terraform version in workspace settings and validate the configuration on a controlled speculative run.

Explanation

Correct Answer

C:

Preserve or migrate the local state file with the configuration rather than leaving resource mappings behind. This is targeted to the observed Terraform issue: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. At Eastbridge Operations, the acceptance criterion is not merely a valid plan; the team should verify: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

Incorrect Answers

A:

Review destroy implications and lifecycle/retention controls before decommissioning managed data services. This would be suitable for a DIFFERENT Terraform problem: A training exercise uses destroy to clear a resource but ignores a required retention policy for its database. It does not directly resolve the Eastbridge Operations failure: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. The required acceptance evidence instead is: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

B:

Use the documented lock-timeout behavior or release scheduling instead of disabling locking. This would be suitable for a DIFFERENT Terraform problem: A long plan times out waiting for the state lock while another maintenance run legitimately holds it. It does not directly resolve the Eastbridge Operations failure: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. The required acceptance evidence instead is: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

D:

Set a supported Terraform version in workspace settings and validate the configuration on a controlled speculative run. This would be suitable for a DIFFERENT Terraform problem: A platform upgrades the Terraform CLI version for its HCP Terraform workspace without validating version compatibility or plan behavior. It does not directly resolve the Eastbridge Operations failure: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. The required acceptance evidence instead is: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

Question 570

The Terraform change owner at Eastbridge Operations seeks a verifiable outcome for: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. Which observation best confirms that the proposed correction worked?

  1. The run uses the documented version and passes its provider/module compatibility checks.
  2. The review identifies the protected database and prevents unauthorized data destruction.
  3. The second job waits or exits according to policy and never corrupts the first job's state write.
  4. The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

Explanation

Correct Answer

D:

The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure. This directly verifies the corrective action: Preserve or migrate the local state file with the configuration rather than leaving resource mappings behind. The measured result specifically addresses the failure at Eastbridge Operations: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files.

Incorrect Answers

A:

The run uses the documented version and passes its provider/module compatibility checks. This evidence would validate a DIFFERENT correction: Set a supported Terraform version in workspace settings and validate the configuration on a controlled speculative run. That different correction addresses: A platform upgrades the Terraform CLI version for its HCP Terraform workspace without validating version compatibility or plan behavior. It does not establish that the Eastbridge Operations issue has been corrected: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. The relevant measured outcome is: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

B:

The review identifies the protected database and prevents unauthorized data destruction. This evidence would validate a DIFFERENT correction: Review destroy implications and lifecycle/retention controls before decommissioning managed data services. That different correction addresses: A training exercise uses destroy to clear a resource but ignores a required retention policy for its database. It does not establish that the Eastbridge Operations issue has been corrected: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. The relevant measured outcome is: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

C:

The second job waits or exits according to policy and never corrupts the first job's state write. This evidence would validate a DIFFERENT correction: Use the documented lock-timeout behavior or release scheduling instead of disabling locking. That different correction addresses: A long plan times out waiting for the state lock while another maintenance run legitimately holds it. It does not establish that the Eastbridge Operations issue has been corrected: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. The relevant measured outcome is: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.