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 38

Question 370

A Terraform platform team is coordinating 3 independent decisions. Workstream A: A private application module computes a database hostname internally and a root output must expose it to the deployment pipeline. and Workstream B: An organization wants approved modules discoverable by many teams without copying source trees into every repo. and Workstream C: A signed-off infrastructure change has a saved plan artifact and the team needs to execute exactly that reviewed action set. Select exactly 3 actions, one addressing each distinct workstream.

  1. Set TF_LOG and TF_LOG_PATH together, collect the protected log, then disable verbose logging.
  2. Publish and consume approved modules through an HCP Terraform private module registry with reviewed versions.
  3. Declare an output in the child module and reference module.app.database_hostname from the root.
  4. Review the HCL change through version control and inspect a Terraform execution plan before authorized apply.
  5. Reference the security group resource attribute directly from the database argument.
  6. Run terraform apply release.tfplan under authorized credentials and the correct backend.

Explanation

Correct Answers

B:

For the workstream in which an organization wants approved modules discoverable by many teams without copying source trees into every repo, use this action: Publish and consume approved modules through an HCP Terraform private module registry with reviewed versions. The private registry supports controlled module distribution and reuse. Verify: Authorized workspaces resolve the approved private registry module during initialization. Limitation: Registry visibility and version release management must be governed; publishing alone does not make code correct.

C:

For the workstream in which a private application module computes a database hostname internally and a root output must expose it to the deployment pipeline, use this action: Declare an output in the child module and reference module.app.database_hostname from the root. Child module outputs define the public values available to a caller. Verify: The root output reads the child's exported value after apply or when known. Limitation: An output can include sensitive data; do not expose secrets through ordinary outputs without deliberate protection.

F:

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.

Incorrect Answers

A:

This action is appropriate instead for a different, unlisted requirement: A CI team wants to preserve Terraform debug output to a controlled file for a short-lived investigation. It would be checked by: The configured log file contains the expected Terraform diagnostics from the run. None of the 3 specified workstreams calls for this action; their correct choices directly solve the identified cases.

D:

This action is appropriate instead for a different, unlisted requirement: An operations group wants four engineers to propose a subnet change without all four immediately modifying production. It would be checked by: A pull request includes configuration differences and a plan describing expected resource mutations. 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 database security group must be passed into a managed database resource without copying IDs into hardcoded variables. It would be checked by: Terraform's graph records the dependency and plans the database with the correct group identifier. None of the 3 specified workstreams calls for this action; their correct choices directly solve the identified cases.

Question 371

An infrastructure team faces this specific situation: Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. Which Terraform action most directly satisfies the requirement?

  1. Treat each module call as a distinct instance with its own passed inputs and resource addresses.
  2. Review the intended registry release and run terraform init -upgrade after updating constraints as needed.
  3. Choose an explicit Git ref in the source URL rather than the registry-specific module version argument.
  4. Reference the local path with source = "./modules/security" inside the module block.

Explanation

Correct Answer

A:

Treat each module call as a distinct instance with its own passed inputs and resource addresses. Each module call instantiates a distinct namespace for the same reusable configuration. Verify: The plan displays separate module.alpha and module.beta resource addresses with their respective values. Limitation: Reusing module source is code reuse, not infrastructure-instance reuse.

Incorrect Answers

B:

This is linked to a different situation: A registry module release contains an urgent fix and the team's installed module is still the previous compatible release. There the relevant decision is: Review the intended registry release and run terraform init -upgrade after updating constraints as needed. For the question's actual requirement — Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. — the specifically relevant decision is: Treat each module call as a distinct instance with its own passed inputs and resource addresses. It would therefore not resolve or assess the case as stated.

C:

This is linked to a different situation: A private Git-sourced module has a reviewed release tag and an engineer adds version = "2.3" next to its Git source. There the relevant decision is: Choose an explicit Git ref in the source URL rather than the registry-specific module version argument. For the question's actual requirement — Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. — the specifically relevant decision is: Treat each module call as a distinct instance with its own passed inputs and resource addresses. It would therefore not resolve or assess the case as stated.

