cert
cert-1
cert-2

Pass HashiCorp Terraform Associate 004 Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers to Pass the Actual Exam!
30 Days Free Updates, Instant Download!

cert-5
cert-6
Terraform Associate 004 Exam - Verified By Experts
Terraform Associate 004 Premium Bundle
$29.98

Terraform Associate 004 Premium Bundle

$79.99
$109.97
  • Premium File 167 Questions & Answers. Last update: Nov 28, 2026
  • Training Course 118 Video Lectures
  • Study Guide 285 Pages
 
$109.97
$79.99
accept 60 downloads in last 7 days
block-screenshots
Purchase HashiCorp Terraform Associate 004 Exam Training Products Individually
HashiCorp Terraform Associate 004 Premium File
Premium File 167 Q&A
$76.99$69.99
HashiCorp Terraform Associate 004 Video Training Course
Training Course 118 Lectures
$21.99 $19.99
HashiCorp Terraform Associate 004 PDF Study Guide
Study Guide 285 Pages
$21.99 $19.99
HashiCorp Terraform Associate 004 Practice Test 28

Question 270

When reviewing a reusable Terraform HCL configuration before deployment, the following condition occurs: A module declares a database password with sensitive = true but then stores it in a normal provider resource argument and claims the state snapshot contains no plaintext. The engineer must respect declared resource contracts and data security boundaries. What acceptance evidence best establishes that the Terraform issue has been resolved?

  1. CLI output is appropriately redacted and the selected secret-handling path avoids unwanted persistent state exposure.
  2. Terraform reads the existing DNS zone information and plans no duplicate zone creation from the lookup alone.
  3. A controlled Terraform operation can authenticate using the short-lived token while its value is omitted from plan and state artifacts.
  4. The replacement can come online and pass health checks before the former endpoint is destroyed when provider constraints permit.

Explanation

Correct Answer

A:

CLI output is appropriately redacted and the selected secret-handling path avoids unwanted persistent state exposure. Sensitive marks typically hide values from normal display but do not inherently prevent their persistence in Terraform state. It tests the correction: Protect the backend and use supported ephemeral/write-only pathways when the provider exposes them rather than relying on sensitive alone.

Incorrect Answers

B:

Terraform reads the existing DNS zone information and plans no duplicate zone creation from the lookup alone. This might validate data source versus managed resource definition, but it does not prove that sensitive variable does not erase state secrets was resolved. Confirm instead: CLI output is appropriately redacted and the selected secret-handling path avoids unwanted persistent state exposure.

C:

A controlled Terraform operation can authenticate using the short-lived token while its value is omitted from plan and state artifacts. This might validate ephemeral variable for short-lived token in terraform 1.12, but it does not prove that sensitive variable does not erase state secrets was resolved. Confirm instead: CLI output is appropriately redacted and the selected secret-handling path avoids unwanted persistent state exposure.

D:

The replacement can come online and pass health checks before the former endpoint is destroyed when provider constraints permit. This might validate create_before_destroy lifecycle for availability, but it does not prove that sensitive variable does not erase state secrets was resolved. Confirm instead: CLI output is appropriately redacted and the selected secret-handling path avoids unwanted persistent state exposure.

Question 271

During a controlled module integration test for a production Terraform stack, the following condition occurs: A database provider supports a write-only password argument, but an engineer uses a normal stored password argument and checks the plan artifact into an unsecured archive. The desired fix must avoid unrelated resource changes. Which diagnostic check provides the strongest evidence for the underlying problem?

  1. Inspect the variable's ephemeral setting and whether downstream use is an allowed ephemeral context such as provider configuration.
  2. Review input and output sensitivity declarations and inspect what the plan or output commands will display.
  3. Inspect the subnet and server blocks for real attribute references versus unrelated hardcoded strings.
  4. Inspect the provider resource schema for supported write-only arguments and associated rotation or version requirements.

Explanation

Correct Answer

D:

Inspect the provider resource schema for supported write-only arguments and associated rotation or version requirements. Write-only resource arguments accept values during an operation without saving those values into Terraform's managed state. A justified correction is: Supply a supported write-only password argument from an ephemeral value and use the provider's explicit version mechanism when required.

Incorrect Answers

A:

Inspect the variable's ephemeral setting and whether downstream use is an allowed ephemeral context such as provider configuration. This inspects ephemeral variable for short-lived token in terraform 1.12 rather than the reported write-only provider argument for managed secret rotation issue. The decisive investigation is: Inspect the provider resource schema for supported write-only arguments and associated rotation or version requirements.

B:

Review input and output sensitivity declarations and inspect what the plan or output commands will display. This inspects sensitive output display behavior rather than the reported write-only provider argument for managed secret rotation issue. The decisive investigation is: Inspect the provider resource schema for supported write-only arguments and associated rotation or version requirements.

C:

Inspect the subnet and server blocks for real attribute references versus unrelated hardcoded strings. This inspects implicit dependency through resource attribute reference rather than the reported write-only provider argument for managed secret rotation issue. The decisive investigation is: Inspect the provider resource schema for supported write-only arguments and associated rotation or version requirements.

Question 272

In a clean CI runner initializing a Terraform root configuration, the following condition occurs: A root configuration defines an alias for a secondary region, but its child module provisions resources in the primary region because the provider mapping is omitted. The engineers must keep provider choices and identities reproducible. Which investigation would most directly establish the reported Terraform failure?

  1. Review the child module provider requirements and root module providers mapping for the child call.
  2. Inspect the version constraint, lock file version, and the difference between ordinary terraform init and terraform init -upgrade behavior.
  3. Review provider requirement declarations, provider configuration blocks, and the platform's supported authentication mechanisms.
  4. Inspect provider alias blocks and the resource's provider selection, including default identity and account-specific configuration.

Explanation

Correct Answer

A:

Review the child module provider requirements and root module providers mapping for the child call. Provider configurations are supplied by module callers; module source files do not automatically inherit arbitrary aliases by matching their names. A justified correction is: Pass the correct provider configuration explicitly through the module's providers map and declare configuration_aliases when required.

Incorrect Answers

B:

Inspect the version constraint, lock file version, and the difference between ordinary terraform init and terraform init -upgrade behavior. This inspects controlled provider upgrade using init upgrade rather than the reported module provider mapping for aliased configurations issue. The decisive investigation is: Review the child module provider requirements and root module providers mapping for the child call.

C:

Review provider requirement declarations, provider configuration blocks, and the platform's supported authentication mechanisms. This inspects provider block credentials versus required_providers rather than the reported module provider mapping for aliased configurations issue. The decisive investigation is: Review the child module provider requirements and root module providers mapping for the child call.

D:

Inspect provider alias blocks and the resource's provider selection, including default identity and account-specific configuration. This inspects provider alias for multiple accounts rather than the reported module provider mapping for aliased configurations issue. The decisive investigation is: Review the child module provider requirements and root module providers mapping for the child call.

Question 273

While migrating a manually maintained development environment into reviewed Terraform configuration, the following condition occurs: A team needs to coordinate a local virtualization cluster with hosted cloud DNS and attempts to reuse a cloud API token for both providers. The team must establish a reproducible and auditable infrastructure change. Which TWO complementary choices identify the cause and implement the appropriate fix? Select TWO.

  1. Configure separate authorized providers and identities for the hybrid environments while retaining a shared desired-state workflow.
  2. Express the intended resources in Terraform configuration and review its generated plan before applying a consistent desired state.
  3. Inspect whether infrastructure choices and dependencies exist as tracked Terraform files or only as undocumented console modifications.
  4. Inspect provider source requirements, authentication scopes, and whether the on-premises and hosted platforms expose different APIs.
  5. Create separate provider-aware modules behind a shared application interface rather than treating resource type names as portable across platforms.

Explanation

Correct Answers

A:

Configure separate authorized providers and identities for the hybrid environments while retaining a shared desired-state workflow. Hybrid Terraform management uses different provider plugins and credentials; one universal cloud credential is neither expected nor safe. Confirm the cause with: Inspect provider source requirements, authentication scopes, and whether the on-premises and hosted platforms expose different APIs. A concrete acceptance test is: A plan can cover both managed targets while each provider operates only within its authorized platform and permissions. This forms one element of the required two-step diagnosis and correction.

D:

Inspect provider source requirements, authentication scopes, and whether the on-premises and hosted platforms expose different APIs. Hybrid Terraform management uses different provider plugins and credentials; one universal cloud credential is neither expected nor safe. A justified correction is: Configure separate authorized providers and identities for the hybrid environments while retaining a shared desired-state workflow. This forms one element of the required two-step diagnosis and correction.

