McAfee-Secured Website

Exam Bundle

Exam Code: Terraform Associate 004

Exam Name HashiCorp Certified: Terraform Associate (004)

Certification Provider: HashiCorp

Corresponding Certification: Terraform Associate

HashiCorp Terraform Associate 004 Bundle $19.99

100% HashiCorp Terraform Associate 004 Guaranteed Success With Testking Training Materials

Get Real Terraform Associate 004 Exam Questions & Expert Verified Answers as Experienced on the Real Exam!

  • Questions & Answers

    Terraform Associate 004 Questions & Answers

    167 Questions & Answers

    The ultimate exam preparation tool, Questions & Answers mirrors the actual Terraform Associate 004 exam while allowing you to hone and measure every aspect of your test-taking ability.

  • Study Guide

    Terraform Associate 004 Study Guide

    285 PDF Pages

    Developed by industry experts, this 285-page guide spells out in painstaking detail all of the information you need to ace Terraform Associate 004 exam.

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

Satisfaction Guaranteed

Money Back Guarantee

Testking provides hassle-free money back guarantee with our products. That is because we have 100% trust in the abilities of our professional and experience product team, and our record is a proof of that.

99.6% PASS RATE
Total Cost: $154.98
Bundle Price: $134.99

Purchase Individually

  • Questions & Answers

    Questions & Answers

    167 Questions

    $124.99
  • Study Guide

    Study Guide

    285 PDF Pages

    $29.99

HashiCorp Terraform Associate 004 Practice Test 6

Question 50

After corrective work at Lakeview Data Services, a reviewer requests measurable proof for: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts. Which observation best confirms that the proposed correction worked?

  1. An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.
  2. The combined plan resolves both provider schemas and shows the intended hybrid changes.
  3. The returned object attributes correspond to the intended address and are reviewed securely.
  4. A new environment consumes the same reviewed module version and passes its resource and tag checks.

Explanation

Correct Answer

B:

The combined plan resolves both provider schemas and shows the intended hybrid changes. This directly verifies the corrective action: Use distinct Terraform providers for the supported cloud and on-premises APIs in one configuration or coordinated modules. The measured result specifically addresses the failure at Lakeview Data Services: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts.

Incorrect Answers

A:

An authorized fresh init retrieves the module while a read-only unauthorized identity cannot. This evidence would validate a DIFFERENT correction: Configure secure authenticated source access for initialization without embedding permanent credentials in the module URL. That different correction addresses: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. It does not establish that the Lakeview Data Services issue has been corrected: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts. The relevant measured outcome is: The combined plan resolves both provider schemas and shows the intended hybrid changes.

C:

The returned object attributes correspond to the intended address and are reviewed securely. This evidence would validate a DIFFERENT correction: Use terraform state show with the exact resource address and handle displayed sensitive information appropriately. That different correction addresses: An engineer wants to inspect attributes recorded for a specific managed resource without editing state JSON directly. It does not establish that the Lakeview Data Services issue has been corrected: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts. The relevant measured outcome is: The combined plan resolves both provider schemas and shows the intended hybrid changes.

D:

A new environment consumes the same reviewed module version and passes its resource and tag checks. This evidence would validate a DIFFERENT correction: Adopt reusable Terraform module patterns and enforce review of their inputs and versions. That different correction addresses: An operations group writes bespoke scripts for each environment and struggles to share tested infrastructure patterns. It does not establish that the Lakeview Data Services issue has been corrected: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts. The relevant measured outcome is: The combined plan resolves both provider schemas and shows the intended hybrid changes.

Question 51

The infrastructure engineers at Atlas Platform Services document the following failure during a change review: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts. Which proposed fix addresses the reported root cause?

  1. Configure secure authenticated source access for initialization without embedding permanent credentials in the module URL.
  2. Require reviewed Terraform pull requests and an explicit plan before applying access-rule updates.
  3. Use distinct Terraform providers for the supported cloud and on-premises APIs in one configuration or coordinated modules.
  4. Supply backend configuration through values available during initialization, independently of normal resource evaluation.