D:

This is linked to a different situation: A security group module lives in the local modules/security directory of the same versioned repository. There the relevant decision is: Reference the local path with source = "./modules/security" inside the module block. For the question's actual requirement — Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. — the specifically relevant decision is: Treat each module call as a distinct instance with its own passed inputs and resource addresses. It would therefore not resolve or assess the case as stated.

Question 372

A reviewer is confirming a change for the following use case: Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. The implementation follows this approach: Treat each module call as a distinct instance with its own passed inputs and resource addresses. Which observation or acceptance test most directly verifies the intended result?

  1. The plan displays separate module.alpha and module.beta resource addresses with their respective values.
  2. The plan resolves the output for the intended counted module instance.
  3. The keyed module instance exposes only the test environment's selected output.
  4. Consumers can pass environment-specific inputs and receive selected outputs without editing child internals.

Explanation

Correct Answer

A:

Acceptance evidence: The plan displays separate module.alpha and module.beta resource addresses with their respective values. It validates the proposed action, treat each module call as a distinct instance with its own passed inputs and resource addresses, because each module call instantiates a distinct namespace for the same reusable configuration. Remaining limitation: Reusing module source is code reuse, not infrastructure-instance reuse.

Incorrect Answers

B:

This is linked to a different situation: A deployment calls a reusable module with count = 3 and must reference the output of only the second instance. There the relevant acceptance is: The plan resolves the output for the intended counted module instance. For the question's actual requirement — Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. — the specifically relevant acceptance is: The plan displays separate module.alpha and module.beta resource addresses with their respective values. It would therefore not resolve or assess the case as stated.

C:

This is linked to a different situation: A module is instantiated for each environment in a map, and the root needs the output for the test environment. There the relevant acceptance is: The keyed module instance exposes only the test environment's selected output. For the question's actual requirement — Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. — the specifically relevant acceptance is: The plan displays separate module.alpha and module.beta resource addresses with their respective values. It would therefore not resolve or assess the case as stated.

D:

This is linked to a different situation: A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. There the relevant acceptance is: Consumers can pass environment-specific inputs and receive selected outputs without editing child internals. For the question's actual requirement — Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. — the specifically relevant acceptance is: The plan displays separate module.alpha and module.beta resource addresses with their respective values. It would therefore not resolve or assess the case as stated.

Question 373

Consider a proposed solution for this requirement: Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. The team plans to do the following: Treat each module call as a distinct instance with its own passed inputs and resource addresses. Which limitation or operational caveat must remain in the review?

  1. An alias without a corresponding provider mapping is not inherited automatically.
  2. An upgrade may change resources and output interfaces; it needs an impact review before apply.
  3. A local path module is not versioned by the module block's version argument.
  4. Reusing module source is code reuse, not infrastructure-instance reuse.

Explanation

Correct Answer

D:

The limitation is reusing module source is code reuse, not infrastructure-instance reuse. The proposed change is treat each module call as a distinct instance with its own passed inputs and resource addresses. Validate it by checking the plan displays separate module.alpha and module.beta resource addresses with their respective values. Each module call instantiates a distinct namespace for the same reusable configuration.

Incorrect Answers

A:

This is linked to a different situation: A child module must receive two non-default provider aliases for cross-region VPN creation. There the relevant limitation is: An alias without a corresponding provider mapping is not inherited automatically. For the question's actual requirement — Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. — the specifically relevant limitation is: Reusing module source is code reuse, not infrastructure-instance reuse. It would therefore not resolve or assess the case as stated.

B:

This is linked to a different situation: A registry module release contains an urgent fix and the team's installed module is still the previous compatible release. There the relevant limitation is: An upgrade may change resources and output interfaces; it needs an impact review before apply. For the question's actual requirement — Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. — the specifically relevant limitation is: Reusing module source is code reuse, not infrastructure-instance reuse. It would therefore not resolve or assess the case as stated.

