HashiCorp Terraform Associate 004 Exam Dumps, Practice Test Questions

100% Latest & Updated HashiCorp Terraform Associate 004 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!

HashiCorp Terraform Associate 004 Premium Bundle
$64.98
$54.98

Terraform Associate 004 Premium Bundle

  • Premium File: 167 Questions & Answers. Last update: Nov 9, 2026
  • Study Guide: 285 Pages
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates

Terraform Associate 004 Premium Bundle

HashiCorp Terraform Associate 004 Premium Bundle
  • Premium File: 167 Questions & Answers. Last update: Nov 9, 2026
  • Study Guide: 285 Pages
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates
$64.98
$54.98

HashiCorp Terraform Associate 004 Practice Test 56

Question 550

A Terraform platform team is coordinating 3 independent decisions. Workstream A: A governance team wants to prevent deployments of cloud resources that violate a mandatory tagging policy after plan evaluation. and Workstream B: A compliance team wants to distinguish an empty Terraform plan from one with material changes in automation. and Workstream C: A short-lived token must be used during an operation, and auditors require that the token not be written to a plan file. Select exactly 3 actions, one addressing each distinct workstream.

  1. Expect the default local backend to manage a terraform.tfstate file in the working directory.
  2. Declare separate supported Kubernetes and DNS providers and use their respective resource types in the same root module.
  3. Interpret the refreshed plan as detected drift and decide whether to restore declared tags or intentionally update configuration.
  4. Use an ephemeral input value in an allowed Terraform ephemeral context, such as a supported provider configuration.
  5. Run terraform plan -detailed-exitcode and interpret 0 as no changes, 2 as changes, and 1 as error.
  6. Attach an appropriate policy set to relevant HCP workspaces and configure an enforcement level that blocks noncompliant applies.

Explanation

Correct Answers

D:

For the workstream in which a short-lived token must be used during an operation, and auditors require that the token not be written to a plan file, use this action: Use an ephemeral input value in an allowed Terraform ephemeral context, such as a supported provider configuration. Ephemeral variable semantics deliberately limit where transient values may flow. Verify: The ephemeral value is supplied for the operation but omitted from saved state and plan data. Limitation: Ephemeral values have context restrictions and cannot be inserted into arbitrary persistent expressions.

E:

For the workstream in which a compliance team wants to distinguish an empty Terraform plan from one with material changes in automation, use this action: Run terraform plan -detailed-exitcode and interpret 0 as no changes, 2 as changes, and 1 as error. Detailed exit codes let automation distinguish successful plans with and without changes. Verify: CI captures and classifies the command exit code separately from console prose. Limitation: The exit-code classification describes planned changes, not their risk or policy approval.

F:

For the workstream in which a governance team wants to prevent deployments of cloud resources that violate a mandatory tagging policy after plan evaluation, use this action: Attach an appropriate policy set to relevant HCP workspaces and configure an enforcement level that blocks noncompliant applies. HCP policy sets integrate governance checks into the run workflow. Verify: A test run violating the rule is stopped at policy evaluation unless an explicitly permitted override applies. Limitation: Policy scope, policy language, and override semantics must be understood for the organization.

Incorrect Answers

A:

This action is appropriate instead for a different, unlisted requirement: A developer uses a fresh local Terraform directory with no backend block and asks where state will be written after apply. It would be checked by: A successful local apply creates or updates a locally persisted state snapshot for the selected workspace. None of the 3 specified workstreams calls for this action; their correct choices directly solve the identified cases.

B:

This action is appropriate instead for a different, unlisted requirement: A newly created project uses both a Kubernetes cluster and cloud DNS records, and the same release should manage them coherently. It would be checked by: The plan shows objects from both provider schemas and does not misroute requests across APIs. None of the 3 specified workstreams calls for this action; their correct choices directly solve the identified cases.

C:

This action is appropriate instead for a different, unlisted requirement: An operations team edits cloud VM tags manually, and normal Terraform plan shows an unexpected change even though HCL has not changed. It would be checked by: The reviewed plan explains which observed remote attributes differ from desired HCL. None of the 3 specified workstreams calls for this action; their correct choices directly solve the identified cases.

