HashiCorp Terraform Associate Practice Test 28
Question 270
A financial team proposes a capacity change and wants an exact artifact of all planned infrastructure actions for a second authorized operator to apply later. 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?
- Only the previously reviewed exact plan actions are applied under appropriate permissions.
- The correct environment is targeted and unintended resources remain unaffected.
- CI flags improperly formatted files without silently modifying submitted changes.
- The analyst can test expressions without silently provisioning resources.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: Only the previously reviewed exact plan actions are applied under appropriate permissions. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Store plan artifacts securely because they may contain sensitive values.
Incorrect Answers
B:“The correct environment is targeted and unintended resources remain unaffected” would address a different Terraform configuration concern; the source instead describes A financial team proposes a capacity change and wants an exact artifact of all planned infrastructure actions for a second authorized operator to apply later. The appropriate design is to create a saved plan with terraform plan -out and apply that approved binary plan file after verifying it remains current. Confirm whether only the previously reviewed exact plan actions are applied under appropriate permissions.
C:“CI flags improperly formatted files without silently modifying submitted changes” would address a different Terraform configuration concern; the source instead describes A financial team proposes a capacity change and wants an exact artifact of all planned infrastructure actions for a second authorized operator to apply later. The appropriate design is to create a saved plan with terraform plan -out and apply that approved binary plan file after verifying it remains current. Confirm whether only the previously reviewed exact plan actions are applied under appropriate permissions.
D:“The analyst can test expressions without silently provisioning resources” would address a different Terraform configuration concern; the source instead describes A financial team proposes a capacity change and wants an exact artifact of all planned infrastructure actions for a second authorized operator to apply later. The appropriate design is to create a saved plan with terraform plan -out and apply that approved binary plan file after verifying it remains current. Confirm whether only the previously reviewed exact plan actions are applied under appropriate permissions.
Question 271
A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Regenerate and review the plan against current state rather than forcing an old binary plan through.
- Inspect complete plan actions including create, update, replace and delete, not only resource additions.
- Use fmt only for styling and use init plus validate for dependency and configuration checks.
- Treat terraform plan as a preview and use approved terraform apply to execute provider changes.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. It applies the design choice Treat terraform plan as a preview and use approved terraform apply to execute provider changes. Review the primary diagnostic: Inspect the plan's proposed resource change set. The expected outcome is: The database exists only after the authorized apply completes successfully. The rollout safeguard is: Require explicit approval of destructive actions before applying.
Incorrect Answers
A:“Regenerate and review the plan against current state rather than forcing an old binary plan through” would address a different Terraform configuration concern; the source instead describes A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. The appropriate design is to treat terraform plan as a preview and use approved terraform apply to execute provider changes. Confirm whether the database exists only after the authorized apply completes successfully.
B:“Inspect complete plan actions including create, update, replace and delete, not only resource additions” would address a different Terraform configuration concern; the source instead describes A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. The appropriate design is to treat terraform plan as a preview and use approved terraform apply to execute provider changes. Confirm whether the database exists only after the authorized apply completes successfully.
C:“Use fmt only for styling and use init plus validate for dependency and configuration checks” would address a different Terraform configuration concern; the source instead describes A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. The appropriate design is to treat terraform plan as a preview and use approved terraform apply to execute provider changes. Confirm whether the database exists only after the authorized apply completes successfully.
Question 272
A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. Before choosing a remedy, the team needs independent evidence of the actual root cause. Which TWO checks most directly test this case? (Select TWO.)
- Verify whether the apply log and resource state contain the database identity.
- Inspect current provider rules and stored state attributes.
- Inspect plan before/after values and replace action markers.
- Inspect the plan's proposed resource change set.
- Inspect the expression result from the interactive console.
Explanation
Correct Answers
A:This is directly relevant evidence for the reported behavior: Verify whether the apply log and resource state contain the database identity. 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: Treat terraform plan as a preview and use approved terraform apply to execute provider changes. The expected confirmation is The database exists only after the authorized apply completes successfully.
D:This is directly relevant evidence for the reported behavior: Inspect the plan's proposed resource change set. 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: Treat terraform plan as a preview and use approved terraform apply to execute provider changes. The expected confirmation is The database exists only after the authorized apply completes successfully.
Incorrect Answers
B:“Inspect current provider rules and stored state attributes” would address a different Terraform configuration concern; the source instead describes A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. The appropriate design is to treat terraform plan as a preview and use approved terraform apply to execute provider changes. Confirm whether the database exists only after the authorized apply completes successfully.
C:“Inspect plan before/after values and replace action markers” would address a different Terraform configuration concern; the source instead describes A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. The appropriate design is to treat terraform plan as a preview and use approved terraform apply to execute provider changes. Confirm whether the database exists only after the authorized apply completes successfully.
E:“Inspect the expression result from the interactive console” would address a different Terraform configuration concern; the source instead describes A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. The appropriate design is to treat terraform plan as a preview and use approved terraform apply to execute provider changes. Confirm whether the database exists only after the authorized apply completes successfully.
Question 273
A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Confusing expression evaluation with resource operations can bypass change process.
- Destroying from the wrong state can remove live production services.
- Mistaking planning for execution can leave critical services absent.
- Skipping initialization can leave required dependencies unavailable.
Explanation
Correct Answer
C:The reported condition creates the specific potential exposure: Mistaking planning for execution can leave critical services absent. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect the plan's proposed resource change set. Second diagnostic: Verify whether the apply log and resource state contain the database identity.
Incorrect Answers
A:“Confusing expression evaluation with resource operations can bypass change process” would address a different Terraform configuration concern; the source instead describes A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. The appropriate design is to treat terraform plan as a preview and use approved terraform apply to execute provider changes. Confirm whether the database exists only after the authorized apply completes successfully.
B:“Destroying from the wrong state can remove live production services” would address a different Terraform configuration concern; the source instead describes A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. The appropriate design is to treat terraform plan as a preview and use approved terraform apply to execute provider changes. Confirm whether the database exists only after the authorized apply completes successfully.
D:“Skipping initialization can leave required dependencies unavailable” would address a different Terraform configuration concern; the source instead describes A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. The appropriate design is to treat terraform plan as a preview and use approved terraform apply to execute provider changes. Confirm whether the database exists only after the authorized apply completes successfully.
Question 274
A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Run a read-only plan that refreshes provider observations and review the resulting drift versus configuration.
- Stage capacity and verify traffic cutover prior to replacement.
- Treat terraform plan as a preview and use approved terraform apply to execute provider changes.
- Require explicit approval of destructive actions before applying.
- Bind artifact, commit and variable source in one immutable release.
Explanation
Correct Answers
C:This is one of the two necessary decisions for a safe design: Treat terraform plan as a preview and use approved terraform apply to execute provider changes. Together the corrective action and its implementation safeguard need to address the recorded condition: A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. Acceptance requires The database exists only after the authorized apply completes successfully.
D:This is one of the two necessary decisions for a safe design: Require explicit approval of destructive actions before applying. Together the corrective action and its implementation safeguard need to address the recorded condition: A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. Acceptance requires The database exists only after the authorized apply completes successfully.
Incorrect Answers
A:“Run a read-only plan that refreshes provider observations and review the resulting drift versus configuration” would address a different Terraform configuration concern; the source instead describes A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. The appropriate design is to treat terraform plan as a preview and use approved terraform apply to execute provider changes. Confirm whether the database exists only after the authorized apply completes successfully.
B:“Stage capacity and verify traffic cutover prior to replacement” would address a different Terraform configuration concern; the source instead describes A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. The appropriate design is to treat terraform plan as a preview and use approved terraform apply to execute provider changes. Confirm whether the database exists only after the authorized apply completes successfully.
E:“Bind artifact, commit and variable source in one immutable release” would address a different Terraform configuration concern; the source instead describes A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. The appropriate design is to treat terraform plan as a preview and use approved terraform apply to execute provider changes. Confirm whether the database exists only after the authorized apply completes successfully.
Question 275
A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. 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 executable plan can be applied without recomputing a different configuration.
- Nonconforming names are rejected before apply rather than merely prettified.
- The database exists only after the authorized apply completes successfully.
- Approval decisions account for every infrastructure action category.
Explanation
Correct Answer
C:This is the appropriate measurable post-change acceptance criterion: The database exists only after the authorized apply completes successfully. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Require explicit approval of destructive actions before applying.
Incorrect Answers
A:“The approved executable plan can be applied without recomputing a different configuration” would address a different Terraform configuration concern; the source instead describes A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. The appropriate design is to treat terraform plan as a preview and use approved terraform apply to execute provider changes. Confirm whether the database exists only after the authorized apply completes successfully.
B:“Nonconforming names are rejected before apply rather than merely prettified” would address a different Terraform configuration concern; the source instead describes A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. The appropriate design is to treat terraform plan as a preview and use approved terraform apply to execute provider changes. Confirm whether the database exists only after the authorized apply completes successfully.
D:“Approval decisions account for every infrastructure action category” would address a different Terraform configuration concern; the source instead describes A project manager asks why terraform plan did not create the requested database after the command printed a proposed create action. The appropriate design is to treat terraform plan as a preview and use approved terraform apply to execute provider changes. Confirm whether the database exists only after the authorized apply completes successfully.
Question 276
A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Assess state ownership and external dependencies, then review an explicit teardown plan before decommissioning.
- Distinguish backend reconfiguration from state migration and choose an explicit authorized terraform init mode.
- Use fmt only for styling and use init plus validate for dependency and configuration checks.
- Require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. It applies the design choice Require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Review the primary diagnostic: Inspect CI approval evidence and the exact configuration revision applied. The expected outcome is: Automation runs without prompts only after separate accountable change authorization. The rollout safeguard is: Use least-privilege CI identity and preserved audit logs.
Incorrect Answers
A:“Assess state ownership and external dependencies, then review an explicit teardown plan before decommissioning” would address a different Terraform configuration concern; the source instead describes A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. The appropriate design is to require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Confirm whether automation runs without prompts only after separate accountable change authorization.
B:“Distinguish backend reconfiguration from state migration and choose an explicit authorized terraform init mode” would address a different Terraform configuration concern; the source instead describes A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. The appropriate design is to require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Confirm whether automation runs without prompts only after separate accountable change authorization.
C:“Use fmt only for styling and use init plus validate for dependency and configuration checks” would address a different Terraform configuration concern; the source instead describes A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. The appropriate design is to require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Confirm whether automation runs without prompts only after separate accountable change authorization.
Question 277
A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. 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 the plan's proposed resource change set.
- Inspect the expression result from the interactive console.
- Review the generated plan for destructive or access-impacting actions.
- Inspect CI approval evidence and the exact configuration revision applied.
- Inspect the saved plan output and proposed create/update/destroy summary.
Explanation
Correct Answers
C:This is directly relevant evidence for the reported behavior: Review the generated plan for destructive or access-impacting actions. 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: Require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. The expected confirmation is Automation runs without prompts only after separate accountable change authorization.
D:This is directly relevant evidence for the reported behavior: Inspect CI approval evidence and the exact configuration revision applied. 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: Require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. The expected confirmation is Automation runs without prompts only after separate accountable change authorization.
Incorrect Answers
A:“Inspect the plan's proposed resource change set” would address a different Terraform configuration concern; the source instead describes A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. The appropriate design is to require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Confirm whether automation runs without prompts only after separate accountable change authorization.
B:“Inspect the expression result from the interactive console” would address a different Terraform configuration concern; the source instead describes A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. The appropriate design is to require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Confirm whether automation runs without prompts only after separate accountable change authorization.
E:“Inspect the saved plan output and proposed create/update/destroy summary” would address a different Terraform configuration concern; the source instead describes A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. The appropriate design is to require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Confirm whether automation runs without prompts only after separate accountable change authorization.
Question 278
A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Auto approval does not reduce the danger of an incorrect infrastructure plan.
- Skipping initialization can leave required dependencies unavailable.
- Automatic CI rewrites can conceal unreviewed configuration diffs.
- Deleting state loses all resource bindings and may cause uncontrolled duplicates.
Explanation
Correct Answer
A:The reported condition creates the specific potential exposure: Auto approval does not reduce the danger of an incorrect infrastructure plan. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect CI approval evidence and the exact configuration revision applied. Second diagnostic: Review the generated plan for destructive or access-impacting actions.
Incorrect Answers
B:“Skipping initialization can leave required dependencies unavailable” would address a different Terraform configuration concern; the source instead describes A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. The appropriate design is to require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Confirm whether automation runs without prompts only after separate accountable change authorization.
C:“Automatic CI rewrites can conceal unreviewed configuration diffs” would address a different Terraform configuration concern; the source instead describes A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. The appropriate design is to require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Confirm whether automation runs without prompts only after separate accountable change authorization.
D:“Deleting state loses all resource bindings and may cause uncontrolled duplicates” would address a different Terraform configuration concern; the source instead describes A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. The appropriate design is to require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Confirm whether automation runs without prompts only after separate accountable change authorization.
Question 279
A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Use terraform plan -detailed-exitcode with explicit handling of codes zero, two and one.
- Require environment checks and plan review before apply.
- Require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute.
- Use least-privilege CI identity and preserved audit logs.
- Test policy and custom conditions on valid and invalid inputs.
Explanation
Correct Answers
C:This is one of the two necessary decisions for a safe design: Require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Together the corrective action and its implementation safeguard need to address the recorded condition: A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. Acceptance requires Automation runs without prompts only after separate accountable change authorization.
D:This is one of the two necessary decisions for a safe design: Use least-privilege CI identity and preserved audit logs. Together the corrective action and its implementation safeguard need to address the recorded condition: A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. Acceptance requires Automation runs without prompts only after separate accountable change authorization.
Incorrect Answers
A:“Use terraform plan -detailed-exitcode with explicit handling of codes zero, two and one” would address a different Terraform configuration concern; the source instead describes A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. The appropriate design is to require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Confirm whether automation runs without prompts only after separate accountable change authorization.
B:“Require environment checks and plan review before apply” would address a different Terraform configuration concern; the source instead describes A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. The appropriate design is to require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Confirm whether automation runs without prompts only after separate accountable change authorization.
E:“Test policy and custom conditions on valid and invalid inputs” would address a different Terraform configuration concern; the source instead describes A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. The appropriate design is to require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Confirm whether automation runs without prompts only after separate accountable change authorization.
Question 280
A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. 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 working directory initializes cleanly before validation and planning.
- Automation runs without prompts only after separate accountable change authorization.
- The new plan matches the current infrastructure and approved configuration.
- Invalid inputs are rejected before a risky provisioning attempt.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: Automation runs without prompts only after separate accountable change authorization. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Use least-privilege CI identity and preserved audit logs.
Incorrect Answers
A:“The working directory initializes cleanly before validation and planning” would address a different Terraform configuration concern; the source instead describes A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. The appropriate design is to require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Confirm whether automation runs without prompts only after separate accountable change authorization.
C:“The new plan matches the current infrastructure and approved configuration” would address a different Terraform configuration concern; the source instead describes A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. The appropriate design is to require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Confirm whether automation runs without prompts only after separate accountable change authorization.
D:“Invalid inputs are rejected before a risky provisioning attempt” would address a different Terraform configuration concern; the source instead describes A developer runs terraform apply -auto-approve against a shared production root merely to suppress interactive prompts in a nightly workflow. The appropriate design is to require a controlled automated approval gate with a reviewed plan artifact rather than using the flag as an authorization substitute. Confirm whether automation runs without prompts only after separate accountable change authorization.