C:

This is linked to a different situation: A security group module lives in the local modules/security directory of the same versioned repository. There the relevant limitation is: A local path module is not versioned by the module block's version argument. For the question's actual requirement — Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. — the specifically relevant limitation is: Reusing module source is code reuse, not infrastructure-instance reuse. It would therefore not resolve or assess the case as stated.

Question 374

The team is reviewing a Terraform implementation for this case: Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. Which tempting assumption would be specifically incorrect for this proposed implementation?

  1. Copy all root-level provider credential blocks inside the reusable child module for each consumer.
  2. Use the provider dependency lock file alone as proof of a registry module's selected release.
  3. Assume a shared module directory always maps both calls to the same real resource.
  4. Delete the Terraform state to force the new module to be installed.

Explanation

Correct Answer

C:

Reject the assumption: Assume a shared module directory always maps both calls to the same real resource. Instead, treat each module call as a distinct instance with its own passed inputs and resource addresses. Each module call instantiates a distinct namespace for the same reusable configuration. Acceptance evidence: The plan displays separate module.alpha and module.beta resource addresses with their respective values.

Incorrect Answers

A:

This is linked to a different situation: A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. There the relevant misconception is: Copy all root-level provider credential blocks inside the reusable child module for each consumer. For the question's actual requirement — Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. — the specifically relevant misconception is: Assume a shared module directory always maps both calls to the same real resource. It would therefore not resolve or assess the case as stated.

B:

This is linked to a different situation: A team uses a module from the public registry and needs to prevent unreviewed minor changes after a security assessment. There the relevant misconception is: Use the provider dependency lock file alone as proof of a registry module's selected release. For the question's actual requirement — Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. — the specifically relevant misconception is: Assume a shared module directory always maps both calls to the same real resource. It would therefore not resolve or assess the case as stated.

D:

This is linked to a different situation: A registry module release contains an urgent fix and the team's installed module is still the previous compatible release. There the relevant misconception is: Delete the Terraform state to force the new module to be installed. For the question's actual requirement — Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. — the specifically relevant misconception is: Assume a shared module directory always maps both calls to the same real resource. It would therefore not resolve or assess the case as stated.

Question 375

A Terraform platform team is coordinating 2 independent decisions. Workstream A: Two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses. and Workstream B: An organization has dozens of workspaces for finance and research teams with distinct access requirements. Select exactly 2 actions, one addressing each distinct workstream.

  1. Organize related workspaces into HCP Terraform projects and assign team-level project permissions.
  2. Let the state lock serialize operations and retry after the active writer finishes.
  3. Treat each module call as a distinct instance with its own passed inputs and resource addresses.
  4. Run terraform plan with normal refresh behavior and inspect drift-driven proposed updates.
  5. Use an ephemeral input value in an allowed Terraform ephemeral context, such as a supported provider configuration.

Explanation

Correct Answers

A:

For the workstream in which an organization has dozens of workspaces for finance and research teams with distinct access requirements, use this action: Organize related workspaces into HCP Terraform projects and assign team-level project permissions. Projects group workspaces and provide a useful boundary for access policy. Verify: The intended finance and research teams have scoped access to their respective project workspaces. Limitation: A team may receive broader organization grants; confirm effective permissions after assigning project roles.

C:

For the workstream in which two module instances share the same source but have different input maps, and an engineer expects identical endpoint addresses, use this action: Treat each module call as a distinct instance with its own passed inputs and resource addresses. Each module call instantiates a distinct namespace for the same reusable configuration. Verify: The plan displays separate module.alpha and module.beta resource addresses with their respective values. Limitation: Reusing module source is code reuse, not infrastructure-instance reuse.

Incorrect Answers

B:

This option addresses a separate requirement: Two release pipelines try to update the same remote state simultaneously and one sees a lock-acquisition failure. Evidence for that other requirement would be only one run modifies the protected state at a time and the second safely waits or fails; neither listed workstream asks for it.

D:

This option addresses a separate requirement: A finance system's VPC has been manually changed outside Terraform and a release manager wants a preview of reconciliation. Evidence for that other requirement would be the plan compares refreshed remote objects and current state against desired configuration; neither listed workstream asks for it.

E:

This option addresses a separate requirement: A short-lived token must be used during an operation, and auditors require that the token not be written to a plan file. Evidence for that other requirement would be the ephemeral value is supplied for the operation but omitted from saved state and plan data; neither listed workstream asks for it.

Question 376

An infrastructure team faces this specific situation: A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. Which Terraform action most directly satisfies the requirement?

  1. Declare the input in the child and supply environment = var.environment in the root's module call.
  2. Reference the local path with source = "./modules/security" inside the module block.
  3. Declare an output in the child module and reference module.app.database_hostname from the root.
  4. Create a child module with declared input variables, resource blocks, and output values, then invoke it from a root module.

Explanation

Correct Answer

D:

Create a child module with declared input variables, resource blocks, and output values, then invoke it from a root module. Modules package reusable configuration and expose a deliberate input/output contract. Verify: Consumers can pass environment-specific inputs and receive selected outputs without editing child internals. Limitation: Avoid overcomplicated module nesting where composition of smaller modules is clearer.

Incorrect Answers

A:

This is linked to a different situation: A child module uses var.environment but the root module declares an environment variable of the same name and passes nothing. There the relevant decision is: Declare the input in the child and supply environment = var.environment in the root's module call. For the question's actual requirement — A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. — the specifically relevant decision is: Create a child module with declared input variables, resource blocks, and output values, then invoke it from a root module. It would therefore not resolve or assess the case as stated.

B:

This is linked to a different situation: A security group module lives in the local modules/security directory of the same versioned repository. There the relevant decision is: Reference the local path with source = "./modules/security" inside the module block. For the question's actual requirement — A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. — the specifically relevant decision is: Create a child module with declared input variables, resource blocks, and output values, then invoke it from a root module. It would therefore not resolve or assess the case as stated.

C:

This is linked to a different situation: A private application module computes a database hostname internally and a root output must expose it to the deployment pipeline. There the relevant decision is: Declare an output in the child module and reference module.app.database_hostname from the root. For the question's actual requirement — A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. — the specifically relevant decision is: Create a child module with declared input variables, resource blocks, and output values, then invoke it from a root module. It would therefore not resolve or assess the case as stated.

Question 377

A reviewer is confirming a change for the following use case: A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. The implementation follows this approach: Create a child module with declared input variables, resource blocks, and output values, then invoke it from a root module. Which observation or acceptance test most directly verifies the intended result?

  1. The initialized module source matches the new permitted version and the resulting plan is reviewed.
  2. Consumers can pass environment-specific inputs and receive selected outputs without editing child internals.
  3. Terraform downloads the module code at the intended Git tag or commit during init.
  4. terraform init downloads the appropriate registry module and the child resources appear in the plan.

Explanation

Correct Answer

B:

Acceptance evidence: Consumers can pass environment-specific inputs and receive selected outputs without editing child internals. It validates the proposed action, create a child module with declared input variables, resource blocks, and output values, then invoke it from a root module, because modules package reusable configuration and expose a deliberate input/output contract. Remaining limitation: Avoid overcomplicated module nesting where composition of smaller modules is clearer.

Incorrect Answers

A:

This is linked to a different situation: A registry module release contains an urgent fix and the team's installed module is still the previous compatible release. There the relevant acceptance is: The initialized module source matches the new permitted version and the resulting plan is reviewed. For the question's actual requirement — A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. — the specifically relevant acceptance is: Consumers can pass environment-specific inputs and receive selected outputs without editing child internals. It would therefore not resolve or assess the case as stated.

C:

This is linked to a different situation: A private Git-sourced module has a reviewed release tag and an engineer adds version = "2.3" next to its Git source. There the relevant acceptance is: Terraform downloads the module code at the intended Git tag or commit during init. For the question's actual requirement — A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. — the specifically relevant acceptance is: Consumers can pass environment-specific inputs and receive selected outputs without editing child internals. It would therefore not resolve or assess the case as stated.

D:

This is linked to a different situation: A shared platform module is stored in the Terraform public registry and teams need to invoke it without copying the repository contents. There the relevant acceptance is: terraform init downloads the appropriate registry module and the child resources appear in the plan. For the question's actual requirement — A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. — the specifically relevant acceptance is: Consumers can pass environment-specific inputs and receive selected outputs without editing child internals. It would therefore not resolve or assess the case as stated.

Question 378

Consider a proposed solution for this requirement: A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. The team plans to do the following: Create a child module with declared input variables, resource blocks, and output values, then invoke it from a root module. Which limitation or operational caveat must remain in the review?

  1. A moving branch ref does not provide the same immutability as a reviewed commit SHA.
  2. An output can include sensitive data; do not expose secrets through ordinary outputs without deliberate protection.
  3. Avoid overcomplicated module nesting where composition of smaller modules is clearer.
  4. Module source selection does not configure credentials or automatically choose a safe release version.

Explanation

Correct Answer

C:

The limitation is avoid overcomplicated module nesting where composition of smaller modules is clearer. The proposed change is create a child module with declared input variables, resource blocks, and output values, then invoke it from a root module. Validate it by checking consumers can pass environment-specific inputs and receive selected outputs without editing child internals. Modules package reusable configuration and expose a deliberate input/output contract.

Incorrect Answers

A:

This is linked to a different situation: A private Git-sourced module has a reviewed release tag and an engineer adds version = "2.3" next to its Git source. There the relevant limitation is: A moving branch ref does not provide the same immutability as a reviewed commit SHA. For the question's actual requirement — A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. — the specifically relevant limitation is: Avoid overcomplicated module nesting where composition of smaller modules is clearer. It would therefore not resolve or assess the case as stated.

B:

This is linked to a different situation: A private application module computes a database hostname internally and a root output must expose it to the deployment pipeline. There the relevant limitation is: An output can include sensitive data; do not expose secrets through ordinary outputs without deliberate protection. For the question's actual requirement — A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. — the specifically relevant limitation is: Avoid overcomplicated module nesting where composition of smaller modules is clearer. It would therefore not resolve or assess the case as stated.

D:

This is linked to a different situation: A shared platform module is stored in the Terraform public registry and teams need to invoke it without copying the repository contents. There the relevant limitation is: Module source selection does not configure credentials or automatically choose a safe release version. For the question's actual requirement — A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. — the specifically relevant limitation is: Avoid overcomplicated module nesting where composition of smaller modules is clearer. It would therefore not resolve or assess the case as stated.

Question 379

The team is reviewing a Terraform implementation for this case: A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. Which tempting assumption would be specifically incorrect for this proposed implementation?

  1. Expect Terraform's registry version solver to interpret a version argument for all Git sources.
  2. Use the provider dependency lock file alone as proof of a registry module's selected release.
  3. Reference module.app.local.database_hostname as though a child's locals were public attributes.
  4. Copy all root-level provider credential blocks inside the reusable child module for each consumer.

Explanation

Correct Answer

D:

Reject the assumption: Copy all root-level provider credential blocks inside the reusable child module for each consumer. Instead, create a child module with declared input variables, resource blocks, and output values, then invoke it from a root module. Modules package reusable configuration and expose a deliberate input/output contract. Acceptance evidence: Consumers can pass environment-specific inputs and receive selected outputs without editing child internals.

Incorrect Answers

A:

This is linked to a different situation: A private Git-sourced module has a reviewed release tag and an engineer adds version = "2.3" next to its Git source. There the relevant misconception is: Expect Terraform's registry version solver to interpret a version argument for all Git sources. For the question's actual requirement — A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. — the specifically relevant misconception is: Copy all root-level provider credential blocks inside the reusable child module for each consumer. It would therefore not resolve or assess the case as stated.

