Practice Exams:

HashiCorp Terraform Associate 004 Dumps

EXAM: HashiCorp Certified: Terraform Associate (004)
Verified By Experts
Premium Bundle
$40.00
$59.97 $99.97

Terraform Associate 004 Premium Bundle


  • Premium File 167 Questions & Answers
  • Training Course 118 Lectures
  • Study Guide 285 Pages

HashiCorp Terraform Associate 004 Practice Test 5

Question 40

A nonprofit opens temporary training sandboxes and wants consistent network policies while allowing smaller instance sizes in each sandbox. Which combined implementation and verification plan is the best match for this workload?

  1. Implement: Write versioned Terraform resource blocks describing required cloud objects, and use a plan to reconcile actual infrastructure toward that desired state. Verify: Change a disposable resource property, run terraform plan, and verify the proposed update matches the declared value without recreating unaffected resources.
  2. Implement: Commit HCL changes to a version-controlled repository and have peers inspect the resulting plan before an authorized apply updates production. Verify: Provision two disposable environments from the same module using separate inputs and verify their shared structural attributes match their intended contracts.
  3. Implement: Maintain one reusable configuration pattern with explicit per-environment inputs and run it consistently rather than copying and modifying entire cloud stacks manually. Verify: Provision two disposable environments from the same module using separate inputs and verify their shared structural attributes match their intended contracts.
  4. Implement: Maintain one reusable configuration pattern with explicit per-environment inputs and run it consistently rather than copying and modifying entire cloud stacks manually. Verify: Create a pull request that changes a nonproduction tag, attach the expected plan, and verify the reviewer can trace the eventual apply to that commit.

Answer & Explanations

Correct answer: C

A.

This action/test pair addresses “Use declarative configuration to describe desired infrastructure”. Write versioned Terraform resource blocks describing required cloud objects, and use a plan to reconcile actual infrastructure toward that desired state. Change a disposable resource property, run terraform plan, and verify the proposed update matches the declared value without recreating unaffected resources. The case instead calls for: Maintain one reusable configuration pattern with explicit per-environment inputs and run it consistently rather than copying and modifying entire cloud stacks manually.

B.

The question is set in this situation: A nonprofit opens temporary training sandboxes and wants consistent network policies while allowing smaller instance sizes in each sandbox. The test would be relevant: Provision two disposable environments from the same module using separate inputs and verify their shared structural attributes match their intended contracts. But the offered implementation—Commit HCL changes to a version-controlled repository and have peers inspect the resulting plan before an authorized apply updates production.—addresses “Require version control and review for infrastructure changes”. The action needed here is: Maintain one reusable configuration pattern with explicit per-environment inputs and run it consistently rather than copying and modifying entire cloud stacks manually.

C.

The question is set in this situation: A nonprofit opens temporary training sandboxes and wants consistent network policies while allowing smaller instance sizes in each sandbox. Maintain one reusable configuration pattern with explicit per-environment inputs and run it consistently rather than copying and modifying entire cloud stacks manually. Confirm it through this test: Provision two disposable environments from the same module using separate inputs and verify their shared structural attributes match their intended contracts. A shared configuration and input contract reduce divergent hand-written deployments, while Terraform's plan makes environment differences explicit before execution.

D.

The question is set in this situation: A nonprofit opens temporary training sandboxes and wants consistent network policies while allowing smaller instance sizes in each sandbox. The action is applicable: Maintain one reusable configuration pattern with explicit per-environment inputs and run it consistently rather than copying and modifying entire cloud stacks manually. But its proposed test—Create a pull request that changes a nonproduction tag, attach the expected plan, and verify the reviewer can trace the eventual apply to that commit.—addresses “Require version control and review for infrastructure changes”. This requirement is confirmed instead by: Provision two disposable environments from the same module using separate inputs and verify their shared structural attributes match their intended contracts.

Question 41

A multinational support company operates workloads in two public clouds and needs a consistent review workflow without pretending the VM types are identical. Which HashiCorp Terraform infrastructure implementation best satisfies this requirement?

  1. Compose supported providers for public cloud infrastructure and a private virtualization or DNS system, keeping credentials, state and dependencies explicit.
  2. Write versioned Terraform resource blocks describing required cloud objects, and use a plan to reconcile actual infrastructure toward that desired state.
  3. Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.
  4. Maintain one reusable configuration pattern with explicit per-environment inputs and run it consistently rather than copying and modifying entire cloud stacks manually.

Answer & Explanations

Correct answer: C

A.

