HashiCorp Terraform Associate Practice Test 70
Question 690
A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The team has implemented an approved Terraform change. Which observed result most directly confirms that the original requirement is now met, beyond a successful command exit code?
- The approved subnet design is restored or configuration is updated deliberately.
- State remains structurally valid and accurately represents intended objects.
- Only approved operators and deployment identities can retrieve state.
- Only one writer updates a shared state snapshot at a time.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: State remains structurally valid and accurately represents intended objects. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Retain snapshots and use an approved change window.
Incorrect Answers
A:“The approved subnet design is restored or configuration is updated deliberately” would address a different Terraform configuration concern; the source instead describes A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
C:“Only approved operators and deployment identities can retrieve state” would address a different Terraform configuration concern; the source instead describes A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
D:“Only one writer updates a shared state snapshot at a time” would address a different Terraform configuration concern; the source instead describes A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
Question 691
A developer expects terraform state list to show every unmanaged cloud resource in the company account. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Add a moved block or use controlled state move operations so the existing remote ID retains the new address.
- Rebind the existing object through controlled import rather than creating a second database.
- Use separate backends or managed workspace permissions as appropriate instead of treating CLI workspace names as security isolation.
- Use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: A developer expects terraform state list to show every unmanaged cloud resource in the company account. It applies the design choice Use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Review the primary diagnostic: Inspect the backend state resource addresses. The expected outcome is: The team distinguishes state ownership from all possible cloud resources. The rollout safeguard is: Maintain cloud asset inventory separately from state.
Incorrect Answers
A:“Add a moved block or use controlled state move operations so the existing remote ID retains the new address” would address a different Terraform configuration concern; the source instead describes A developer expects terraform state list to show every unmanaged cloud resource in the company account. The appropriate design is to use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Confirm whether the team distinguishes state ownership from all possible cloud resources.
B:“Rebind the existing object through controlled import rather than creating a second database” would address a different Terraform configuration concern; the source instead describes A developer expects terraform state list to show every unmanaged cloud resource in the company account. The appropriate design is to use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Confirm whether the team distinguishes state ownership from all possible cloud resources.
C:“Use separate backends or managed workspace permissions as appropriate instead of treating CLI workspace names as security isolation” would address a different Terraform configuration concern; the source instead describes A developer expects terraform state list to show every unmanaged cloud resource in the company account. The appropriate design is to use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Confirm whether the team distinguishes state ownership from all possible cloud resources.
Question 692
A developer expects terraform state list to show every unmanaged cloud resource in the company account. Before choosing a remedy, the team needs independent evidence of the actual root cause. Which TWO checks most directly test this case? (Select TWO.)
- Inspect backend block contents and initialization errors.
- Inspect old and new configuration resource addresses.
- Compare provider inventory with Terraform-managed resource IDs.
- Inspect the backend state resource addresses.
- Inspect Terraform workspace name and backend key.
Explanation
Correct Answers
C:This is directly relevant evidence for the reported behavior: Compare provider inventory with Terraform-managed resource IDs. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. The expected confirmation is The team distinguishes state ownership from all possible cloud resources.
D:This is directly relevant evidence for the reported behavior: Inspect the backend state resource addresses. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. The expected confirmation is The team distinguishes state ownership from all possible cloud resources.
Incorrect Answers
A:“Inspect backend block contents and initialization errors” would address a different Terraform configuration concern; the source instead describes A developer expects terraform state list to show every unmanaged cloud resource in the company account. The appropriate design is to use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Confirm whether the team distinguishes state ownership from all possible cloud resources.
B:“Inspect old and new configuration resource addresses” would address a different Terraform configuration concern; the source instead describes A developer expects terraform state list to show every unmanaged cloud resource in the company account. The appropriate design is to use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Confirm whether the team distinguishes state ownership from all possible cloud resources.
E:“Inspect Terraform workspace name and backend key” would address a different Terraform configuration concern; the source instead describes A developer expects terraform state list to show every unmanaged cloud resource in the company account. The appropriate design is to use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Confirm whether the team distinguishes state ownership from all possible cloud resources.
Question 693
A developer expects terraform state list to show every unmanaged cloud resource in the company account. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Assuming state list is global may omit manually created security exposures.
- Pointing at an empty state can plan duplicate resource creation.
- Disabling locking may cause lost state updates and resource corruption.
- State can contain sensitive attributes even if configuration does not.
Explanation
Correct Answer
A:The reported condition creates the specific potential exposure: Assuming state list is global may omit manually created security exposures. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect the backend state resource addresses. Second diagnostic: Compare provider inventory with Terraform-managed resource IDs.
Incorrect Answers
B:“Pointing at an empty state can plan duplicate resource creation” would address a different Terraform configuration concern; the source instead describes A developer expects terraform state list to show every unmanaged cloud resource in the company account. The appropriate design is to use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Confirm whether the team distinguishes state ownership from all possible cloud resources.
C:“Disabling locking may cause lost state updates and resource corruption” would address a different Terraform configuration concern; the source instead describes A developer expects terraform state list to show every unmanaged cloud resource in the company account. The appropriate design is to use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Confirm whether the team distinguishes state ownership from all possible cloud resources.
D:“State can contain sensitive attributes even if configuration does not” would address a different Terraform configuration concern; the source instead describes A developer expects terraform state list to show every unmanaged cloud resource in the company account. The appropriate design is to use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Confirm whether the team distinguishes state ownership from all possible cloud resources.
Question 694
A developer expects terraform state list to show every unmanaged cloud resource in the company account. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Provide sanitized reports rather than unrestricted state snapshots.
- Use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets.
- Maintain cloud asset inventory separately from state.
- Use backend initialization configuration or explicit approved backend settings instead of ordinary input-variable expressions in backend blocks.
- Obtain owner approval and preserve lock metadata.
Explanation
Correct Answers
B:This is one of the two necessary decisions for a safe design: Use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Together the corrective action and its implementation safeguard need to address the recorded condition: A developer expects terraform state list to show every unmanaged cloud resource in the company account. Acceptance requires The team distinguishes state ownership from all possible cloud resources.
C:This is one of the two necessary decisions for a safe design: Maintain cloud asset inventory separately from state. Together the corrective action and its implementation safeguard need to address the recorded condition: A developer expects terraform state list to show every unmanaged cloud resource in the company account. Acceptance requires The team distinguishes state ownership from all possible cloud resources.
Incorrect Answers
A:“Provide sanitized reports rather than unrestricted state snapshots” would address a different Terraform configuration concern; the source instead describes A developer expects terraform state list to show every unmanaged cloud resource in the company account. The appropriate design is to use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Confirm whether the team distinguishes state ownership from all possible cloud resources.
D:“Use backend initialization configuration or explicit approved backend settings instead of ordinary input-variable expressions in backend blocks” would address a different Terraform configuration concern; the source instead describes A developer expects terraform state list to show every unmanaged cloud resource in the company account. The appropriate design is to use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Confirm whether the team distinguishes state ownership from all possible cloud resources.
E:“Obtain owner approval and preserve lock metadata” would address a different Terraform configuration concern; the source instead describes A developer expects terraform state list to show every unmanaged cloud resource in the company account. The appropriate design is to use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Confirm whether the team distinguishes state ownership from all possible cloud resources.
Question 695
A developer expects terraform state list to show every unmanaged cloud resource in the company account. The team has implemented an approved Terraform change. Which observed result most directly confirms that the original requirement is now met, beyond a successful command exit code?
- Independent environments have intentional state and access controls.
- The team distinguishes state ownership from all possible cloud resources.
- The consuming stack receives only required public values under least privilege.
- State remains structurally valid and accurately represents intended objects.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: The team distinguishes state ownership from all possible cloud resources. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Maintain cloud asset inventory separately from state.
Incorrect Answers
A:“Independent environments have intentional state and access controls” would address a different Terraform configuration concern; the source instead describes A developer expects terraform state list to show every unmanaged cloud resource in the company account. The appropriate design is to use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Confirm whether the team distinguishes state ownership from all possible cloud resources.
C:“The consuming stack receives only required public values under least privilege” would address a different Terraform configuration concern; the source instead describes A developer expects terraform state list to show every unmanaged cloud resource in the company account. The appropriate design is to use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Confirm whether the team distinguishes state ownership from all possible cloud resources.
D:“State remains structurally valid and accurately represents intended objects” would address a different Terraform configuration concern; the source instead describes A developer expects terraform state list to show every unmanaged cloud resource in the company account. The appropriate design is to use state list as the inventory of resources tracked by this state only, and use provider inventory for unmanaged assets. Confirm whether the team distinguishes state ownership from all possible cloud resources.
Question 696
A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Use terraform state show for the known managed resource address and review its stored values securely.
- Migrate production state to an approved shared remote backend with access controls and locking.
- Compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy.
- Coordinate an explicit state ownership transfer with a write freeze and verify exactly one authoritative binding.
Explanation
Correct Answer
A:The proposed intervention addresses the reported Terraform engineering failure: A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. It applies the design choice Use terraform state show for the known managed resource address and review its stored values securely. Review the primary diagnostic: Inspect terraform state list to confirm the correct resource address. The expected outcome is: Stored resource details are inspected without applying changes. The rollout safeguard is: Limit state read privileges and redact sensitive outputs.
Incorrect Answers
B:“Migrate production state to an approved shared remote backend with access controls and locking” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.
C:“Compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.
D:“Coordinate an explicit state ownership transfer with a write freeze and verify exactly one authoritative binding” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.
Question 697
A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. Before choosing a remedy, the team needs independent evidence of the actual root cause. Which TWO checks most directly test this case? (Select TWO.)
- Inspect state binding for the legacy database.
- Inspect the provider-observed attribute and recorded state value.
- Check state show output for the intended non-secret attribute.
- Inspect the lock identifier and backend run logs.
- Inspect terraform state list to confirm the correct resource address.
Explanation
Correct Answers
C:This is directly relevant evidence for the reported behavior: Check state show output for the intended non-secret attribute. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Use terraform state show for the known managed resource address and review its stored values securely. The expected confirmation is Stored resource details are inspected without applying changes.
E:This is directly relevant evidence for the reported behavior: Inspect terraform state list to confirm the correct resource address. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Use terraform state show for the known managed resource address and review its stored values securely. The expected confirmation is Stored resource details are inspected without applying changes.
Incorrect Answers
A:“Inspect state binding for the legacy database” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.
B:“Inspect the provider-observed attribute and recorded state value” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.
D:“Inspect the lock identifier and backend run logs” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.
Question 698
A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Publicly exposed state can disclose secrets and infrastructure topology.
- Using the wrong address may lead to misdiagnosis or disclosure of secrets.
- Refreshing state alone does not change the declared desired configuration.
- Committing state can expose sensitive identifiers and credentials through history.
Explanation
Correct Answer
B:The reported condition creates the specific potential exposure: Using the wrong address may lead to misdiagnosis or disclosure of secrets. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect terraform state list to confirm the correct resource address. Second diagnostic: Check state show output for the intended non-secret attribute.
Incorrect Answers
A:“Publicly exposed state can disclose secrets and infrastructure topology” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.
C:“Refreshing state alone does not change the declared desired configuration” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.
D:“Committing state can expose sensitive identifiers and credentials through history” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.
Question 699
A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Limit state read privileges and redact sensitive outputs.
- Back up current state and coordinate migration while writes are paused.
- Use terraform state show for the known managed resource address and review its stored values securely.
- Compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy.
- Record the new operational owner and protect backups.
Explanation
Correct Answers
A:This is one of the two necessary decisions for a safe design: Limit state read privileges and redact sensitive outputs. Together the corrective action and its implementation safeguard need to address the recorded condition: A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. Acceptance requires Stored resource details are inspected without applying changes.
C:This is one of the two necessary decisions for a safe design: Use terraform state show for the known managed resource address and review its stored values securely. Together the corrective action and its implementation safeguard need to address the recorded condition: A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. Acceptance requires Stored resource details are inspected without applying changes.
Incorrect Answers
B:“Back up current state and coordinate migration while writes are paused” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.
D:“Compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes. For a governed implementation, the complementary validated step is to limit state read privileges and redact sensitive outputs.
E:“Record the new operational owner and protect backups” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.
Question 700
A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The team has implemented an approved Terraform change. Which observed result most directly confirms that the original requirement is now met, beyond a successful command exit code?
- The database is managed by one designated root without recreation.
- Stored resource details are inspected without applying changes.
- The runner reads the intended production state instead of stale staging metadata.
- The selected remote backend serializes supported writes as intended.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: Stored resource details are inspected without applying changes. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Limit state read privileges and redact sensitive outputs.
Incorrect Answers
A:“The database is managed by one designated root without recreation” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.
C:“The runner reads the intended production state instead of stale staging metadata” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.
D:“The selected remote backend serializes supported writes as intended” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.