Incorrect Answers

B:

Express the intended resources in Terraform configuration and review its generated plan before applying a consistent desired state. This relates to declarative desired state versus imperative console runbook rather than the matching diagnosis-and-remediation pair required here. Check: Inspect provider source requirements, authentication scopes, and whether the on-premises and hosted platforms expose different APIs. Then change: Configure separate authorized providers and identities for the hybrid environments while retaining a shared desired-state workflow.

C:

Inspect whether infrastructure choices and dependencies exist as tracked Terraform files or only as undocumented console modifications. This relates to terraform configuration as reviewable infrastructure specification rather than the matching diagnosis-and-remediation pair required here. Check: Inspect provider source requirements, authentication scopes, and whether the on-premises and hosted platforms expose different APIs. Then change: Configure separate authorized providers and identities for the hybrid environments while retaining a shared desired-state workflow.

E:

Create separate provider-aware modules behind a shared application interface rather than treating resource type names as portable across platforms. This relates to provider-neutral infrastructure pattern without identical resource types rather than the matching diagnosis-and-remediation pair required here. Check: Inspect provider source requirements, authentication scopes, and whether the on-premises and hosted platforms expose different APIs. Then change: Configure separate authorized providers and identities for the hybrid environments while retaining a shared desired-state workflow.

Question 274

During a cross-platform infrastructure standardization exercise, the following condition occurs: Developers assume a Terraform virtual machine resource from cloud A can be copied unchanged into cloud B just because the configuration language is the same. The decision must preserve ownership and minimize undocumented changes. Which outcome most directly validates the intended fix?

  1. A series of Terraform plans remains stable after independent automation without oscillating policy settings between tools.
  2. Both platform implementations satisfy agreed application outputs using their own valid resource schemas and API constraints.
  3. An auditor can identify the approved commit and plan that caused a deliberate infrastructure capacity change.
  4. One reviewed workflow coordinates both cloud resources without pretending Terraform replaces the different underlying provider APIs.

Explanation

Correct Answer

B:

Both platform implementations satisfy agreed application outputs using their own valid resource schemas and API constraints. Terraform's common workflow does not make different cloud vendor APIs or resource type attributes interchangeable. It tests the correction: Create separate provider-aware modules behind a shared application interface rather than treating resource type names as portable across platforms. This matters here because developers assume a Terraform virtual machine resource from cloud A can be copied unchanged into cloud B just….

Incorrect Answers

A:

A series of Terraform plans remains stable after independent automation without oscillating policy settings between tools. This might validate terraform resource ownership boundary, but it does not prove that provider-neutral infrastructure pattern without identical resource types was resolved. Confirm instead: Both platform implementations satisfy agreed application outputs using their own valid resource schemas and API constraints.

C:

An auditor can identify the approved commit and plan that caused a deliberate infrastructure capacity change. This might validate version-controlled iac change auditing, but it does not prove that provider-neutral infrastructure pattern without identical resource types was resolved. Confirm instead: Both platform implementations satisfy agreed application outputs using their own valid resource schemas and API constraints.

D:

One reviewed workflow coordinates both cloud resources without pretending Terraform replaces the different underlying provider APIs. This might validate multi-cloud providers under one terraform workflow, but it does not prove that provider-neutral infrastructure pattern without identical resource types was resolved. Confirm instead: Both platform implementations satisfy agreed application outputs using their own valid resource schemas and API constraints. This matters here because developers assume a Terraform virtual machine resource from cloud A can be copied unchanged into cloud B just….

Question 275

As an infrastructure team integrates an existing repository with HCP Terraform, the following condition occurs: A developer adds an HCP Terraform organization but the CLI still writes local state because no cloud workspace selection is configured. The workflow must apply least privilege and preserve workspace isolation. Select TWO: the decisive first check and the change that directly addresses the problem.

  1. Create a controlled HCP Terraform variable set scoped to the intended workspaces and remove conflicting duplicated values.
  2. Define the supported cloud integration block with the intended organization and workspace selection, then initialize and authenticate.
  3. Inspect existing HCP policy sets, enforcement levels, workspace assignments and prior policy evaluation results.
  4. Inspect the terraform cloud block, organization name, workspace selector, and current initialization integration.
  5. Authenticate to HCP Terraform using a supported CLI login or secure token workflow and retain least-privilege provider credentials independently.