Explanation

Correct Answer

C:

Use distinct Terraform providers for the supported cloud and on-premises APIs in one configuration or coordinated modules. This is targeted to the observed Terraform issue: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts. At Atlas Platform Services, the acceptance criterion is not merely a valid plan; the team should verify: The combined plan resolves both provider schemas and shows the intended hybrid changes.

Incorrect Answers

A:

Configure secure authenticated source access for initialization without embedding permanent credentials in the module URL. This would be suitable for a DIFFERENT Terraform problem: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. It does not directly resolve the Atlas Platform Services failure: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts. The required acceptance evidence instead is: The combined plan resolves both provider schemas and shows the intended hybrid changes.

B:

Require reviewed Terraform pull requests and an explicit plan before applying access-rule updates. This would be suitable for a DIFFERENT Terraform problem: Multiple engineers change cloud access rules directly and accidentally reverse each other's settings between releases. It does not directly resolve the Atlas Platform Services failure: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts. The required acceptance evidence instead is: The combined plan resolves both provider schemas and shows the intended hybrid changes.

D:

Supply backend configuration through values available during initialization, independently of normal resource evaluation. This would be suitable for a DIFFERENT Terraform problem: A pipeline attempts to calculate the backend bucket name from an output that is not known until after apply. It does not directly resolve the Atlas Platform Services failure: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts. The required acceptance evidence instead is: The combined plan resolves both provider schemas and shows the intended hybrid changes.

Question 52

The reliability team at Atlas Platform Services is closing an incident described as follows: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts. What result would demonstrate that the identified problem is actually resolved?

  1. A clean init resolves the configured backend before planning any resources.
  2. Repository history identifies the change author and the approved plan reflects only the intended access-rule modification.
  3. An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.
  4. The combined plan resolves both provider schemas and shows the intended hybrid changes.

Explanation

Correct Answer

D:

The combined plan resolves both provider schemas and shows the intended hybrid changes. This directly verifies the corrective action: Use distinct Terraform providers for the supported cloud and on-premises APIs in one configuration or coordinated modules. The measured result specifically addresses the failure at Atlas Platform Services: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts.

Incorrect Answers

A:

A clean init resolves the configured backend before planning any resources. This evidence would validate a DIFFERENT correction: Supply backend configuration through values available during initialization, independently of normal resource evaluation. That different correction addresses: A pipeline attempts to calculate the backend bucket name from an output that is not known until after apply. It does not establish that the Atlas Platform Services issue has been corrected: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts. The relevant measured outcome is: The combined plan resolves both provider schemas and shows the intended hybrid changes.

B:

Repository history identifies the change author and the approved plan reflects only the intended access-rule modification. This evidence would validate a DIFFERENT correction: Require reviewed Terraform pull requests and an explicit plan before applying access-rule updates. That different correction addresses: Multiple engineers change cloud access rules directly and accidentally reverse each other's settings between releases. It does not establish that the Atlas Platform Services issue has been corrected: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts. The relevant measured outcome is: The combined plan resolves both provider schemas and shows the intended hybrid changes.

C:

An authorized fresh init retrieves the module while a read-only unauthorized identity cannot. This evidence would validate a DIFFERENT correction: Configure secure authenticated source access for initialization without embedding permanent credentials in the module URL. That different correction addresses: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. It does not establish that the Atlas Platform Services issue has been corrected: A hybrid IT team wants to declare managed cloud resources alongside supported on-premises virtualization objects without separate ad hoc scripts. The relevant measured outcome is: The combined plan resolves both provider schemas and shows the intended hybrid changes.

Question 53

The infrastructure engineers at Pinecrest Cloud Engineering document the following failure during a change review: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. What is the most appropriate corrective action for this Terraform scenario?

  1. Investigate the active lock holder and underlying backend health instead of bypassing normal locking.
  2. Select the service's correct Terraform provider and resource or data source type instead of assuming provider interchangeability.
  3. Use an appropriately configured shared backend with state locking and controlled access.
  4. Use declarative Terraform code to record the intended infrastructure state rather than relying on current-state screenshots.