Compose supported providers for public cloud infrastructure and a private virtualization or DNS system, keeping credentials, state and dependencies explicit. This addresses “Manage hybrid infrastructure while respecting provider ownership”, where the governing principle is: A Terraform working directory can coordinate plugins for remote systems with different endpoints, but only resources supported by each provider can be managed through its API. The stated case instead calls for: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.

B.

Write versioned Terraform resource blocks describing required cloud objects, and use a plan to reconcile actual infrastructure toward that desired state. This addresses “Use declarative configuration to describe desired infrastructure”, where the governing principle is: Terraform compares configuration, state and observed remote objects to propose changes; ordinary shell provisioning steps instead describe imperative commands without an equivalent state graph. The stated case instead calls for: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.

C.

Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit. Terraform uses provider-specific resource schemas behind a common configuration and workflow; a single language does not make unrelated cloud APIs interchangeable. Verify the result with this test: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs.

D.

Maintain one reusable configuration pattern with explicit per-environment inputs and run it consistently rather than copying and modifying entire cloud stacks manually. This addresses “Use repeatable Terraform runs to minimize configuration divergence”, where the governing principle is: A shared configuration and input contract reduce divergent hand-written deployments, while Terraform's plan makes environment differences explicit before execution. The stated case instead calls for: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.

Question 42

A multinational support company operates workloads in two public clouds and needs a consistent review workflow without pretending the VM types are identical. The infrastructure engineer proposes this change: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit. Which mechanism explains why it works?

  1. A shared configuration and input contract reduce divergent hand-written deployments, while Terraform's plan makes environment differences explicit before execution.
  2. A Terraform working directory can coordinate plugins for remote systems with different endpoints, but only resources supported by each provider can be managed through its API.
  3. Terraform compares configuration, state and observed remote objects to propose changes; ordinary shell provisioning steps instead describe imperative commands without an equivalent state graph.
  4. Terraform uses provider-specific resource schemas behind a common configuration and workflow; a single language does not make unrelated cloud APIs interchangeable.

Answer & Explanations

Correct answer: D

A.

A shared configuration and input contract reduce divergent hand-written deployments, while Terraform's plan makes environment differences explicit before execution. That explains “Use repeatable Terraform runs to minimize configuration divergence”, not the mechanism behind the described change. The relevant principle is: Terraform uses provider-specific resource schemas behind a common configuration and workflow; a single language does not make unrelated cloud APIs interchangeable.

B.

A Terraform working directory can coordinate plugins for remote systems with different endpoints, but only resources supported by each provider can be managed through its API. That explains “Manage hybrid infrastructure while respecting provider ownership”, not the mechanism behind the described change. The relevant principle is: Terraform uses provider-specific resource schemas behind a common configuration and workflow; a single language does not make unrelated cloud APIs interchangeable.

C.

Terraform compares configuration, state and observed remote objects to propose changes; ordinary shell provisioning steps instead describe imperative commands without an equivalent state graph. That explains “Use declarative configuration to describe desired infrastructure”, not the mechanism behind the described change. The relevant principle is: Terraform uses provider-specific resource schemas behind a common configuration and workflow; a single language does not make unrelated cloud APIs interchangeable.

D.

Terraform uses provider-specific resource schemas behind a common configuration and workflow; a single language does not make unrelated cloud APIs interchangeable. The corresponding implementation is: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.

Question 43

A multinational support company operates workloads in two public clouds and needs a consistent review workflow without pretending the VM types are identical. After implementing this change—Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.—which test most directly validates its intended outcome?

  1. Provision two disposable environments from the same module using separate inputs and verify their shared structural attributes match their intended contracts.
  2. Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs.
  3. Plan a disposable public subnet and a private DNS record, then verify each change is attributed to the correct configured provider and account.
  4. Change a disposable resource property, run terraform plan, and verify the proposed update matches the declared value without recreating unaffected resources.

Answer & Explanations

Correct answer: B

A.

Provision two disposable environments from the same module using separate inputs and verify their shared structural attributes match their intended contracts. That would help test “Use repeatable Terraform runs to minimize configuration divergence”, not the outcome required in this scenario. The relevant acceptance check is: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs.

B.

Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs. This check is decisive because terraform uses provider-specific resource schemas behind a common configuration and workflow; a single language does not make unrelated cloud APIs interchangeable.

C.

Plan a disposable public subnet and a private DNS record, then verify each change is attributed to the correct configured provider and account. That would help test “Manage hybrid infrastructure while respecting provider ownership”, not the outcome required in this scenario. The relevant acceptance check is: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs.