Question 551

An infrastructure team faces this specific situation: A security team wants engineers to see policy violations without initially blocking learning-environment applies. Which Terraform action most directly satisfies the requirement?

  1. Create an HCP Terraform workspace and configure an appropriate remote execution workflow with secure credentials.
  2. Use an advisory policy enforcement setting on the learning workspaces and monitor the warnings.
  3. Back up state, configure HCP cloud integration, and follow the prompted state migration during initialization.
  4. Configure the workspace's VCS connection, working directory, and run triggers for the intended branch.

Explanation

Correct Answer

B:

Use an advisory policy enforcement setting on the learning workspaces and monitor the warnings. Advisory policies surface governance guidance without being mandatory blockers. Verify: Violating plans produce visible advisory policy findings while runs remain allowed to continue. Limitation: Advisory is not the right choice for mandatory production enforcement requirements.

Incorrect Answers

A:

This is linked to a different situation: A small team needs managed Terraform state and remotely executed infrastructure runs with shared visibility rather than running only from laptops. There the relevant decision is: Create an HCP Terraform workspace and configure an appropriate remote execution workflow with secure credentials. For the question's actual requirement — A security team wants engineers to see policy violations without initially blocking learning-environment applies. — the specifically relevant decision is: Use an advisory policy enforcement setting on the learning workspaces and monitor the warnings. It would therefore not resolve or assess the case as stated.

C:

This is linked to a different situation: A team is migrating existing local state into HCP Terraform and wants to avoid accidental duplicate resource creation. There the relevant decision is: Back up state, configure HCP cloud integration, and follow the prompted state migration during initialization. For the question's actual requirement — A security team wants engineers to see policy violations without initially blocking learning-environment applies. — the specifically relevant decision is: Use an advisory policy enforcement setting on the learning workspaces and monitor the warnings. It would therefore not resolve or assess the case as stated.

D:

This is linked to a different situation: A development team connects one infrastructure repository to an HCP Terraform workspace and expects reviewed commits to trigger plans. There the relevant decision is: Configure the workspace's VCS connection, working directory, and run triggers for the intended branch. For the question's actual requirement — A security team wants engineers to see policy violations without initially blocking learning-environment applies. — the specifically relevant decision is: Use an advisory policy enforcement setting on the learning workspaces and monitor the warnings. It would therefore not resolve or assess the case as stated.

Question 552

A reviewer is confirming a change for the following use case: A security team wants engineers to see policy violations without initially blocking learning-environment applies. The implementation follows this approach: Use an advisory policy enforcement setting on the learning workspaces and monitor the warnings. Which observation or acceptance test most directly verifies the intended result?

  1. Violating plans produce visible advisory policy findings while runs remain allowed to continue.
  2. A controlled run obtains temporary credentials and succeeds without storing static long-lived keys in workspace variables.
  3. The HCP workspace contains the existing managed addresses after migration and normal plan does not re-create all resources.
  4. CLI commands authenticate to the correct HCP organization/workspace and work with managed remote state.

Explanation

Correct Answer

A:

Acceptance evidence: Violating plans produce visible advisory policy findings while runs remain allowed to continue. It validates the proposed action, use an advisory policy enforcement setting on the learning workspaces and monitor the warnings, because advisory policies surface governance guidance without being mandatory blockers. Remaining limitation: Advisory is not the right choice for mandatory production enforcement requirements.

Incorrect Answers

B:

This is linked to a different situation: A company wants credential access for runs to be short-lived rather than distributing long-lived cloud keys to every workspace. There the relevant acceptance is: A controlled run obtains temporary credentials and succeeds without storing static long-lived keys in workspace variables. For the question's actual requirement — A security team wants engineers to see policy violations without initially blocking learning-environment applies. — the specifically relevant acceptance is: Violating plans produce visible advisory policy findings while runs remain allowed to continue. It would therefore not resolve or assess the case as stated.

C:

This is linked to a different situation: A team is migrating existing local state into HCP Terraform and wants to avoid accidental duplicate resource creation. There the relevant acceptance is: The HCP workspace contains the existing managed addresses after migration and normal plan does not re-create all resources. For the question's actual requirement — A security team wants engineers to see policy violations without initially blocking learning-environment applies. — the specifically relevant acceptance is: Violating plans produce visible advisory policy findings while runs remain allowed to continue. It would therefore not resolve or assess the case as stated.

D:

This is linked to a different situation: A local Terraform root must be connected to a specific HCP Terraform workspace without storing an API token in version control. There the relevant acceptance is: CLI commands authenticate to the correct HCP organization/workspace and work with managed remote state. For the question's actual requirement — A security team wants engineers to see policy violations without initially blocking learning-environment applies. — the specifically relevant acceptance is: Violating plans produce visible advisory policy findings while runs remain allowed to continue. It would therefore not resolve or assess the case as stated.

Question 553

Consider a proposed solution for this requirement: A security team wants engineers to see policy violations without initially blocking learning-environment applies. The team plans to do the following: Use an advisory policy enforcement setting on the learning workspaces and monitor the warnings. Which limitation or operational caveat must remain in the review?

  1. In a monorepo, trigger paths should prevent unrelated folder changes from creating unnecessary runs.
  2. The working directory cannot combine cloud and backend blocks, and authentication remains required.
  3. Advisory is not the right choice for mandatory production enforcement requirements.
  4. Run creation and apply still require proper permissions and policy checks.

Explanation

Correct Answer

C:

The limitation is advisory is not the right choice for mandatory production enforcement requirements. The proposed change is use an advisory policy enforcement setting on the learning workspaces and monitor the warnings. Validate it by checking violating plans produce visible advisory policy findings while runs remain allowed to continue. Advisory policies surface governance guidance without being mandatory blockers.

Incorrect Answers

A:

This is linked to a different situation: A development team connects one infrastructure repository to an HCP Terraform workspace and expects reviewed commits to trigger plans. There the relevant limitation is: In a monorepo, trigger paths should prevent unrelated folder changes from creating unnecessary runs. For the question's actual requirement — A security team wants engineers to see policy violations without initially blocking learning-environment applies. — the specifically relevant limitation is: Advisory is not the right choice for mandatory production enforcement requirements. It would therefore not resolve or assess the case as stated.

B:

This is linked to a different situation: A workstation has Terraform CLI installed but a team wants the local CLI to invoke HCP Terraform remote runs and manage state. There the relevant limitation is: The working directory cannot combine cloud and backend blocks, and authentication remains required. For the question's actual requirement — A security team wants engineers to see policy violations without initially blocking learning-environment applies. — the specifically relevant limitation is: Advisory is not the right choice for mandatory production enforcement requirements. It would therefore not resolve or assess the case as stated.

D:

This is linked to a different situation: An automation tool needs to submit a Terraform plan without relying on a VCS webhook workflow. There the relevant limitation is: Run creation and apply still require proper permissions and policy checks. For the question's actual requirement — A security team wants engineers to see policy violations without initially blocking learning-environment applies. — the specifically relevant limitation is: Advisory is not the right choice for mandatory production enforcement requirements. It would therefore not resolve or assess the case as stated.

Question 554

The team is reviewing a Terraform implementation for this case: A security team wants engineers to see policy violations without initially blocking learning-environment applies. Which tempting assumption would be specifically incorrect for this proposed implementation?

  1. Set every workspace to run on any repository push and expect monorepo changes never create duplicate runs.
  2. Assume two workspaces share one state file simply because a run trigger connects them.
  3. Assume every push to an unrelated repository automatically starts an HCP run without a VCS connection.
  4. Mark a policy advisory and assume it can never permit a noncompliant apply.

Explanation

Correct Answer

D:

Reject the assumption: Mark a policy advisory and assume it can never permit a noncompliant apply. Instead, use an advisory policy enforcement setting on the learning workspaces and monitor the warnings. Advisory policies surface governance guidance without being mandatory blockers. Acceptance evidence: Violating plans produce visible advisory policy findings while runs remain allowed to continue.