Explanation

Correct Answer

B:

Select the service's correct Terraform provider and resource or data source type instead of assuming provider interchangeability. This is targeted to the observed Terraform issue: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. At Pinecrest Cloud Engineering, the acceptance criterion is not merely a valid plan; the team should verify: Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema.

Incorrect Answers

A:

Investigate the active lock holder and underlying backend health instead of bypassing normal locking. This would be suitable for a DIFFERENT Terraform problem: A Terraform job fails to acquire a state lock and its operator reaches immediately for -lock=false to continue in production. It does not directly resolve the Pinecrest Cloud Engineering failure: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. The required acceptance evidence instead is: Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema.

C:

Use an appropriately configured shared backend with state locking and controlled access. This would be suitable for a DIFFERENT Terraform problem: A project shares one unmanaged state file among two engineers, causing each to overwrite the other's latest changes. It does not directly resolve the Pinecrest Cloud Engineering failure: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. The required acceptance evidence instead is: Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema.

D:

Use declarative Terraform code to record the intended infrastructure state rather than relying on current-state screenshots. This would be suitable for a DIFFERENT Terraform problem: An audit asks for the desired infrastructure configuration, but the team offers only screenshots of resources that currently exist. It does not directly resolve the Pinecrest Cloud Engineering failure: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. The required acceptance evidence instead is: Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema.

Question 54

The reliability team at Pinecrest Cloud Engineering is closing an incident described as follows: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. Which controlled check would validate the remediation?

  1. Concurrent plans or applies operate on the same current state without overwriting an intervening state update.
  2. The reviewer can locate the resource definitions in a reviewed repository and compare their planned result with the deployed environment.
  3. Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema.
  4. The next authorized run acquires the lock without a competing state modification.

Explanation

Correct Answer

C:

Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema. This directly verifies the corrective action: Select the service's correct Terraform provider and resource or data source type instead of assuming provider interchangeability. The measured result specifically addresses the failure at Pinecrest Cloud Engineering: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors.

Incorrect Answers

A:

Concurrent plans or applies operate on the same current state without overwriting an intervening state update. This evidence would validate a DIFFERENT correction: Use an appropriately configured shared backend with state locking and controlled access. That different correction addresses: A project shares one unmanaged state file among two engineers, causing each to overwrite the other's latest changes. It does not establish that the Pinecrest Cloud Engineering issue has been corrected: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. The relevant measured outcome is: Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema.

B:

The reviewer can locate the resource definitions in a reviewed repository and compare their planned result with the deployed environment. This evidence would validate a DIFFERENT correction: Use declarative Terraform code to record the intended infrastructure state rather than relying on current-state screenshots. That different correction addresses: An audit asks for the desired infrastructure configuration, but the team offers only screenshots of resources that currently exist. It does not establish that the Pinecrest Cloud Engineering issue has been corrected: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. The relevant measured outcome is: Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema.

D:

The next authorized run acquires the lock without a competing state modification. This evidence would validate a DIFFERENT correction: Investigate the active lock holder and underlying backend health instead of bypassing normal locking. That different correction addresses: A Terraform job fails to acquire a state lock and its operator reaches immediately for -lock=false to continue in production. It does not establish that the Pinecrest Cloud Engineering issue has been corrected: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. The relevant measured outcome is: Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema.

Question 55

Parkside Technology Services is preparing a controlled Terraform update after identifying this fault: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. Which action would best restore the intended infrastructure-as-code workflow?

  1. Configure supported HCP Terraform policy enforcement, with appropriate evaluation and required approvals.
  2. Use Terraform's declarative resource definitions and plan/apply reconciliation instead of imperative replay of creation commands.
  3. Define an output in the child module and, if needed, forward it through a root output.
  4. Select the service's correct Terraform provider and resource or data source type instead of assuming provider interchangeability.