D.

Change a disposable resource property, run terraform plan, and verify the proposed update matches the declared value without recreating unaffected resources. That would help test “Use declarative configuration to describe desired infrastructure”, not the outcome required in this scenario. The relevant acceptance check is: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs.

Question 44

A multinational support company operates workloads in two public clouds and needs a consistent review workflow without pretending the VM types are identical. Which proposed shortcut most directly risks failed multi-cloud deployments caused by conflating common workflow with cloud-specific resource APIs and should therefore be rejected?

  1. Assume a resource type named for one provider works unchanged in another cloud without declaring or adapting that provider's schema.
  2. Duplicate hundreds of infrastructure declarations into unrelated directories and patch each differently without any shared module or validation.
  3. Write one-off console commands on each engineer's laptop and claim the resulting environment is reproducible from a declarative source.
  4. Assume Terraform automatically discovers and manages every on-premises device without installing a provider or declaring any resource.

Answer & Explanations

Correct answer: A

A.

Assume a resource type named for one provider works unchanged in another cloud without declaring or adapting that provider's schema. The foreseeable failure is failed multi-cloud deployments caused by conflating common workflow with cloud-specific resource APIs. The safer response is: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.

B.

Duplicate hundreds of infrastructure declarations into unrelated directories and patch each differently without any shared module or validation. That shortcut risks drift between environments and repairs that do not propagate consistently. Here the specific shortcut is: Assume a resource type named for one provider works unchanged in another cloud without declaring or adapting that provider's schema.

C.

Write one-off console commands on each engineer's laptop and claim the resulting environment is reproducible from a declarative source. That shortcut risks inconsistent environments that cannot be reconstructed from reviewed configuration. Here the specific shortcut is: Assume a resource type named for one provider works unchanged in another cloud without declaring or adapting that provider's schema.

D.

Assume Terraform automatically discovers and manages every on-premises device without installing a provider or declaring any resource. That shortcut risks silent omissions or incorrect changes across the cloud and private-network boundary. Here the specific shortcut is: Assume a resource type named for one provider works unchanged in another cloud without declaring or adapting that provider's schema.

Question 45

A multinational support company operates workloads in two public clouds and needs a consistent review workflow without pretending the VM types are identical. Which combined implementation and verification plan is the best match for this workload?

  1. Implement: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit. Verify: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs.
  2. Implement: Write versioned Terraform resource blocks describing required cloud objects, and use a plan to reconcile actual infrastructure toward that desired state. Verify: Change a disposable resource property, run terraform plan, and verify the proposed update matches the declared value without recreating unaffected resources.
  3. Implement: Compose supported providers for public cloud infrastructure and a private virtualization or DNS system, keeping credentials, state and dependencies explicit. Verify: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs.
  4. Implement: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit. Verify: Plan a disposable public subnet and a private DNS record, then verify each change is attributed to the correct configured provider and account.

Answer & Explanations

Correct answer: A

A.

Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit. Confirm it through this test: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs. Terraform uses provider-specific resource schemas behind a common configuration and workflow; a single language does not make unrelated cloud APIs interchangeable.

B.

This action/test pair addresses “Use declarative configuration to describe desired infrastructure”. Write versioned Terraform resource blocks describing required cloud objects, and use a plan to reconcile actual infrastructure toward that desired state. Change a disposable resource property, run terraform plan, and verify the proposed update matches the declared value without recreating unaffected resources. The case instead calls for: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.

C.

The test would be relevant: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs. But the offered implementation—Compose supported providers for public cloud infrastructure and a private virtualization or DNS system, keeping credentials, state and dependencies explicit.—addresses “Manage hybrid infrastructure while respecting provider ownership”. The action needed here is: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.

D.

The action is applicable: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit. But its proposed test—Plan a disposable public subnet and a private DNS record, then verify each change is attributed to the correct configured provider and account.—addresses “Manage hybrid infrastructure while respecting provider ownership”. This requirement is confirmed instead by: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs.

Question 46

A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. Which HashiCorp Terraform infrastructure implementation best satisfies this requirement?

  1. Model durable network and compute objects with Terraform configuration while keeping application startup commands in appropriate software deployment tools.
  2. Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.
  3. Compose supported providers for public cloud infrastructure and a private virtualization or DNS system, keeping credentials, state and dependencies explicit.
  4. Maintain one reusable configuration pattern with explicit per-environment inputs and run it consistently rather than copying and modifying entire cloud stacks manually.

