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 64

Question 630

The reliability team at Clearwater Systems is closing an incident described as follows: Developers assume storing state remotely automatically makes every team member authorized to read and modify it. Which observation best confirms that the proposed correction worked?

  1. The plan clearly shows replacement of the intended resource address while other resources remain unchanged.
  2. A call omitting the optional input plans successfully with the declared default.
  3. Authorized runners can manage state while an unauthorized identity fails a read or write access test.
  4. A local CLI command starts the associated workspace run under the documented execution mode.

Explanation

Correct Answer

C:

Authorized runners can manage state while an unauthorized identity fails a read or write access test. This directly verifies the corrective action: Apply separate backend IAM, encryption, audit and least-privilege controls appropriate to the storage service. The measured result specifically addresses the failure at Clearwater Systems: Developers assume storing state remotely automatically makes every team member authorized to read and modify it.

Incorrect Answers

A:

The plan clearly shows replacement of the intended resource address while other resources remain unchanged. This evidence would validate a DIFFERENT correction: Use an appropriate documented replacement action such as terraform apply -replace with review. That different correction addresses: An application needs an isolated replacement of a damaged object, but the operator tries to edit its serialized state to mark it broken. It does not establish that the Clearwater Systems issue has been corrected: Developers assume storing state remotely automatically makes every team member authorized to read and modify it. The relevant measured outcome is: Authorized runners can manage state while an unauthorized identity fails a read or write access test.

B:

A call omitting the optional input plans successfully with the declared default. This evidence would validate a DIFFERENT correction: Use the default for ordinary cases and override the input only for documented exceptional environments. That different correction addresses: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. It does not establish that the Clearwater Systems issue has been corrected: Developers assume storing state remotely automatically makes every team member authorized to read and modify it. The relevant measured outcome is: Authorized runners can manage state while an unauthorized identity fails a read or write access test.

D:

A local CLI command starts the associated workspace run under the documented execution mode. This evidence would validate a DIFFERENT correction: Choose and configure a supported CLI-driven HCP Terraform workspace integration and required credentials. That different correction addresses: An engineer believes HCP Terraform requires every workflow to be VCS driven and cannot be used by an approved CLI-driven team. It does not establish that the Clearwater Systems issue has been corrected: Developers assume storing state remotely automatically makes every team member authorized to read and modify it. The relevant measured outcome is: Authorized runners can manage state while an unauthorized identity fails a read or write access test.

Question 631

Valleyline Technology is preparing a controlled Terraform update after identifying this fault: Developers assume storing state remotely automatically makes every team member authorized to read and modify it. Which proposed fix addresses the reported root cause?

  1. Investigate the active lock holder and underlying backend health instead of bypassing normal locking.
  2. Declare each required provider with its own source and configuration, then bind resources to matching providers.
  3. Set a supported Terraform version in workspace settings and validate the configuration on a controlled speculative run.
  4. Apply separate backend IAM, encryption, audit and least-privilege controls appropriate to the storage service.

Explanation

Correct Answer

D:

Apply separate backend IAM, encryption, audit and least-privilege controls appropriate to the storage service. This is targeted to the observed Terraform issue: Developers assume storing state remotely automatically makes every team member authorized to read and modify it. At Valleyline Technology, the acceptance criterion is not merely a valid plan; the team should verify: Authorized runners can manage state while an unauthorized identity fails a read or write access test.

Incorrect Answers

A:

Investigate the active lock holder and underlying backend health instead of bypassing normal locking. This would be suitable for a DIFFERENT Terraform problem: A Terraform job fails to acquire a state lock and its operator reaches immediately for -lock=false to continue in production. It does not directly resolve the Valleyline Technology failure: Developers assume storing state remotely automatically makes every team member authorized to read and modify it. The required acceptance evidence instead is: Authorized runners can manage state while an unauthorized identity fails a read or write access test.

B:

Declare each required provider with its own source and configuration, then bind resources to matching providers. This would be suitable for a DIFFERENT Terraform problem: A team requires different providers for cloud infrastructure and DNS but misuses a single provider alias across unrelated namespaces. It does not directly resolve the Valleyline Technology failure: Developers assume storing state remotely automatically makes every team member authorized to read and modify it. The required acceptance evidence instead is: Authorized runners can manage state while an unauthorized identity fails a read or write access test.