Explanation

Correct Answer

D:

Select the service's correct Terraform provider and resource or data source type instead of assuming provider interchangeability. This is targeted to the observed Terraform issue: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. At Parkside Technology Services, the acceptance criterion is not merely a valid plan; the team should verify: Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema.

Incorrect Answers

A:

Configure supported HCP Terraform policy enforcement, with appropriate evaluation and required approvals. This would be suitable for a DIFFERENT Terraform problem: A compliance group wants to prevent Terraform plans from exposing public storage but the team only documents that policy in a wiki. It does not directly resolve the Parkside Technology Services failure: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. The required acceptance evidence instead is: Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema.

B:

Use Terraform's declarative resource definitions and plan/apply reconciliation instead of imperative replay of creation commands. This would be suitable for a DIFFERENT Terraform problem: An operator treats Terraform as a one-time shell script and expects it to replay every creation command identically on each run. It does not directly resolve the Parkside Technology Services failure: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. The required acceptance evidence instead is: Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema.

C:

Define an output in the child module and, if needed, forward it through a root output. This would be suitable for a DIFFERENT Terraform problem: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. It does not directly resolve the Parkside Technology Services failure: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. The required acceptance evidence instead is: Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema.

Question 56

Parkside Technology Services requires independent evidence before signing off this Terraform correction: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. Which observation best confirms that the proposed correction worked?

  1. Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema.
  2. After apply, terraform output returns the expected endpoint from the managed resource.
  3. A second plan against unchanged configuration and infrastructure proposes no unnecessary new resources.
  4. A deliberately noncompliant speculative plan is blocked or flagged according to the chosen policy enforcement mode.

Explanation

Correct Answer

A:

Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema. This directly verifies the corrective action: Select the service's correct Terraform provider and resource or data source type instead of assuming provider interchangeability. The measured result specifically addresses the failure at Parkside Technology Services: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors.

Incorrect Answers

B:

After apply, terraform output returns the expected endpoint from the managed resource. This evidence would validate a DIFFERENT correction: Define an output in the child module and, if needed, forward it through a root output. That different correction addresses: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. It does not establish that the Parkside Technology Services issue has been corrected: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. The relevant measured outcome is: Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema.

C:

A second plan against unchanged configuration and infrastructure proposes no unnecessary new resources. This evidence would validate a DIFFERENT correction: Use Terraform's declarative resource definitions and plan/apply reconciliation instead of imperative replay of creation commands. That different correction addresses: An operator treats Terraform as a one-time shell script and expects it to replay every creation command identically on each run. It does not establish that the Parkside Technology Services issue has been corrected: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. The relevant measured outcome is: Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema.

D:

A deliberately noncompliant speculative plan is blocked or flagged according to the chosen policy enforcement mode. This evidence would validate a DIFFERENT correction: Configure supported HCP Terraform policy enforcement, with appropriate evaluation and required approvals. That different correction addresses: A compliance group wants to prevent Terraform plans from exposing public storage but the team only documents that policy in a wiki. It does not establish that the Parkside Technology Services issue has been corrected: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. The relevant measured outcome is: Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema.

Question 57

Monarch Cloud Lab is preparing a controlled Terraform update after identifying this fault: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. How should the Terraform engineer correct this specific failure?

  1. Use a supported import block with the target resource address and existing object identifier, then review the resulting plan.
  2. Reconcile compatible provider constraints across root and child modules before selecting an installed version.
  3. Use Terraform providers whose supported resources correspond to the cloud and source-control APIs, with explicit dependencies where needed.
  4. Describe the intended network and related resources as Terraform configuration managed through a reviewed version-control workflow.

Explanation

Correct Answer

C:

Use Terraform providers whose supported resources correspond to the cloud and source-control APIs, with explicit dependencies where needed. This is targeted to the observed Terraform issue: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. At Monarch Cloud Lab, the acceptance criterion is not merely a valid plan; the team should verify: One reviewed plan accounts for both services and identifies which provider owns each operation.