Answer & Explanations

Correct answer: B

A.

Model durable network and compute objects with Terraform configuration while keeping application startup commands in appropriate software deployment tools. This addresses “Separate Terraform's configuration from a runtime script for repeatable changes”, where the governing principle is: Terraform manages declared infrastructure lifecycle through provider APIs; running a provisioning shell script on every apply is not inherently a convergent description of an object. The stated case instead calls for: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.

B.

The question is set in this situation: A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit. Terraform uses provider-specific resource schemas behind a common configuration and workflow; a single language does not make unrelated cloud APIs interchangeable. Verify the result with this test: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs.

C.

The question is set in this situation: A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. Compose supported providers for public cloud infrastructure and a private virtualization or DNS system, keeping credentials, state and dependencies explicit. This addresses “Manage hybrid infrastructure while respecting provider ownership”, where the governing principle is: A Terraform working directory can coordinate plugins for remote systems with different endpoints, but only resources supported by each provider can be managed through its API. The stated case instead calls for: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.

D.

The question is set in this situation: A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. Maintain one reusable configuration pattern with explicit per-environment inputs and run it consistently rather than copying and modifying entire cloud stacks manually. This addresses “Use repeatable Terraform runs to minimize configuration divergence”, where the governing principle is: A shared configuration and input contract reduce divergent hand-written deployments, while Terraform's plan makes environment differences explicit before execution. The stated case instead calls for: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.

Question 47

A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. The infrastructure engineer proposes this change: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit. Which mechanism explains why it works?

  1. Terraform manages declared infrastructure lifecycle through provider APIs; running a provisioning shell script on every apply is not inherently a convergent description of an object.
  2. A shared configuration and input contract reduce divergent hand-written deployments, while Terraform's plan makes environment differences explicit before execution.
  3. Terraform uses provider-specific resource schemas behind a common configuration and workflow; a single language does not make unrelated cloud APIs interchangeable.
  4. A Terraform working directory can coordinate plugins for remote systems with different endpoints, but only resources supported by each provider can be managed through its API.

Answer & Explanations

Correct answer: C

A.

Terraform manages declared infrastructure lifecycle through provider APIs; running a provisioning shell script on every apply is not inherently a convergent description of an object. That explains “Separate Terraform's configuration from a runtime script for repeatable changes”, not the mechanism behind the described change. The relevant principle is: Terraform uses provider-specific resource schemas behind a common configuration and workflow; a single language does not make unrelated cloud APIs interchangeable.

B.

The question is set in this situation: A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. A shared configuration and input contract reduce divergent hand-written deployments, while Terraform's plan makes environment differences explicit before execution. That explains “Use repeatable Terraform runs to minimize configuration divergence”, not the mechanism behind the described change. The relevant principle is: Terraform uses provider-specific resource schemas behind a common configuration and workflow; a single language does not make unrelated cloud APIs interchangeable.

C.

The question is set in this situation: A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. Terraform uses provider-specific resource schemas behind a common configuration and workflow; a single language does not make unrelated cloud APIs interchangeable. The corresponding implementation is: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.

D.

The question is set in this situation: A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. A Terraform working directory can coordinate plugins for remote systems with different endpoints, but only resources supported by each provider can be managed through its API. That explains “Manage hybrid infrastructure while respecting provider ownership”, not the mechanism behind the described change. The relevant principle is: Terraform uses provider-specific resource schemas behind a common configuration and workflow; a single language does not make unrelated cloud APIs interchangeable.

Question 48

A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. After implementing this change—Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.—which test most directly validates its intended outcome?

  1. Provision two disposable environments from the same module using separate inputs and verify their shared structural attributes match their intended contracts.
  2. Plan a disposable public subnet and a private DNS record, then verify each change is attributed to the correct configured provider and account.
  3. Apply the same configuration twice in a sandbox and confirm the second plan contains no infrastructure changes when remote state has not drifted.
  4. Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs.

Answer & Explanations

Correct answer: D

A.

The question is set in this situation: A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. Provision two disposable environments from the same module using separate inputs and verify their shared structural attributes match their intended contracts. That would help test “Use repeatable Terraform runs to minimize configuration divergence”, not the outcome required in this scenario. The relevant acceptance check is: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs.

B.

The question is set in this situation: A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. Plan a disposable public subnet and a private DNS record, then verify each change is attributed to the correct configured provider and account. That would help test “Manage hybrid infrastructure while respecting provider ownership”, not the outcome required in this scenario. The relevant acceptance check is: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs.