C:

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 Valleyline Technology failure: Developers assume storing state remotely automatically makes every team member authorized to read and modify it. The required acceptance evidence instead is: Authorized runners can manage state while an unauthorized identity fails a read or write access test.

Question 632

Valleyline Technology requires independent evidence before signing off this Terraform correction: Developers assume storing state remotely automatically makes every team member authorized to read and modify it. What result would demonstrate that the identified problem is actually resolved?

  1. Authorized runners can manage state while an unauthorized identity fails a read or write access test.
  2. The next authorized run acquires the lock without a competing state modification.
  3. The run uses the documented version and passes its provider/module compatibility checks.
  4. The dependency graph references the intended cloud and DNS providers and no provider type mismatch appears.

Explanation

Correct Answer

A:

Authorized runners can manage state while an unauthorized identity fails a read or write access test. This directly verifies the corrective action: Apply separate backend IAM, encryption, audit and least-privilege controls appropriate to the storage service. The measured result specifically addresses the failure at Valleyline Technology: Developers assume storing state remotely automatically makes every team member authorized to read and modify it.

Incorrect Answers

B:

The next authorized run acquires the lock without a competing state modification. This evidence would validate a DIFFERENT correction: Investigate the active lock holder and underlying backend health instead of bypassing normal locking. That different correction addresses: A Terraform job fails to acquire a state lock and its operator reaches immediately for -lock=false to continue in production. It does not establish that the Valleyline Technology issue has been corrected: Developers assume storing state remotely automatically makes every team member authorized to read and modify it. The relevant measured outcome is: Authorized runners can manage state while an unauthorized identity fails a read or write access test.

C:

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 Valleyline Technology issue has been corrected: Developers assume storing state remotely automatically makes every team member authorized to read and modify it. The relevant measured outcome is: Authorized runners can manage state while an unauthorized identity fails a read or write access test.

D:

The dependency graph references the intended cloud and DNS providers and no provider type mismatch appears. This evidence would validate a DIFFERENT correction: Declare each required provider with its own source and configuration, then bind resources to matching providers. That different correction addresses: A team requires different providers for cloud infrastructure and DNS but misuses a single provider alias across unrelated namespaces. It does not establish that the Valleyline Technology issue has been corrected: Developers assume storing state remotely automatically makes every team member authorized to read and modify it. The relevant measured outcome is: Authorized runners can manage state while an unauthorized identity fails a read or write access test.

Question 633

Brightside Cloud Works is preparing a controlled Terraform update after identifying this fault: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. What is the most appropriate corrective action for this Terraform scenario?

  1. Use TF_LOG_PATH with an appropriate TF_LOG level and store the resulting diagnostic file securely.
  2. Review destroy implications and lifecycle/retention controls before decommissioning managed data services.
  3. Run a normal refreshed plan and decide whether to restore configuration or accept the change.
  4. Use the documented lock-timeout behavior or release scheduling instead of disabling locking.

Explanation

Correct Answer

C:

Run a normal refreshed plan and decide whether to restore configuration or accept the change. This is targeted to the observed Terraform issue: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. At Brightside Cloud Works, the acceptance criterion is not merely a valid plan; the team should verify: The plan identifies the out-of-band rule change for review rather than silently assuming no drift.

Incorrect Answers

A:

Use TF_LOG_PATH with an appropriate TF_LOG level and store the resulting diagnostic file securely. This would be suitable for a DIFFERENT Terraform problem: An engineer wants to write Terraform diagnostic output to a file but redirects all deployment console output into a public artifact. It does not directly resolve the Brightside Cloud Works failure: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. The required acceptance evidence instead is: The plan identifies the out-of-band rule change for review rather than silently assuming no drift.

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 Brightside Cloud Works failure: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. The required acceptance evidence instead is: The plan identifies the out-of-band rule change for review rather than silently assuming no drift.

D:

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 Brightside Cloud Works failure: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. The required acceptance evidence instead is: The plan identifies the out-of-band rule change for review rather than silently assuming no drift.

Question 634