Explanation

Correct Answers

B:

Define the supported cloud integration block with the intended organization and workspace selection, then initialize and authenticate. The cloud block binds a root configuration to HCP Terraform workspaces; merely naming an organization elsewhere is insufficient. Confirm the cause with: Inspect the terraform cloud block, organization name, workspace selector, and current initialization integration. A concrete acceptance test is: The CLI plan targets the selected HCP Terraform workspace and uses its controlled state rather than a local accidental snapshot. This forms one element of the required two-step diagnosis and correction. This matters here because as an infrastructure team integrates an existing repository with HCP Terraform, the following condition occurs: A….

D:

Inspect the terraform cloud block, organization name, workspace selector, and current initialization integration. The cloud block binds a root configuration to HCP Terraform workspaces; merely naming an organization elsewhere is insufficient. A justified correction is: Define the supported cloud integration block with the intended organization and workspace selection, then initialize and authenticate. This forms one element of the required two-step diagnosis and correction. This matters here because as an infrastructure team integrates an existing repository with HCP Terraform, the following condition occurs: A….

Incorrect Answers

A:

Create a controlled HCP Terraform variable set scoped to the intended workspaces and remove conflicting duplicated values. This relates to hcp workspace variable sets share scoped configuration rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the terraform cloud block, organization name, workspace selector, and current initialization integration. Then change: Define the supported cloud integration block with the intended organization and workspace selection, then initialize and authenticate.

C:

Inspect existing HCP policy sets, enforcement levels, workspace assignments and prior policy evaluation results. This relates to hcp terraform policy enforcement governance rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the terraform cloud block, organization name, workspace selector, and current initialization integration. Then change: Define the supported cloud integration block with the intended organization and workspace selection, then initialize and authenticate.

E:

Authenticate to HCP Terraform using a supported CLI login or secure token workflow and retain least-privilege provider credentials independently. This relates to hcp terraform cli login and execution credentials rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the terraform cloud block, organization name, workspace selector, and current initialization integration. Then change: Define the supported cloud integration block with the intended organization and workspace selection, then initialize and authenticate. This matters here because as an infrastructure team integrates an existing repository with HCP Terraform, the following condition occurs: A….

Question 276

During a clean initialization of a newly composed infrastructure root module, the following condition occurs: A root module duplicates nearly identical module blocks for every application name, causing the staging and QA copies to diverge in their configurations. The team must preserve reproducibility across callers. Which investigation would most directly establish the reported Terraform failure?

  1. Inspect the child module's variable declarations and the arguments passed by its calling module block.
  2. Inspect which module arguments vary and whether stable application keys can drive repeated module instances.
  3. Inspect the parent composition and whether the network child provides an output representing the created subnet.
  4. Inspect the module Git source URL and whether it contains a commit, tag or versioned ref rather than an unpinned branch.

Explanation

Correct Answer

B:

Inspect which module arguments vary and whether stable application keys can drive repeated module instances. Module calls support for_each to create keyed instances of reusable infrastructure components with stable addresses. A justified correction is: Use for_each on the module block with a stable keyed collection and pass each.key or each.value to the child input contract.

Incorrect Answers

A:

Inspect the child module's variable declarations and the arguments passed by its calling module block. This inspects root and child variable scope isolation rather than the reported for_each at module call for multiple environments issue. The decisive investigation is: Inspect which module arguments vary and whether stable application keys can drive repeated module instances.

C:

Inspect the parent composition and whether the network child provides an output representing the created subnet. This inspects module outputs coordinate dependencies instead of duplicate data rather than the reported for_each at module call for multiple environments issue. The decisive investigation is: Inspect which module arguments vary and whether stable application keys can drive repeated module instances.

D:

Inspect the module Git source URL and whether it contains a commit, tag or versioned ref rather than an unpinned branch. This inspects git module ref pin rather than floating main branch rather than the reported for_each at module call for multiple environments issue. The decisive investigation is: Inspect which module arguments vary and whether stable application keys can drive repeated module instances.

Question 277