Incorrect Answers

A:

Use a supported import block with the target resource address and existing object identifier, then review the resulting plan. This would be suitable for a DIFFERENT Terraform problem: A Terraform 1.12 project needs a reviewed, repeatable record of existing resource adoption instead of a one-off unlogged CLI import. It does not directly resolve the Monarch Cloud Lab failure: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. The required acceptance evidence instead is: One reviewed plan accounts for both services and identifies which provider owns each operation.

B:

Reconcile compatible provider constraints across root and child modules before selecting an installed version. This would be suitable for a DIFFERENT Terraform problem: A platform's provider version range conflicts with the constraints of a child module and initialization fails with no compatible release. It does not directly resolve the Monarch Cloud Lab failure: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. The required acceptance evidence instead is: One reviewed plan accounts for both services and identifies which provider owns each operation.

D:

Describe the intended network and related resources as Terraform configuration managed through a reviewed version-control workflow. This would be suitable for a DIFFERENT Terraform problem: A small platform team provisions virtual networks through undocumented web-console clicks, so nobody can explain what the next environment should contain. It does not directly resolve the Monarch Cloud Lab failure: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. The required acceptance evidence instead is: One reviewed plan accounts for both services and identifies which provider owns each operation.

Question 58

Monarch Cloud Lab requires independent evidence before signing off this Terraform correction: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. Which verification outcome is the strongest evidence of the required correction?

  1. A clean environment is planned from the checked-in configuration and produces the expected inventory without reconstructing console click history.
  2. The import plan links the existing object to its declared address and records the adoption in versioned configuration.
  3. Terraform init resolves a provider version satisfying every participating required_providers constraint.
  4. One reviewed plan accounts for both services and identifies which provider owns each operation.

Explanation

Correct Answer

D:

One reviewed plan accounts for both services and identifies which provider owns each operation. This directly verifies the corrective action: Use Terraform providers whose supported resources correspond to the cloud and source-control APIs, with explicit dependencies where needed. The measured result specifically addresses the failure at Monarch Cloud Lab: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API.

Incorrect Answers

A:

A clean environment is planned from the checked-in configuration and produces the expected inventory without reconstructing console click history. This evidence would validate a DIFFERENT correction: Describe the intended network and related resources as Terraform configuration managed through a reviewed version-control workflow. That different correction addresses: A small platform team provisions virtual networks through undocumented web-console clicks, so nobody can explain what the next environment should contain. It does not establish that the Monarch Cloud Lab issue has been corrected: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. The relevant measured outcome is: One reviewed plan accounts for both services and identifies which provider owns each operation.

B:

The import plan links the existing object to its declared address and records the adoption in versioned configuration. This evidence would validate a DIFFERENT correction: Use a supported import block with the target resource address and existing object identifier, then review the resulting plan. That different correction addresses: A Terraform 1.12 project needs a reviewed, repeatable record of existing resource adoption instead of a one-off unlogged CLI import. It does not establish that the Monarch Cloud Lab issue has been corrected: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. The relevant measured outcome is: One reviewed plan accounts for both services and identifies which provider owns each operation.

C:

Terraform init resolves a provider version satisfying every participating required_providers constraint. This evidence would validate a DIFFERENT correction: Reconcile compatible provider constraints across root and child modules before selecting an installed version. That different correction addresses: A platform's provider version range conflicts with the constraints of a child module and initialization fails with no compatible release. It does not establish that the Monarch Cloud Lab issue has been corrected: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. The relevant measured outcome is: One reviewed plan accounts for both services and identifies which provider owns each operation.

Question 59

A Terraform maintainer supporting Westhaven Application Ops investigates this scenario: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. What is the most appropriate corrective action for this Terraform scenario?

  1. Use Terraform providers whose supported resources correspond to the cloud and source-control APIs, with explicit dependencies where needed.
  2. Represent repeatable infrastructure declarations in Terraform files and retain their versions with the application release.
  3. Create a governed variable set and scope it to the intended project or workspaces as supported.
  4. Consume the networking module's output from the app module input rather than hardcoding a remote ID.