Brightside Cloud Works requires independent evidence before signing off this Terraform correction: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. Which controlled check would validate the remediation?

  1. The selected private log file captures the required diagnostics and is absent from public build artifacts.
  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 plan identifies the out-of-band rule change for review rather than silently assuming no drift.

Explanation

Correct Answer

D:

The plan identifies the out-of-band rule change for review rather than silently assuming no drift. This directly verifies the corrective action: Run a normal refreshed plan and decide whether to restore configuration or accept the change. The measured result specifically addresses the failure at Brightside Cloud Works: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh.

Incorrect Answers

A:

The selected private log file captures the required diagnostics and is absent from public build artifacts. This evidence would validate a DIFFERENT correction: Use TF_LOG_PATH with an appropriate TF_LOG level and store the resulting diagnostic file securely. That different correction addresses: An engineer wants to write Terraform diagnostic output to a file but redirects all deployment console output into a public artifact. It does not establish that the Brightside Cloud Works issue has been corrected: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. The relevant measured outcome is: The plan identifies the out-of-band rule change for review rather than silently assuming no drift.

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 Brightside Cloud Works issue has been corrected: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. The relevant measured outcome is: The plan identifies the out-of-band rule change for review rather than silently assuming no drift.

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 Brightside Cloud Works issue has been corrected: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. The relevant measured outcome is: The plan identifies the out-of-band rule change for review rather than silently assuming no drift.

Question 635

A Terraform maintainer supporting Bayview Systems investigates this scenario: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. Which action would best restore the intended infrastructure-as-code workflow?

  1. Run a normal refreshed plan and decide whether to restore configuration or accept the change.
  2. Identify the default local backend behavior and explicitly configure a suitable shared backend when collaboration is required.
  3. Configure the provider centrally with an appropriately supplied credential rather than duplicating authentication in resources.
  4. Use the correct counted-resource index or an expression over instances when referencing their attributes.

Explanation

Correct Answer

A:

Run a normal refreshed plan and decide whether to restore configuration or accept the change. This is targeted to the observed Terraform issue: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. At Bayview Systems, the acceptance criterion is not merely a valid plan; the team should verify: The plan identifies the out-of-band rule change for review rather than silently assuming no drift.

Incorrect Answers

B:

Identify the default local backend behavior and explicitly configure a suitable shared backend when collaboration is required. This would be suitable for a DIFFERENT Terraform problem: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. It does not directly resolve the Bayview Systems failure: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. The required acceptance evidence instead is: The plan identifies the out-of-band rule change for review rather than silently assuming no drift.

C:

Configure the provider centrally with an appropriately supplied credential rather than duplicating authentication in resources. This would be suitable for a DIFFERENT Terraform problem: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. It does not directly resolve the Bayview Systems failure: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. The required acceptance evidence instead is: The plan identifies the out-of-band rule change for review rather than silently assuming no drift.

D:

Use the correct counted-resource index or an expression over instances when referencing their attributes. This would be suitable for a DIFFERENT Terraform problem: A list of indexed resources uses count but a caller references the whole group as if it were a single unindexed object. It does not directly resolve the Bayview Systems failure: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. The required acceptance evidence instead is: The plan identifies the out-of-band rule change for review rather than silently assuming no drift.

Question 636

A controlled test for Bayview Systems focuses on the original failure: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. Which observation best confirms that the proposed correction worked?

  1. Validation accepts the expression and the output contains the intended one or many instance IDs.
  2. The plan identifies the out-of-band rule change for review rather than silently assuming no drift.
  3. The default local run produces a local state file while the configured shared run reads the expected remote state instead.
  4. Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.

Explanation

Correct Answer

B:

The plan identifies the out-of-band rule change for review rather than silently assuming no drift. This directly verifies the corrective action: Run a normal refreshed plan and decide whether to restore configuration or accept the change. The measured result specifically addresses the failure at Bayview Systems: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh.

Incorrect Answers

A:

Validation accepts the expression and the output contains the intended one or many instance IDs. This evidence would validate a DIFFERENT correction: Use the correct counted-resource index or an expression over instances when referencing their attributes. That different correction addresses: A list of indexed resources uses count but a caller references the whole group as if it were a single unindexed object. It does not establish that the Bayview Systems issue has been corrected: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. The relevant measured outcome is: The plan identifies the out-of-band rule change for review rather than silently assuming no drift.