B:

This is linked to a different situation: A team uses a module from the public registry and needs to prevent unreviewed minor changes after a security assessment. There the relevant misconception is: Use the provider dependency lock file alone as proof of a registry module's selected release. For the question's actual requirement — A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. — the specifically relevant misconception is: Copy all root-level provider credential blocks inside the reusable child module for each consumer. It would therefore not resolve or assess the case as stated.

C:

This is linked to a different situation: A private application module computes a database hostname internally and a root output must expose it to the deployment pipeline. There the relevant misconception is: Reference module.app.local.database_hostname as though a child's locals were public attributes. For the question's actual requirement — A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. — the specifically relevant misconception is: Copy all root-level provider credential blocks inside the reusable child module for each consumer. It would therefore not resolve or assess the case as stated.

Question 380

A Terraform platform team is coordinating 3 independent decisions. Workstream A: A team is packaging a repeated VPC pattern and wants a stable interface for internal consumers. and Workstream B: A platform administrator must reuse one nonsecret provider configuration variable across multiple workspaces in the same HCP project. and Workstream C: A disposable integration environment must be removed without unintentionally deleting shared infrastructure in another state. Select exactly 3 actions, one addressing each distinct workstream.

  1. Use an ephemeral input value in an allowed Terraform ephemeral context, such as a supported provider configuration.
  2. Create a child module with declared input variables, resource blocks, and output values, then invoke it from a root module.
  3. Create an appropriately scoped HCP Terraform variable set applied to those project workspaces.
  4. Use an object type constraint within a map or list collection with named attribute types.
  5. Select the correct workspace/backend state and run terraform destroy only after reviewing its destruction plan.
  6. Protect state storage and consider ephemeral flow or provider-supported write-only arguments where appropriate, not sensitive alone.

Explanation

Correct Answers

B:

For the workstream in which a team is packaging a repeated VPC pattern and wants a stable interface for internal consumers, use this action: Create a child module with declared input variables, resource blocks, and output values, then invoke it from a root module. Modules package reusable configuration and expose a deliberate input/output contract. Verify: Consumers can pass environment-specific inputs and receive selected outputs without editing child internals. Limitation: Avoid overcomplicated module nesting where composition of smaller modules is clearer.

C:

For the workstream in which a platform administrator must reuse one nonsecret provider configuration variable across multiple workspaces in the same HCP project, use this action: Create an appropriately scoped HCP Terraform variable set applied to those project workspaces. Variable sets centralize shared configuration at project or organization scope. Verify: New and existing workspaces in the project receive the intended shared variable. Limitation: Conflicting variable definitions obey precedence rules; scope alone does not guarantee a value wins.

E:

For the workstream in which a disposable integration environment must be removed without unintentionally deleting shared infrastructure in another state, use this action: Select the correct workspace/backend state and run terraform destroy only after reviewing its destruction plan. Destroy targets resources Terraform manages in the selected state. Verify: The destruction plan lists the managed objects targeted in that state, not arbitrary cloud resources. Limitation: Provider dependencies and shared infrastructure still require a risk review before deletion.

Incorrect Answers

A:

This action is appropriate instead for a different, unlisted requirement: A short-lived token must be used during an operation, and auditors require that the token not be written to a plan file. It would be checked by: The ephemeral value is supplied for the operation but omitted from saved state and plan data. None of the 3 specified workstreams calls for this action; their correct choices directly solve the identified cases.

D:

This action is appropriate instead for a different, unlisted requirement: A developer defines a subnet inventory in which every subnet has cidr, zone, and public attributes, and needs reliable shape checking. It would be checked by: Invalid records with wrong attribute types fail validation rather than causing obscure downstream errors. 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: An application secret is supplied as a Terraform variable marked sensitive, and a teammate claims it cannot enter a saved state file. It would be checked by: Inspect the chosen mechanism and verify secrets do not appear in plan/state artifacts where omission is required. 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.