Explanation

Correct Answer

A:

Use Terraform providers whose supported resources correspond to the cloud and source-control APIs, with explicit dependencies where needed. This is targeted to the observed Terraform issue: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. At Westhaven Application Ops, the acceptance criterion is not merely a valid plan; the team should verify: One reviewed plan accounts for both services and identifies which provider owns each operation.

Incorrect Answers

B:

Represent repeatable infrastructure declarations in Terraform files and retain their versions with the application release. This would be suitable for a DIFFERENT Terraform problem: A team cannot reproduce its disaster-recovery environment because the settings live only in an engineer's memory. It does not directly resolve the Westhaven Application Ops failure: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. The required acceptance evidence instead is: One reviewed plan accounts for both services and identifies which provider owns each operation.

C:

Create a governed variable set and scope it to the intended project or workspaces as supported. This would be suitable for a DIFFERENT Terraform problem: A platform team wants to share identical non-secret configuration settings across many HCP Terraform workspaces without copying them individually. It does not directly resolve the Westhaven Application Ops failure: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. The required acceptance evidence instead is: One reviewed plan accounts for both services and identifies which provider owns each operation.

D:

Consume the networking module's output from the app module input rather than hardcoding a remote ID. This would be suitable for a DIFFERENT Terraform problem: A root module needs a VPC ID created by a networking module but copies an ID from another workspace. It does not directly resolve the Westhaven Application Ops failure: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. The required acceptance evidence instead is: One reviewed plan accounts for both services and identifies which provider owns each operation.

Question 60

A controlled test for Westhaven Application Ops focuses on the original failure: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. Which controlled check would validate the remediation?

  1. The application resources depend on the newly produced network output and plan with the correct VPC ID.
  2. One reviewed plan accounts for both services and identifies which provider owns each operation.
  3. A test change reaches only the authorized workspaces associated with that variable set.
  4. A separate recovery workspace produces the intended topology from a known configuration revision and documented inputs.

Explanation

Correct Answer

B:

One reviewed plan accounts for both services and identifies which provider owns each operation. This directly verifies the corrective action: Use Terraform providers whose supported resources correspond to the cloud and source-control APIs, with explicit dependencies where needed. The measured result specifically addresses the failure at Westhaven Application Ops: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API.

Incorrect Answers

A:

The application resources depend on the newly produced network output and plan with the correct VPC ID. This evidence would validate a DIFFERENT correction: Consume the networking module's output from the app module input rather than hardcoding a remote ID. That different correction addresses: A root module needs a VPC ID created by a networking module but copies an ID from another workspace. It does not establish that the Westhaven Application Ops issue has been corrected: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. The relevant measured outcome is: One reviewed plan accounts for both services and identifies which provider owns each operation.

C:

A test change reaches only the authorized workspaces associated with that variable set. This evidence would validate a DIFFERENT correction: Create a governed variable set and scope it to the intended project or workspaces as supported. That different correction addresses: A platform team wants to share identical non-secret configuration settings across many HCP Terraform workspaces without copying them individually. It does not establish that the Westhaven Application Ops issue has been corrected: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. The relevant measured outcome is: One reviewed plan accounts for both services and identifies which provider owns each operation.

D:

A separate recovery workspace produces the intended topology from a known configuration revision and documented inputs. This evidence would validate a DIFFERENT correction: Represent repeatable infrastructure declarations in Terraform files and retain their versions with the application release. That different correction addresses: A team cannot reproduce its disaster-recovery environment because the settings live only in an engineer's memory. It does not establish that the Westhaven Application Ops issue has been corrected: A team needs to coordinate infrastructure and a managed source-control repository but assumes Terraform's execution model requires separate tools for every API. The relevant measured outcome is: One reviewed plan accounts for both services and identifies which provider owns each operation.