C:

The default local run produces a local state file while the configured shared run reads the expected remote state instead. This evidence would validate a DIFFERENT correction: Identify the default local backend behavior and explicitly configure a suitable shared backend when collaboration is required. That different correction addresses: A new Terraform root module writes terraform.tfstate to the developer's laptop but its team assumes state is already centrally shared. It does not establish that the Bayview Systems issue has been corrected: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. The relevant measured outcome is: The plan identifies the out-of-band rule change for review rather than silently assuming no drift.

D:

Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits. This evidence would validate a DIFFERENT correction: Configure the provider centrally with an appropriately supplied credential rather than duplicating authentication in resources. That different correction addresses: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. It does not establish that the Bayview Systems issue has been corrected: An operator manually changes a remote subnet rule but expects a normal saved state file alone to reveal it without provider refresh. The relevant measured outcome is: The plan identifies the out-of-band rule change for review rather than silently assuming no drift.

Question 637

A Terraform maintainer supporting Arbor Cloud Systems investigates this scenario: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. How should the Terraform engineer correct this specific failure?

  1. Use distinct Terraform providers for the supported cloud and on-premises APIs in one configuration or coordinated modules.
  2. Supply backend configuration through values available during initialization, independently of normal resource evaluation.
  3. Import the existing remote object to the matching Terraform resource address and ensure configuration matches its desired attributes.
  4. Use a carefully reviewed refresh-only planning/apply workflow appropriate to the documented case.

Explanation

Correct Answer

D:

Use a carefully reviewed refresh-only planning/apply workflow appropriate to the documented case. This is targeted to the observed Terraform issue: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. At Arbor Cloud Systems, the acceptance criterion is not merely a valid plan; the team should verify: The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications.

Incorrect Answers

A:

Use distinct Terraform providers for the supported cloud and on-premises APIs in one configuration or coordinated modules. This would be suitable for a DIFFERENT Terraform problem: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts. It does not directly resolve the Arbor Cloud Systems failure: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. The required acceptance evidence instead is: The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications.

B:

Supply backend configuration through values available during initialization, independently of normal resource evaluation. This would be suitable for a DIFFERENT Terraform problem: A pipeline attempts to calculate the backend bucket name from an output that is not known until after apply. It does not directly resolve the Arbor Cloud Systems failure: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. The required acceptance evidence instead is: The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications.

C:

Import the existing remote object to the matching Terraform resource address and ensure configuration matches its desired attributes. This would be suitable for a DIFFERENT Terraform problem: A team adopts an existing cloud network into Terraform and assumes adding a resource block is sufficient for the existing remote object to enter state. It does not directly resolve the Arbor Cloud Systems failure: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. The required acceptance evidence instead is: The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications.

Question 638

A controlled test for Arbor Cloud Systems focuses on the original failure: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. Which verification outcome is the strongest evidence of the required correction?

  1. The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications.
  2. After import, terraform state show maps the address to the existing remote ID and the plan avoids a duplicate create.
  3. The combined plan resolves both provider schemas and shows the intended hybrid changes.
  4. A clean init resolves the configured backend before planning any resources.

Explanation

Correct Answer

A:

The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications. This directly verifies the corrective action: Use a carefully reviewed refresh-only planning/apply workflow appropriate to the documented case. The measured result specifically addresses the failure at Arbor Cloud Systems: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes.

Incorrect Answers

B:

After import, terraform state show maps the address to the existing remote ID and the plan avoids a duplicate create. This evidence would validate a DIFFERENT correction: Import the existing remote object to the matching Terraform resource address and ensure configuration matches its desired attributes. That different correction addresses: A team adopts an existing cloud network into Terraform and assumes adding a resource block is sufficient for the existing remote object to enter state. It does not establish that the Arbor Cloud Systems issue has been corrected: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. The relevant measured outcome is: The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications.

C:

The combined plan resolves both provider schemas and shows the intended hybrid changes. This evidence would validate a DIFFERENT correction: Use distinct Terraform providers for the supported cloud and on-premises APIs in one configuration or coordinated modules. That different correction addresses: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts. It does not establish that the Arbor Cloud Systems issue has been corrected: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. The relevant measured outcome is: The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications.

