HashiCorp Terraform Associate Practice Test 19
Question 180
A team expects terraform init to create a new compute instance even though it is only preparing its working directory. 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?
- Operators distinguish last known state from live infrastructure observations.
- Approved configuration changes affect infrastructure only after the controlled apply.
- The workspace is ready for planning without changing managed infrastructure.
- Managed resources are safely updated or decommissioned without orphaning provider bindings.
Explanation
Correct Answer
C:This is the appropriate measurable post-change acceptance criterion: The workspace is ready for planning without changing managed infrastructure. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Run plan and apply only through approved environments.
Incorrect Answers
A:“Operators distinguish last known state from live infrastructure observations” would address a different Terraform configuration concern; the source instead describes A team expects terraform init to create a new compute instance even though it is only preparing its working directory. The appropriate design is to use terraform init for backend and provider/module setup, then inspect a plan and apply separately when authorized. Confirm whether the workspace is ready for planning without changing managed infrastructure.
B:“Approved configuration changes affect infrastructure only after the controlled apply” would address a different Terraform configuration concern; the source instead describes A team expects terraform init to create a new compute instance even though it is only preparing its working directory. The appropriate design is to use terraform init for backend and provider/module setup, then inspect a plan and apply separately when authorized. Confirm whether the workspace is ready for planning without changing managed infrastructure.
D:“Managed resources are safely updated or decommissioned without orphaning provider bindings” would address a different Terraform configuration concern; the source instead describes A team expects terraform init to create a new compute instance even though it is only preparing its working directory. The appropriate design is to use terraform init for backend and provider/module setup, then inspect a plan and apply separately when authorized. Confirm whether the workspace is ready for planning without changing managed infrastructure.
Question 181
A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Use the complete intended provider source address and confirm the publisher namespace before initialization.
- Attach the correct provider alias to the data lookup as well as related managed resources.
- Retain and review the lock file and perform explicit provider version upgrades with plan testing.
- Publish the required stable outputs or lookups through a governed interface rather than assuming root module state is shared.
Explanation
Correct Answer
C:The proposed intervention addresses the reported Terraform engineering failure: A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. It applies the design choice Retain and review the lock file and perform explicit provider version upgrades with plan testing. Review the primary diagnostic: Check the exact provider versions resolved in two consecutive CI runs. The expected outcome is: CI executions use deterministic reviewed provider selections across runs. The rollout safeguard is: Require a code review for provider lock updates and test API changes.
Incorrect Answers
A:“Use the complete intended provider source address and confirm the publisher namespace before initialization” would address a different Terraform configuration concern; the source instead describes A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. The appropriate design is to retain and review the lock file and perform explicit provider version upgrades with plan testing. Confirm whether cI executions use deterministic reviewed provider selections across runs.
B:“Attach the correct provider alias to the data lookup as well as related managed resources” would address a different Terraform configuration concern; the source instead describes A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. The appropriate design is to retain and review the lock file and perform explicit provider version upgrades with plan testing. Confirm whether cI executions use deterministic reviewed provider selections across runs.
D:“Publish the required stable outputs or lookups through a governed interface rather than assuming root module state is shared” would address a different Terraform configuration concern; the source instead describes A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. The appropriate design is to retain and review the lock file and perform explicit provider version upgrades with plan testing. Confirm whether cI executions use deterministic reviewed provider selections across runs.
Question 182
A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. Before choosing a remedy, the team needs independent evidence of the actual root cause. Which TWO checks most directly test this case? (Select TWO.)
- Check the state snapshot timestamp and managed resource identities.
- Inspect the provider's resource documentation for supported operations.
- Inspect repository text and history for sensitive provider configuration fields.
- Compare committed lock changes with the approved upgrade request.
- Check the exact provider versions resolved in two consecutive CI runs.
Explanation
Correct Answers
D:This is directly relevant evidence for the reported behavior: Compare committed lock changes with the approved upgrade request. 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: Retain and review the lock file and perform explicit provider version upgrades with plan testing. The expected confirmation is CI executions use deterministic reviewed provider selections across runs.
E:This is directly relevant evidence for the reported behavior: Check the exact provider versions resolved in two consecutive CI runs. 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: Retain and review the lock file and perform explicit provider version upgrades with plan testing. The expected confirmation is CI executions use deterministic reviewed provider selections across runs.
Incorrect Answers
A:“Check the state snapshot timestamp and managed resource identities” would address a different Terraform configuration concern; the source instead describes A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. The appropriate design is to retain and review the lock file and perform explicit provider version upgrades with plan testing. Confirm whether cI executions use deterministic reviewed provider selections across runs.
B:“Inspect the provider's resource documentation for supported operations” would address a different Terraform configuration concern; the source instead describes A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. The appropriate design is to retain and review the lock file and perform explicit provider version upgrades with plan testing. Confirm whether cI executions use deterministic reviewed provider selections across runs.
C:“Inspect repository text and history for sensitive provider configuration fields” would address a different Terraform configuration concern; the source instead describes A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. The appropriate design is to retain and review the lock file and perform explicit provider version upgrades with plan testing. Confirm whether cI executions use deterministic reviewed provider selections across runs.
Question 183
A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Stale state can mislead incident response if assumed instantly current.
- State can expose credentials and resource topology even if CLI output is redacted.
- Default provider fallbacks may modify the wrong datacenter.
- Uncontrolled plugin upgrades can change planning behavior unexpectedly.
Explanation
Correct Answer
D:The reported condition creates the specific potential exposure: Uncontrolled plugin upgrades can change planning behavior unexpectedly. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Check the exact provider versions resolved in two consecutive CI runs. Second diagnostic: Compare committed lock changes with the approved upgrade request.
Incorrect Answers
A:“Stale state can mislead incident response if assumed instantly current” would address a different Terraform configuration concern; the source instead describes A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. The appropriate design is to retain and review the lock file and perform explicit provider version upgrades with plan testing. Confirm whether cI executions use deterministic reviewed provider selections across runs.
B:“State can expose credentials and resource topology even if CLI output is redacted” would address a different Terraform configuration concern; the source instead describes A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. The appropriate design is to retain and review the lock file and perform explicit provider version upgrades with plan testing. Confirm whether cI executions use deterministic reviewed provider selections across runs.
C:“Default provider fallbacks may modify the wrong datacenter” would address a different Terraform configuration concern; the source instead describes A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. The appropriate design is to retain and review the lock file and perform explicit provider version upgrades with plan testing. Confirm whether cI executions use deterministic reviewed provider selections across runs.
Question 184
A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Cache only trusted artifacts and do not skip initialization checks.
- Back up state and use controlled import when a mapping is lost.
- Install a legitimate provider release under a reviewed version constraint instead of modifying cached provider binaries.
- Require a code review for provider lock updates and test API changes.
- Retain and review the lock file and perform explicit provider version upgrades with plan testing.
Explanation
Correct Answers
D:This is one of the two necessary decisions for a safe design: Require a code review for provider lock updates and test API changes. Together the corrective action and its implementation safeguard need to address the recorded condition: A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. Acceptance requires CI executions use deterministic reviewed provider selections across runs.
E:This is one of the two necessary decisions for a safe design: Retain and review the lock file and perform explicit provider version upgrades with plan testing. Together the corrective action and its implementation safeguard need to address the recorded condition: A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. Acceptance requires CI executions use deterministic reviewed provider selections across runs.
Incorrect Answers
A:“Cache only trusted artifacts and do not skip initialization checks” would address a different Terraform configuration concern; the source instead describes A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. The appropriate design is to retain and review the lock file and perform explicit provider version upgrades with plan testing. Confirm whether cI executions use deterministic reviewed provider selections across runs.
B:“Back up state and use controlled import when a mapping is lost” would address a different Terraform configuration concern; the source instead describes A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. The appropriate design is to retain and review the lock file and perform explicit provider version upgrades with plan testing. Confirm whether cI executions use deterministic reviewed provider selections across runs.
C:“Install a legitimate provider release under a reviewed version constraint instead of modifying cached provider binaries” would address a different Terraform configuration concern; the source instead describes A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. The appropriate design is to retain and review the lock file and perform explicit provider version upgrades with plan testing. Confirm whether cI executions use deterministic reviewed provider selections across runs.
Question 185
A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. 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?
- One stack obtains the intended identifier while keeping state boundaries independent.
- CI executions use deterministic reviewed provider selections across runs.
- Operators distinguish last known state from live infrastructure observations.
- Supported runners verify the same intended provider build version without disabling signature checks.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: CI executions use deterministic reviewed provider selections across runs. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Require a code review for provider lock updates and test API changes.
Incorrect Answers
A:“One stack obtains the intended identifier while keeping state boundaries independent” would address a different Terraform configuration concern; the source instead describes A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. The appropriate design is to retain and review the lock file and perform explicit provider version upgrades with plan testing. Confirm whether cI executions use deterministic reviewed provider selections across runs.
C:“Operators distinguish last known state from live infrastructure observations” would address a different Terraform configuration concern; the source instead describes A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. The appropriate design is to retain and review the lock file and perform explicit provider version upgrades with plan testing. Confirm whether cI executions use deterministic reviewed provider selections across runs.
D:“Supported runners verify the same intended provider build version without disabling signature checks” would address a different Terraform configuration concern; the source instead describes A developer thinks Terraform providers can be upgraded safely by deleting the dependency lock file on every CI run. The appropriate design is to retain and review the lock file and perform explicit provider version upgrades with plan testing. Confirm whether cI executions use deterministic reviewed provider selections across runs.
Question 186
A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Protect state as sensitive infrastructure metadata regardless of sensitive flags on variables and outputs.
- Retain and review the lock file and perform explicit provider version upgrades with plan testing.
- Declare the child's expected provider aliases and pass provider mappings explicitly through the module call.
- Determine actual remote object ownership and maintain one Terraform resource address/state authority for it.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. It applies the design choice Determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Review the primary diagnostic: Compare provider remote IDs represented in both state files. The expected outcome is: Only one active configuration manages the shared firewall rule. The rollout safeguard is: Coordinate a controlled state move or import instead of both applying.
Incorrect Answers
A:“Protect state as sensitive infrastructure metadata regardless of sensitive flags on variables and outputs” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
B:“Retain and review the lock file and perform explicit provider version upgrades with plan testing” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
C:“Declare the child's expected provider aliases and pass provider mappings explicitly through the module call” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
Question 187
A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. Before choosing a remedy, the team needs independent evidence of the actual root cause. Which TWO checks most directly test this case? (Select TWO.)
- Compare provider remote IDs represented in both state files.
- Inspect the two plan outputs for conflicting changes against one API object.
- Inspect the state provider addresses for surviving resources.
- Inspect required_providers version constraints and committed lock-file selections.
- Inspect provider selection on the data block and expected region.
Explanation
Correct Answers
A:This is directly relevant evidence for the reported behavior: Compare provider remote IDs represented in both state files. 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: Determine actual remote object ownership and maintain one Terraform resource address/state authority for it. The expected confirmation is Only one active configuration manages the shared firewall rule.
B:This is directly relevant evidence for the reported behavior: Inspect the two plan outputs for conflicting changes against one API object. 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: Determine actual remote object ownership and maintain one Terraform resource address/state authority for it. The expected confirmation is Only one active configuration manages the shared firewall rule.
Incorrect Answers
C:“Inspect the state provider addresses for surviving resources” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
D:“Inspect required_providers version constraints and committed lock-file selections” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
E:“Inspect provider selection on the data block and expected region” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
Question 188
A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Removing provider configuration prematurely can prevent clean resource lifecycle operations.
- Stale state can mislead incident response if assumed instantly current.
- Duplicate state ownership can cause oscillating security rules.
- Duplicate local names can confuse provider address migration and resource targeting.
Explanation
Correct Answer
C:The reported condition creates the specific potential exposure: Duplicate state ownership can cause oscillating security rules. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Compare provider remote IDs represented in both state files. Second diagnostic: Inspect the two plan outputs for conflicting changes against one API object.
Incorrect Answers
A:“Removing provider configuration prematurely can prevent clean resource lifecycle operations” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
B:“Stale state can mislead incident response if assumed instantly current” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
D:“Duplicate local names can confuse provider address migration and resource targeting” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
Question 189
A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Determine actual remote object ownership and maintain one Terraform resource address/state authority for it.
- Coordinate a controlled state move or import instead of both applying.
- Validate provider support and distinguish external automation needs.
- Map affected resources explicitly to the intended provider instance and verify their target endpoint.
- Use named aliases with tests for expected account IDs.
Explanation
Correct Answers
A:This is one of the two necessary decisions for a safe design: Determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Together the corrective action and its implementation safeguard need to address the recorded condition: A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. Acceptance requires Only one active configuration manages the shared firewall rule.
B:This is one of the two necessary decisions for a safe design: Coordinate a controlled state move or import instead of both applying. Together the corrective action and its implementation safeguard need to address the recorded condition: A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. Acceptance requires Only one active configuration manages the shared firewall rule.
Incorrect Answers
C:“Validate provider support and distinguish external automation needs” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
D:“Map affected resources explicitly to the intended provider instance and verify their target endpoint” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
E:“Use named aliases with tests for expected account IDs” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
Question 190
A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. 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?
- Both Terraform CLI and providers use independently reviewed compatible versions.
- Only one active configuration manages the shared firewall rule.
- Managed resources are safely updated or decommissioned without orphaning provider bindings.
- Terraform runs authenticate using scoped identities with no secrets committed to code.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: Only one active configuration manages the shared firewall rule. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Coordinate a controlled state move or import instead of both applying.
Incorrect Answers
A:“Both Terraform CLI and providers use independently reviewed compatible versions” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
C:“Managed resources are safely updated or decommissioned without orphaning provider bindings” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
D:“Terraform runs authenticate using scoped identities with no secrets committed to code” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.