Incorrect Answers

A:

This is linked to a different situation: A company uses one VCS monorepo for several independent Terraform root directories and wants each to run only when relevant files change. There the relevant misconception is: Set every workspace to run on any repository push and expect monorepo changes never create duplicate runs. For the question's actual requirement — A security team wants engineers to see policy violations without initially blocking learning-environment applies. — the specifically relevant misconception is: Mark a policy advisory and assume it can never permit a noncompliant apply. It would therefore not resolve or assess the case as stated.

B:

This is linked to a different situation: A team needs one shared network workspace to finish before dependent application workspaces start their own updates. There the relevant misconception is: Assume two workspaces share one state file simply because a run trigger connects them. For the question's actual requirement — A security team wants engineers to see policy violations without initially blocking learning-environment applies. — the specifically relevant misconception is: Mark a policy advisory and assume it can never permit a noncompliant apply. It would therefore not resolve or assess the case as stated.

C:

This is linked to a different situation: A development team connects one infrastructure repository to an HCP Terraform workspace and expects reviewed commits to trigger plans. There the relevant misconception is: Assume every push to an unrelated repository automatically starts an HCP run without a VCS connection. For the question's actual requirement — A security team wants engineers to see policy violations without initially blocking learning-environment applies. — the specifically relevant misconception is: Mark a policy advisory and assume it can never permit a noncompliant apply. It would therefore not resolve or assess the case as stated.

Question 555

A Terraform platform team is coordinating 2 independent decisions. Workstream A: A security team wants engineers to see policy violations without initially blocking learning-environment applies. and Workstream B: A deployment operator needs to replace a single degraded instance deliberately while keeping its resource address. Select exactly 2 actions, one addressing each distinct workstream.

  1. Inspect terraform plan -replace=ADDRESS and review any downstream dependencies before applying.
  2. Use an advisory policy enforcement setting on the learning workspaces and monitor the warnings.
  3. Review the HCL change through version control and inspect a Terraform execution plan before authorized apply.
  4. Use terraform show -json on the state or saved plan with proper access controls.
  5. Declare resources through separate compatible providers in one Terraform configuration, with references for dependencies.

Explanation

Correct Answers

A:

For the workstream in which a deployment operator needs to replace a single degraded instance deliberately while keeping its resource address, use this action: Inspect terraform plan -replace=ADDRESS and review any downstream dependencies before applying. The -replace option makes a targeted replacement intent explicit in the plan. Verify: The proposed plan marks that particular resource instance for replacement. Limitation: Replacement may cause disruption and require associated dependent changes; it is not a read-only fix.

B:

For the workstream in which a security team wants engineers to see policy violations without initially blocking learning-environment applies, use this action: Use an advisory policy enforcement setting on the learning workspaces and monitor the warnings. Advisory policies surface governance guidance without being mandatory blockers. Verify: Violating plans produce visible advisory policy findings while runs remain allowed to continue. Limitation: Advisory is not the right choice for mandatory production enforcement requirements.

Incorrect Answers

C:

This option addresses a separate requirement: An operations group wants four engineers to propose a subnet change without all four immediately modifying production. Evidence for that other requirement would be a pull request includes configuration differences and a plan describing expected resource mutations; neither listed workstream asks for it.

D:

This option addresses a separate requirement: An engineer wants a machine-readable view of the current Terraform state while building an inventory report. Evidence for that other requirement would be the JSON structure can be parsed for relevant addresses and outputs by authorized tooling; neither listed workstream asks for it.

E:

This option addresses a separate requirement: A logistics firm needs a private data-center virtual machine and a public-cloud DNS record managed from one reviewed release. Evidence for that other requirement would be a single plan lists the intended private and public resource actions under their respective providers; neither listed workstream asks for it.

Question 556