D:

A clean init resolves the configured backend before planning any resources. This evidence would validate a DIFFERENT correction: Supply backend configuration through values available during initialization, independently of normal resource evaluation. That different correction addresses: A pipeline attempts to calculate the backend bucket name from an output that is not known until after apply. It does not establish that the Arbor Cloud Systems issue has been corrected: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. The relevant measured outcome is: The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications.

Question 639

A proposed infrastructure change for Granite Software Works must address the following observed failure: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. What is the most appropriate corrective action for this Terraform scenario?

  1. Investigate the active lock holder and underlying backend health instead of bypassing normal locking.
  2. Use a carefully reviewed refresh-only planning/apply workflow appropriate to the documented case.
  3. Add a review and approval gate for the generated Terraform plan before an authorized apply.
  4. Use a lifecycle precondition that checks the invariant before Terraform acts on the resource.

Explanation

Correct Answer

B:

Use a carefully reviewed refresh-only planning/apply workflow appropriate to the documented case. This is targeted to the observed Terraform issue: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. At Granite Software Works, the acceptance criterion is not merely a valid plan; the team should verify: The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications.

Incorrect Answers

A:

Investigate the active lock holder and underlying backend health instead of bypassing normal locking. This would be suitable for a DIFFERENT Terraform problem: A Terraform job fails to acquire a state lock and its operator reaches immediately for -lock=false to continue in production. It does not directly resolve the Granite Software Works failure: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. The required acceptance evidence instead is: The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications.

C:

Add a review and approval gate for the generated Terraform plan before an authorized apply. This would be suitable for a DIFFERENT Terraform problem: A release pipeline applies infrastructure changes immediately after editing files, without evaluating potentially destructive replacements. It does not directly resolve the Granite Software Works failure: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. The required acceptance evidence instead is: The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications.

D:

Use a lifecycle precondition that checks the invariant before Terraform acts on the resource. This would be suitable for a DIFFERENT Terraform problem: A managed resource must not proceed if the configured network prefix violates an internal invariant after variables are evaluated. It does not directly resolve the Granite Software Works failure: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. The required acceptance evidence instead is: The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications.

Question 640

The Terraform change owner at Granite Software Works seeks a verifiable outcome for: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. Which controlled check would validate the remediation?

  1. A deliberate replacement is visible in the saved plan and blocked until approved by the change owner.
  2. An invalid network value fails the precondition with the intended diagnostic before resource creation.
  3. The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications.
  4. The next authorized run acquires the lock without a competing state modification.

Explanation

Correct Answer

C:

The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications. This directly verifies the corrective action: Use a carefully reviewed refresh-only planning/apply workflow appropriate to the documented case. The measured result specifically addresses the failure at Granite Software Works: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes.

Incorrect Answers

A:

A deliberate replacement is visible in the saved plan and blocked until approved by the change owner. This evidence would validate a DIFFERENT correction: Add a review and approval gate for the generated Terraform plan before an authorized apply. That different correction addresses: A release pipeline applies infrastructure changes immediately after editing files, without evaluating potentially destructive replacements. It does not establish that the Granite Software Works issue has been corrected: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. The relevant measured outcome is: The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications.

B:

An invalid network value fails the precondition with the intended diagnostic before resource creation. This evidence would validate a DIFFERENT correction: Use a lifecycle precondition that checks the invariant before Terraform acts on the resource. That different correction addresses: A managed resource must not proceed if the configured network prefix violates an internal invariant after variables are evaluated. It does not establish that the Granite Software Works issue has been corrected: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. The relevant measured outcome is: The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications.

D:

The next authorized run acquires the lock without a competing state modification. This evidence would validate a DIFFERENT correction: Investigate the active lock holder and underlying backend health instead of bypassing normal locking. That different correction addresses: A Terraform job fails to acquire a state lock and its operator reaches immediately for -lock=false to continue in production. It does not establish that the Granite Software Works issue has been corrected: A service owner intentionally accepts a remote field change but wants to update state observations without applying unrelated configuration changes. The relevant measured outcome is: The accepted refresh-only operation updates recorded observations without executing unrelated configuration-driven resource modifications.