During a controlled Terraform CLI recovery exercise, the following condition occurs: A legacy cloud object exists in the production account, but terraform import is executed with the default development provider and cannot locate its supplied ID. The same infrastructure must remain managed without unintended replacements. Which TWO complementary choices identify the cause and implement the appropriate fix? Select TWO.

  1. Identify the exact resource instance address from terraform state list and inspect it with terraform state show.
  2. Temporarily set TF_LOG to a useful level such as DEBUG or TRACE and capture restricted diagnostic output for the failing command.
  3. Inspect the resource's provider selection, active credentials and which account owns the remote object.
  4. Declare reviewed import blocks for known objects, plan the adoption, and reconcile configuration with the resulting resource state.
  5. Select the appropriate aliased provider configuration and import using the real identifier in its owning account.

Explanation

Correct Answers

C:

Inspect the resource's provider selection, active credentials and which account owns the remote object. Terraform import relies on a compatible provider configuration and correct remote identifier; IDs are interpreted in provider context. A justified correction is: Select the appropriate aliased provider configuration and import using the real identifier in its owning account. This forms one element of the required two-step diagnosis and correction.

E:

Select the appropriate aliased provider configuration and import using the real identifier in its owning account. Terraform import relies on a compatible provider configuration and correct remote identifier; IDs are interpreted in provider context. Confirm the cause with: Inspect the resource's provider selection, active credentials and which account owns the remote object. A concrete acceptance test is: The resource binds to the production object while no unexpected development object is created or modified. This forms one element of the required two-step diagnosis and correction.

Incorrect Answers

A:

Identify the exact resource instance address from terraform state list and inspect it with terraform state show. This relates to state show inspects one stored resource instance rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the resource's provider selection, active credentials and which account owns the remote object. Then change: Select the appropriate aliased provider configuration and import using the real identifier in its owning account.

B:

Temporarily set TF_LOG to a useful level such as DEBUG or TRACE and capture restricted diagnostic output for the failing command. This relates to tf_log for troubleshooting provider and cli diagnostics rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the resource's provider selection, active credentials and which account owns the remote object. Then change: Select the appropriate aliased provider configuration and import using the real identifier in its owning account.

D:

Declare reviewed import blocks for known objects, plan the adoption, and reconcile configuration with the resulting resource state. This relates to import blocks for reproducible adoption workflow rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the resource's provider selection, active credentials and which account owns the remote object. Then change: Select the appropriate aliased provider configuration and import using the real identifier in its owning account.

Question 278

During a controlled module integration test for a production Terraform stack, the following condition occurs: A module declares a database password with sensitive = true but then stores it in a normal provider resource argument and claims the state snapshot contains no plaintext. The desired fix must avoid unrelated resource changes. What measurable postchange observation would confirm that the correction worked?

  1. The provider receives the approved new secret without persisting its plaintext in Terraform's plan or state snapshots.
  2. Terraform reads the existing DNS zone information and plans no duplicate zone creation from the lookup alone.
  3. CLI output is appropriately redacted and the selected secret-handling path avoids unwanted persistent state exposure.
  4. The plan defers the lookup when needed and avoids failing on a remote object that is not yet created.

Explanation

Correct Answer

C:

CLI output is appropriately redacted and the selected secret-handling path avoids unwanted persistent state exposure. Sensitive marks typically hide values from normal display but do not inherently prevent their persistence in Terraform state. It tests the correction: Protect the backend and use supported ephemeral/write-only pathways when the provider exposes them rather than relying on sensitive alone. This matters here because during a controlled module integration test for a production Terraform stack, the following condition occurs: A….

Incorrect Answers

A:

The provider receives the approved new secret without persisting its plaintext in Terraform's plan or state snapshots. This might validate write-only provider argument for managed secret rotation, but it does not prove that sensitive variable does not erase state secrets was resolved. Confirm instead: CLI output is appropriately redacted and the selected secret-handling path avoids unwanted persistent state exposure.

B:

Terraform reads the existing DNS zone information and plans no duplicate zone creation from the lookup alone. This might validate data source versus managed resource definition, but it does not prove that sensitive variable does not erase state secrets was resolved. Confirm instead: CLI output is appropriately redacted and the selected secret-handling path avoids unwanted persistent state exposure. This matters here because during a controlled module integration test for a production Terraform stack, the following condition occurs: A….

D:

The plan defers the lookup when needed and avoids failing on a remote object that is not yet created. This might validate data source read ordering versus creation, but it does not prove that sensitive variable does not erase state secrets was resolved. Confirm instead: CLI output is appropriately redacted and the selected secret-handling path avoids unwanted persistent state exposure.

Question 279

During a controlled module integration test for a production Terraform stack, the following condition occurs: A resource should be deployed only when its selected storage class meets a business constraint, but the configuration proceeds with unsupported combinations. The desired fix must avoid unrelated resource changes. Which outcome most directly validates the intended fix?

  1. The plan resolves the intended instance and avoids accidental replacement caused solely by a configuration address rename.
  2. A violated mandatory invariant stops the controlled operation, while optional service checks report diagnostic results appropriately.
  3. The plan selects the correct per-environment instance size without relying on arbitrary key ordering.
  4. The resource change is blocked when the prerequisite property fails and permitted combinations pass the condition.

Explanation

Correct Answer

D:

The resource change is blocked when the prerequisite property fails and permitted combinations pass the condition. Preconditions assert requirements that must hold before a resource operation can proceed, rather than silently applying risky inputs. It tests the correction: Use a lifecycle precondition with a precise boolean condition and actionable error message on the resource. This matters here because during a controlled module integration test for a production Terraform stack, the following condition occurs: A….

Incorrect Answers

A:

The plan resolves the intended instance and avoids accidental replacement caused solely by a configuration address rename. This might validate resource addressing with repeated instances, but it does not prove that resource precondition for unsafe configuration was resolved. Confirm instead: The resource change is blocked when the prerequisite property fails and permitted combinations pass the condition. This matters here because during a controlled module integration test for a production Terraform stack, the following condition occurs: A….

B:

A violated mandatory invariant stops the controlled operation, while optional service checks report diagnostic results appropriately. This might validate check block observability versus hard failure, but it does not prove that resource precondition for unsafe configuration was resolved. Confirm instead: The resource change is blocked when the prerequisite property fails and permitted combinations pass the condition. This matters here because during a controlled module integration test for a production Terraform stack, the following condition occurs: A….

C:

The plan selects the correct per-environment instance size without relying on arbitrary key ordering. This might validate map versus list addressing for environment inputs, but it does not prove that resource precondition for unsafe configuration was resolved. Confirm instead: The resource change is blocked when the prerequisite property fails and permitted combinations pass the condition.

Question 280

As a second engineer rehearses an infrastructure state migration, the following condition occurs: A Terraform engineer moves a resource from root to a child module and the next plan offers to destroy the old address and create the same remote object at a new address. The operation must not delete or duplicate existing production objects. Which proposed remediation solves this failure without masking its cause?

  1. Declare a supported backend block with a reviewed storage location, then initialize and migrate state under controlled conditions.
  2. Select the intended workspace before planning and check the corresponding workspace-specific state directory.
  3. Add a moved block mapping the old address to the new address before running a reviewed plan.
  4. Apply a reviewed refresh-only plan when appropriate to synchronize state with current remote objects without an infrastructure change.

Explanation

Correct Answer

C:

Add a moved block mapping the old address to the new address before running a reviewed plan. Configuration address refactoring requires a state mapping; moved blocks declare that logical migration without recreating infrastructure. Confirm the cause with: Compare old and new resource addresses and verify the provider object is the same logical managed resource. A concrete acceptance test is: The resource identity is preserved through a state address move and the refactor avoids unnecessary physical replacement.

Incorrect Answers

A:

Declare a supported backend block with a reviewed storage location, then initialize and migrate state under controlled conditions. This could address remote backend block configuration, but it does not correct the indicated moved block preserves state during address refactor mechanism. The relevant fix is: Add a moved block mapping the old address to the new address before running a reviewed plan.

B:

Select the intended workspace before planning and check the corresponding workspace-specific state directory. This could address local workspace state separation, but it does not correct the indicated moved block preserves state during address refactor mechanism. The relevant fix is: Add a moved block mapping the old address to the new address before running a reviewed plan.

D:

Apply a reviewed refresh-only plan when appropriate to synchronize state with current remote objects without an infrastructure change. This could address refresh-only state update without infrastructure mutation, but it does not correct the indicated moved block preserves state during address refactor mechanism. The relevant fix is: Add a moved block mapping the old address to the new address before running a reviewed plan.

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