An infrastructure team faces this specific situation: A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. Which Terraform action most directly satisfies the requirement?

  1. Assign appropriate HCP Terraform team permissions at the workspace or project level for read versus apply actions.
  2. Configure the workspace's VCS connection, working directory, and run triggers for the intended branch.
  3. Configure a valid cloud block for the organization/workspace and authenticate with terraform login.
  4. Use a supported HCP Terraform API-driven workflow and upload a configuration version to the intended workspace.

Explanation

Correct Answer

A:

Assign appropriate HCP Terraform team permissions at the workspace or project level for read versus apply actions. Team and project permissions provide separation of duties for collaborative infrastructure changes. Verify: Reviewers can inspect plans and run history while only authorized teams can approve applies. Limitation: Permissions are additive across organizational scopes, so wider grants can override intended narrow restrictions.

Incorrect Answers

B:

This is linked to a different situation: A development team connects one infrastructure repository to an HCP Terraform workspace and expects reviewed commits to trigger plans. There the relevant decision is: Configure the workspace's VCS connection, working directory, and run triggers for the intended branch. For the question's actual requirement — A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. — the specifically relevant decision is: Assign appropriate HCP Terraform team permissions at the workspace or project level for read versus apply actions. It would therefore not resolve or assess the case as stated.

C:

This is linked to a different situation: A workstation has Terraform CLI installed but a team wants the local CLI to invoke HCP Terraform remote runs and manage state. There the relevant decision is: Configure a valid cloud block for the organization/workspace and authenticate with terraform login. For the question's actual requirement — A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. — the specifically relevant decision is: Assign appropriate HCP Terraform team permissions at the workspace or project level for read versus apply actions. It would therefore not resolve or assess the case as stated.

D:

This is linked to a different situation: An automation tool needs to submit a Terraform plan without relying on a VCS webhook workflow. There the relevant decision is: Use a supported HCP Terraform API-driven workflow and upload a configuration version to the intended workspace. For the question's actual requirement — A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. — the specifically relevant decision is: Assign appropriate HCP Terraform team permissions at the workspace or project level for read versus apply actions. It would therefore not resolve or assess the case as stated.

Question 557

A reviewer is confirming a change for the following use case: A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. The implementation follows this approach: Assign appropriate HCP Terraform team permissions at the workspace or project level for read versus apply actions. Which observation or acceptance test most directly verifies the intended result?

  1. Reviewers can inspect plans and run history while only authorized teams can approve applies.
  2. A relevant commit produces a workspace run and pull requests can show speculative plans if configured.
  3. The HCP workspace contains the existing managed addresses after migration and normal plan does not re-create all resources.
  4. A successful upstream application can queue the configured downstream workspace run.

Explanation

Correct Answer

A:

Acceptance evidence: Reviewers can inspect plans and run history while only authorized teams can approve applies. It validates the proposed action, assign appropriate HCP Terraform team permissions at the workspace or project level for read versus apply actions, because team and project permissions provide separation of duties for collaborative infrastructure changes. Remaining limitation: Permissions are additive across organizational scopes, so wider grants can override intended narrow restrictions.

Incorrect Answers

B:

This is linked to a different situation: A development team connects one infrastructure repository to an HCP Terraform workspace and expects reviewed commits to trigger plans. There the relevant acceptance is: A relevant commit produces a workspace run and pull requests can show speculative plans if configured. For the question's actual requirement — A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. — the specifically relevant acceptance is: Reviewers can inspect plans and run history while only authorized teams can approve applies. It would therefore not resolve or assess the case as stated.

C:

This is linked to a different situation: A team is migrating existing local state into HCP Terraform and wants to avoid accidental duplicate resource creation. There the relevant acceptance is: The HCP workspace contains the existing managed addresses after migration and normal plan does not re-create all resources. For the question's actual requirement — A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. — the specifically relevant acceptance is: Reviewers can inspect plans and run history while only authorized teams can approve applies. It would therefore not resolve or assess the case as stated.

D:

This is linked to a different situation: A team needs one shared network workspace to finish before dependent application workspaces start their own updates. There the relevant acceptance is: A successful upstream application can queue the configured downstream workspace run. For the question's actual requirement — A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. — the specifically relevant acceptance is: Reviewers can inspect plans and run history while only authorized teams can approve applies. It would therefore not resolve or assess the case as stated.

Question 558

Consider a proposed solution for this requirement: A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. The team plans to do the following: Assign appropriate HCP Terraform team permissions at the workspace or project level for read versus apply actions. Which limitation or operational caveat must remain in the review?

  1. Permissions are additive across organizational scopes, so wider grants can override intended narrow restrictions.
  2. In a monorepo, trigger paths should prevent unrelated folder changes from creating unnecessary runs.
  3. Workspace configuration and execution permissions must be set before production runs can be trusted.
  4. A team may receive broader organization grants; confirm effective permissions after assigning project roles.

Explanation

Correct Answer

A:

The limitation is permissions are additive across organizational scopes, so wider grants can override intended narrow restrictions. The proposed change is assign appropriate HCP Terraform team permissions at the workspace or project level for read versus apply actions. Validate it by checking reviewers can inspect plans and run history while only authorized teams can approve applies. Team and project permissions provide separation of duties for collaborative infrastructure changes.

Incorrect Answers

B:

This is linked to a different situation: A development team connects one infrastructure repository to an HCP Terraform workspace and expects reviewed commits to trigger plans. There the relevant limitation is: In a monorepo, trigger paths should prevent unrelated folder changes from creating unnecessary runs. For the question's actual requirement — A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. — the specifically relevant limitation is: Permissions are additive across organizational scopes, so wider grants can override intended narrow restrictions. It would therefore not resolve or assess the case as stated.

C:

This is linked to a different situation: A small team needs managed Terraform state and remotely executed infrastructure runs with shared visibility rather than running only from laptops. There the relevant limitation is: Workspace configuration and execution permissions must be set before production runs can be trusted. For the question's actual requirement — A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. — the specifically relevant limitation is: Permissions are additive across organizational scopes, so wider grants can override intended narrow restrictions. It would therefore not resolve or assess the case as stated.

D:

This is linked to a different situation: An organization has dozens of workspaces for finance and research teams with distinct access requirements. There the relevant limitation is: A team may receive broader organization grants; confirm effective permissions after assigning project roles. For the question's actual requirement — A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. — the specifically relevant limitation is: Permissions are additive across organizational scopes, so wider grants can override intended narrow restrictions. It would therefore not resolve or assess the case as stated.

Question 559

The team is reviewing a Terraform implementation for this case: A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. Which tempting assumption would be specifically incorrect for this proposed implementation?

  1. Assume a read-only team can apply changes merely because it can inspect the plan.
  2. Set every workspace to run on any repository push and expect monorepo changes never create duplicate runs.
  3. Put the user API token directly into source-controlled HCL as the required login mechanism.
  4. Expect only VCS-initiated commits to be capable of launching HCP Terraform runs.

Explanation

Correct Answer

A:

Reject the assumption: Assume a read-only team can apply changes merely because it can inspect the plan. Instead, assign appropriate HCP Terraform team permissions at the workspace or project level for read versus apply actions. Team and project permissions provide separation of duties for collaborative infrastructure changes. Acceptance evidence: Reviewers can inspect plans and run history while only authorized teams can approve applies.

Incorrect Answers

B:

This is linked to a different situation: A company uses one VCS monorepo for several independent Terraform root directories and wants each to run only when relevant files change. There the relevant misconception is: Set every workspace to run on any repository push and expect monorepo changes never create duplicate runs. For the question's actual requirement — A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. — the specifically relevant misconception is: Assume a read-only team can apply changes merely because it can inspect the plan. It would therefore not resolve or assess the case as stated.

C:

This is linked to a different situation: A local Terraform root must be connected to a specific HCP Terraform workspace without storing an API token in version control. There the relevant misconception is: Put the user API token directly into source-controlled HCL as the required login mechanism. For the question's actual requirement — A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. — the specifically relevant misconception is: Assume a read-only team can apply changes merely because it can inspect the plan. It would therefore not resolve or assess the case as stated.