C.

Apply the same configuration twice in a sandbox and confirm the second plan contains no infrastructure changes when remote state has not drifted. That would help test “Separate Terraform's configuration from a runtime script for repeatable changes”, not the outcome required in this scenario. The relevant acceptance check is: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs.

D.

The question is set in this situation: A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs. This check is decisive because terraform uses provider-specific resource schemas behind a common configuration and workflow; a single language does not make unrelated cloud APIs interchangeable.

Question 49

A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. Which proposed shortcut most directly risks failed multi-cloud deployments caused by conflating common workflow with cloud-specific resource APIs and should therefore be rejected?

  1. Duplicate hundreds of infrastructure declarations into unrelated directories and patch each differently without any shared module or validation.
  2. Assume a resource type named for one provider works unchanged in another cloud without declaring or adapting that provider's schema.
  3. Run a large mutable bootstrap script during every apply and assume repeated script side effects are harmless and represented in Terraform state.
  4. Assume Terraform automatically discovers and manages every on-premises device without installing a provider or declaring any resource.

Answer & Explanations

Correct answer: B

A.

The question is set in this situation: A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. Duplicate hundreds of infrastructure declarations into unrelated directories and patch each differently without any shared module or validation. That shortcut risks drift between environments and repairs that do not propagate consistently. Here the specific shortcut is: Assume a resource type named for one provider works unchanged in another cloud without declaring or adapting that provider's schema.

B.

The question is set in this situation: A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. Assume a resource type named for one provider works unchanged in another cloud without declaring or adapting that provider's schema. The foreseeable failure is failed multi-cloud deployments caused by conflating common workflow with cloud-specific resource APIs. The safer response is: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.

C.

Run a large mutable bootstrap script during every apply and assume repeated script side effects are harmless and represented in Terraform state. That shortcut risks untracked side effects and configuration drift hidden behind a seemingly successful apply. Here the specific shortcut is: Assume a resource type named for one provider works unchanged in another cloud without declaring or adapting that provider's schema.

D.

The question is set in this situation: A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. Assume Terraform automatically discovers and manages every on-premises device without installing a provider or declaring any resource. That shortcut risks silent omissions or incorrect changes across the cloud and private-network boundary. Here the specific shortcut is: Assume a resource type named for one provider works unchanged in another cloud without declaring or adapting that provider's schema.

Question 50

A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. Which combined implementation and verification plan is the best match for this workload?

  1. Implement: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit. Verify: Plan a disposable public subnet and a private DNS record, then verify each change is attributed to the correct configured provider and account.
  2. Implement: Compose supported providers for public cloud infrastructure and a private virtualization or DNS system, keeping credentials, state and dependencies explicit. Verify: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs.
  3. Implement: Maintain one reusable configuration pattern with explicit per-environment inputs and run it consistently rather than copying and modifying entire cloud stacks manually. Verify: Provision two disposable environments from the same module using separate inputs and verify their shared structural attributes match their intended contracts.
  4. Implement: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit. Verify: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs.

Answer & Explanations

Correct answer: D

A.

The question is set in this situation: A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. The action is applicable: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit. But its proposed test—Plan a disposable public subnet and a private DNS record, then verify each change is attributed to the correct configured provider and account.—addresses “Manage hybrid infrastructure while respecting provider ownership”. This requirement is confirmed instead by: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs.

B.

The question is set in this situation: A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. The test would be relevant: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs. But the offered implementation—Compose supported providers for public cloud infrastructure and a private virtualization or DNS system, keeping credentials, state and dependencies explicit.—addresses “Manage hybrid infrastructure while respecting provider ownership”. The action needed here is: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.

C.

This action/test pair addresses “Use repeatable Terraform runs to minimize configuration divergence”. Maintain one reusable configuration pattern with explicit per-environment inputs and run it consistently rather than copying and modifying entire cloud stacks manually. Provision two disposable environments from the same module using separate inputs and verify their shared structural attributes match their intended contracts. The case instead calls for: Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit.

D.

The question is set in this situation: A university consortium must create approved test object stores across multiple cloud vendors while respecting each provider's required arguments. Declare resource configurations through appropriate provider plugins for each cloud while keeping shared orchestration in Terraform and cloud-specific arguments explicit. Confirm it through this test: Plan a disposable resource in each of two cloud test accounts and confirm that provider selection, regions and attributes resolve to the intended APIs. Terraform uses provider-specific resource schemas behind a common configuration and workflow; a single language does not make unrelated cloud APIs interchangeable.

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