D:

This is linked to a different situation: An automation tool needs to submit a Terraform plan without relying on a VCS webhook workflow. There the relevant misconception is: Expect only VCS-initiated commits to be capable of launching HCP Terraform runs. For the question's actual requirement — A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. — the specifically relevant misconception is: Assume a read-only team can apply changes merely because it can inspect the plan. It would therefore not resolve or assess the case as stated.

Question 560

A Terraform platform team is coordinating 3 independent decisions. Workstream A: A compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes. and Workstream B: A signed-off infrastructure change has a saved plan artifact and the team needs to execute exactly that reviewed action set. and Workstream C: A shared platform module is stored in the Terraform public registry and teams need to invoke it without copying the repository contents. Select exactly 3 actions, one addressing each distinct workstream.

  1. Run terraform apply release.tfplan under authorized credentials and the correct backend.
  2. Assign appropriate HCP Terraform team permissions at the workspace or project level for read versus apply actions.
  3. Commit .terraform.lock.hcl and use required_providers version constraints to keep provider selection reproducible.
  4. Use a module block whose source specifies the documented Terraform Registry namespace, name, and provider.
  5. Declare configuration_aliases in the child and pass the intended configurations through module.providers.
  6. Choose an appropriate set(number) input type for distinct port values.

Explanation

Correct Answers

A:

For the workstream in which a signed-off infrastructure change has a saved plan artifact and the team needs to execute exactly that reviewed action set, use this action: Run terraform apply release.tfplan under authorized credentials and the correct backend. Applying the saved plan is the execution phase of the approved workflow. Verify: Terraform performs the saved proposed resource actions and updates state when successful. Limitation: Sensitive plan files require protection; a changed state can invalidate an old plan.

B:

For the workstream in which a compliance team needs centralized access control so reviewers can view runs but only deployers can approve infrastructure changes, use this action: Assign appropriate HCP Terraform team permissions at the workspace or project level for read versus apply actions. Team and project permissions provide separation of duties for collaborative infrastructure changes. Verify: Reviewers can inspect plans and run history while only authorized teams can approve applies. Limitation: Permissions are additive across organizational scopes, so wider grants can override intended narrow restrictions.

D:

For the workstream in which a shared platform module is stored in the Terraform public registry and teams need to invoke it without copying the repository contents, use this action: Use a module block whose source specifies the documented Terraform Registry namespace, name, and provider. Module source tells Terraform where to obtain reusable child configuration. Verify: terraform init downloads the appropriate registry module and the child resources appear in the plan. Limitation: Module source selection does not configure credentials or automatically choose a safe release version.

Incorrect Answers

C:

This action is appropriate instead for a different, unlisted requirement: A team pins the AWS provider below 6.0 but a new contractor runs init and unexpectedly resolves a higher patch than other developers. It would be checked by: The chosen provider version and checksums are recorded in the lock file after initialization. None of the 3 specified workstreams calls for this action; their correct choices directly solve the identified cases.

E:

This action is appropriate instead for a different, unlisted requirement: A child network module expects two AWS provider aliases, but the root module has only passed its default provider. It would be checked by: The child resource plans with the specifically mapped source and destination provider aliases. None of the 3 specified workstreams calls for this action; their correct choices directly solve the identified cases.

F:

This action is appropriate instead for a different, unlisted requirement: A security allowlist is an unordered set of unique ports and duplicate entries must not affect the configuration. It would be checked by: Repeated port values collapse to unique members without relying on list positions. None of the 3 specified workstreams calls for this action; their correct choices directly solve the identified cases.

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

UP

SPECIAL OFFER: GET 10% OFF

This is ONE TIME OFFER

ExamSnap Discount Offer
Enter Your Email Address to Receive Your 10% Off Discount Code

A confirmation link will be sent to this email address to verify your login. *We value your privacy. We will not rent or sell your email address.

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your e-mail address below to get started with our interactive software demo of your free trial.

Free Demo Limits: In the demo version you will be able to access only first 5 questions from exam.