HashiCorp Terraform Associate (HashiCorp Certified: Terraform Associate) Practice Test 79

Question 780

A Terraform rollout has separate acceptance criteria: avoid staging changes being applied to production state and retain independent records for separate infrastructure lifecycles. Which combined approach directly satisfies the two criteria?

  1. Keep separate states per HCP Terraform workspace + Keep workspace run history separate
  2. Use a workspace for each independently deployed environment + Distinguish HCP workspaces from CLI workspaces
  3. Use organization-wide variable sets cautiously + Use project-level team access where appropriate
  4. Use a workspace for each independently deployed environment + Keep workspace run history separate

Explanation

Correct Answer

D:

For the first criterion, a deployment environment should have its own variables, state, and run controls; shared module code can still be reused between environments; this behavior should be assessed against the concrete need to avoid staging changes being applied to production state and retain independent records for separate infrastructure lifecycles; this directly addresses the need to avoid staging changes being applied to production state. For the separate second criterion, each workspace stores its own run and state version records; a project groups those records conceptually rather than producing one combined history; this behavior should be assessed against the concrete need to avoid staging changes being applied to production state and retain independent records for separate infrastructure lifecycles; this fulfills the need to retain independent records for separate infrastructure lifecycles. Together they cover the independent tasks of avoid staging changes being applied to production state and retain independent records for separate infrastructure lifecycles without exchanging the responsibilities of these features.

Incorrect Answers

A:

The second measure does meet the retain independent records for separate infrastructure lifecycles requirement, but the first is designed for another concern: Workspace state boundaries keep one apply from automatically modifying another workspace's objects; project membership does not merge states; this behavior should be assessed against the concrete need to avoid staging changes being applied to production state and retain independent records for separate infrastructure lifecycles. That first component is designed to isolate resource bindings between independently managed deployments, which does not accomplish the requested task to avoid staging changes being applied to production state, even though the other measure satisfies retain independent records for separate infrastructure lifecycles.

B:

The first measure meets the requirement to avoid staging changes being applied to production state, but its partner serves a different role: HCP workspaces carry roles, configuration links, variable settings, and history; cLI workspaces mainly distinguish multiple state instances in a backend; this behavior should be assessed against the concrete need to avoid staging changes being applied to production state and retain independent records for separate infrastructure lifecycles. That second component is designed to avoid equating hosted run projects with local named state variants, so the still-missing criterion is to retain independent records for separate infrastructure lifecycles, while the first criterion remains avoid staging changes being applied to production state.

C:

The first measure is intended to share truly global settings without surprising unrelated workspaces: Organization-scoped values affect a broad audience and may have precedence interactions; more limited scope is preferable for environment-specific secrets; this behavior should be assessed against the concrete need to avoid staging changes being applied to production state and retain independent records for separate infrastructure lifecycles. The second measure is intended to apply consistent permissions to related workspaces: Project-level organization can reduce repeated access assignments; fine-grained workspace controls still determine who can operate a specific workspace; this behavior should be assessed against the concrete need to avoid staging changes being applied to production state and retain independent records for separate infrastructure lifecycles. Neither is the directly designated method for the separate goals of avoid staging changes being applied to production state and retain independent records for separate infrastructure lifecycles in this review.

Question 781

A team needs to migrate local state to a hosted workspace. The team must both trigger run activity from repository updates and retain existing resource ownership while adopting HCP storage. Which paired choice implements those distinct goals?

  1. Use terraform init after changing cloud workspace settings + Use the API to queue runs
  2. Connect an HCP workspace to version control + Configure a cloud block with organization and workspace
  3. Connect an HCP workspace to version control + Migrate from local state with a verified backup
  4. Configure workspace execution mode + Migrate from local state with a verified backup

Explanation

Correct Answer

C:

For the first criterion, a VCS-backed workspace gets configuration from its linked repository and working directory; cLI-driven operation uses a different trigger path; this behavior should be assessed against the concrete need to trigger run activity from repository updates and retain existing resource ownership while adopting HCP storage; this directly addresses the need to trigger run activity from repository updates. For the separate second criterion, the initialization workflow can transfer state after connection settings change; migration should preserve tracked objects rather than recreating production resources; this behavior should be assessed against the concrete need to trigger run activity from repository updates and retain existing resource ownership while adopting HCP storage; this fulfills the need to retain existing resource ownership while adopting HCP storage. Together they cover the independent tasks of trigger run activity from repository updates and retain existing resource ownership while adopting HCP storage without exchanging the responsibilities of these features.

Incorrect Answers

A:

The first measure is intended to ensure local metadata reflects the chosen HCP connection: Terraform needs to initialize changed cloud/backend relationships before plans. terraform fmt cannot establish the connection or move state; this behavior should be assessed against the concrete need to trigger run activity from repository updates and retain existing resource ownership while adopting HCP storage. The second measure is intended to integrate provisioning requests with internal automation services: API-driven runs let software submit configurations and initiate changes under authorized tokens; they are not the same as publishing a module version; this behavior should be assessed against the concrete need to trigger run activity from repository updates and retain existing resource ownership while adopting HCP storage. Neither is the directly designated method for the separate goals of trigger run activity from repository updates and retain existing resource ownership while adopting HCP storage in this review.

B:

The first measure meets the requirement to trigger run activity from repository updates, but its partner serves a different role: The cloud integration identifies the HCP organization and workspace mapping; terraform then uses the selected HCP workflow for state and runs; this behavior should be assessed against the concrete need to trigger run activity from repository updates and retain existing resource ownership while adopting HCP storage. That second component is designed to connect Terraform configuration to an HCP Terraform workspace, so the still-missing criterion is to retain existing resource ownership while adopting HCP storage, while the first criterion remains trigger run activity from repository updates.

D:

The second measure does meet the retain existing resource ownership while adopting HCP storage requirement, but the first is designed for another concern: Remote execution runs Terraform in HCP-managed infrastructure; local execution keeps operations on the initiating host; in both cases workspace state management matters; this behavior should be assessed against the concrete need to trigger run activity from repository updates and retain existing resource ownership while adopting HCP storage. That first component is designed to choose whether Terraform runs remotely or locally for that workspace, which does not accomplish the requested task to trigger run activity from repository updates, even though the other measure satisfies retain existing resource ownership while adopting HCP storage.

Question 782

The immediate Terraform task is to upload configuration and initiate runs from the Terraform CLI. Which method handles that task most directly?

  1. Set workspace Terraform version intentionally
  2. Provide workspace variables
  3. Use the CLI-driven workflow
  4. Use remote execution mode for hosted runs

Explanation

Correct Answer

C:

CLI-driven HCP workflows let engineers operate from a terminal while HCP manages state and possibly remote execution; a VCS webhook is not mandatory in this workflow; this behavior should be assessed against the concrete need to upload configuration and initiate runs from the Terraform CLI. This directly supports the task to upload configuration and initiate runs from the Terraform CLI during a platform review.

Incorrect Answers

A:

HCP Terraform allows version configuration per workspace; the tested Associate 004 objectives specifically target Terraform 1.12 behavior; this behavior should be assessed against the concrete need to upload configuration and initiate runs from the Terraform CLI. That can be useful when the aim is to use a defined Terraform release for HCP-managed runs, but it does not directly deliver the requested ability to upload configuration and initiate runs from the Terraform CLI.

B:

Workspace variables configure run-specific inputs and provider environments; sensitive values need correct handling and permissions; this behavior should be assessed against the concrete need to upload configuration and initiate runs from the Terraform CLI. The distinction matters here: using that mechanism to supply HCL and environment variables for hosted executions would still leave the objective to upload configuration and initiate runs from the Terraform CLI unmet.

D:

Remote runs use the workspace's configuration, variables, credentials, and state in a controlled run environment; a local terminal does not need direct access to every cloud API; this behavior should be assessed against the concrete need to upload configuration and initiate runs from the Terraform CLI. The stated requirement is to upload configuration and initiate runs from the Terraform CLI, not to perform plan and apply on HCP Terraform-managed workers; this alternative addresses a different control or phase.

Question 783

In a planned migration, the requested result is to connect infrastructure change proposals to normal code-review workflow. What should the engineer select?

  1. Use continuous validation with checks where available
  2. Use notifications for run status updates
  3. Use policy sets with Sentinel or OPA where supported
  4. Use VCS integration with review processes

Explanation

Correct Answer

D:

Linked repositories can trigger speculative planning on changes and apply workflows after merge, according to settings; review controls remain part of governance; this behavior should be assessed against the concrete need to connect infrastructure change proposals to normal code-review workflow. This directly supports the task to connect infrastructure change proposals to normal code-review workflow during a deployment checklist.

Incorrect Answers

A:

Continuous validation evaluates Terraform check blocks for supported workspaces; it adds health visibility rather than replacing blocking resource preconditions; this behavior should be assessed against the concrete need to connect infrastructure change proposals to normal code-review workflow. The stated requirement is to connect infrastructure change proposals to normal code-review workflow, not to monitor declared infrastructure assertions on an ongoing basis; this alternative addresses a different control or phase.

B:

Notifications can connect HCP Terraform activity with collaboration systems; they do not approve or apply infrastructure changes by themselves; this behavior should be assessed against the concrete need to connect infrastructure change proposals to normal code-review workflow. That can be useful when the aim is to alert operators when important workspace run events occur, but it does not directly deliver the requested ability to connect infrastructure change proposals to normal code-review workflow.

C:

Policy-as-code checks Terraform plans and can block violations depending on enforcement settings; it is not just a source-code formatter; this behavior should be assessed against the concrete need to connect infrastructure change proposals to normal code-review workflow. The distinction matters here: using that mechanism to evaluate planned changes against organization governance rules would still leave the objective to connect infrastructure change proposals to normal code-review workflow unmet.

Question 784

An engineer needs to avoid equating hosted run projects with local named state variants as part of a planned migration. Which option is the best fit?

  1. Use a project to separate application teams
  2. Use workspace tags to categorize infrastructure
  3. Use a workspace for each independently deployed environment
  4. Distinguish HCP workspaces from CLI workspaces

Explanation

Correct Answer

D:

HCP workspaces carry roles, configuration links, variable settings, and history; cLI workspaces mainly distinguish multiple state instances in a backend; this behavior should be assessed against the concrete need to avoid equating hosted run projects with local named state variants. This directly supports the task to avoid equating hosted run projects with local named state variants during a maintenance request.

Incorrect Answers

A:

Projects are organizational containers under an HCP Terraform organization; they are distinct from cloud provider projects or subscriptions; this behavior should be assessed against the concrete need to avoid equating hosted run projects with local named state variants. It may support a related workflow, but the question specifically requires the mechanism for avoid equating hosted run projects with local named state variants rather than delegate ownership without creating a new organization for every service.

B:

Tags provide metadata for discovery and certain governance features; they do not substitute for a state key or resource address; this behavior should be assessed against the concrete need to avoid equating hosted run projects with local named state variants. The stated requirement is to avoid equating hosted run projects with local named state variants, not to make filtering and policy targeting easier across a large organization; this alternative addresses a different control or phase.

C:

A deployment environment should have its own variables, state, and run controls; shared module code can still be reused between environments; this behavior should be assessed against the concrete need to avoid equating hosted run projects with local named state variants. That can be useful when the aim is to avoid staging changes being applied to production state, but it does not directly deliver the requested ability to avoid equating hosted run projects with local named state variants.

Question 785

A Terraform rollout has separate acceptance criteria: manage a distinct state and run history in HCP Terraform and upload configuration and initiate runs from the Terraform CLI. Which combined approach directly satisfies the two criteria?

  1. Create a workspace for one infrastructure collection + Create an HCP Terraform organization
  2. Use local execution mode with hosted state when supported + Use the CLI-driven workflow
  3. Use an API-driven workflow + Connect a workspace to a VCS repository
  4. Create a workspace for one infrastructure collection + Provide workspace variables
  5. Create a workspace for one infrastructure collection + Use the CLI-driven workflow
  6. Inspect HCP Terraform run history + Use the CLI-driven workflow

Explanation

Correct Answer

E:

For the first criterion, a workspace stores configuration association, variables, state versions, and run records; it represents a separate managed infrastructure collection; this behavior should be assessed against the concrete need to manage a distinct state and run history in HCP Terraform and upload configuration and initiate runs from the Terraform CLI; this directly addresses the need to manage a distinct state and run history in HCP Terraform. For the separate second criterion, cLI-driven HCP workflows let engineers operate from a terminal while HCP manages state and possibly remote execution; a VCS webhook is not mandatory in this workflow; this behavior should be assessed against the concrete need to manage a distinct state and run history in HCP Terraform and upload configuration and initiate runs from the Terraform CLI; this fulfills the need to upload configuration and initiate runs from the Terraform CLI. Together they cover the independent tasks of manage a distinct state and run history in HCP Terraform and upload configuration and initiate runs from the Terraform CLI without exchanging the responsibilities of these features.

Incorrect Answers

A:

The first measure meets the requirement to manage a distinct state and run history in HCP Terraform, but its partner serves a different role: Organizations contain projects and workspaces and define access controls; they are not the same thing as local Terraform CLI workspaces; this behavior should be assessed against the concrete need to manage a distinct state and run history in HCP Terraform and upload configuration and initiate runs from the Terraform CLI. That second component is designed to establish the top-level boundary for workspaces, teams, and shared settings, so the still-missing criterion is to upload configuration and initiate runs from the Terraform CLI, while the first criterion remains manage a distinct state and run history in HCP Terraform.

B:

The second measure does meet the upload configuration and initiate runs from the Terraform CLI requirement, but the first is designed for another concern: The workspace can retain remote state while computation occurs locally; local credentials and network access still matter in this mode; this behavior should be assessed against the concrete need to manage a distinct state and run history in HCP Terraform and upload configuration and initiate runs from the Terraform CLI. That first component is designed to run Terraform on the user's machine while storing state in HCP Terraform, which does not accomplish the requested task to manage a distinct state and run history in HCP Terraform, even though the other measure satisfies upload configuration and initiate runs from the Terraform CLI.

C:

The first measure is intended to start and manage runs from a service integration: The HCP Terraform API allows automation to upload configurations and queue runs; it is distinct from an interactive CLI or automatic VCS trigger; this behavior should be assessed against the concrete need to manage a distinct state and run history in HCP Terraform and upload configuration and initiate runs from the Terraform CLI. The second measure is intended to trigger runs when tracked configuration changes are committed: Version-control integration links a branch and working directory to a workspace; applicable changes can queue speculative plans or runs through HCP Terraform; this behavior should be assessed against the concrete need to manage a distinct state and run history in HCP Terraform and upload configuration and initiate runs from the Terraform CLI. Neither is the directly designated method for the separate goals of manage a distinct state and run history in HCP Terraform and upload configuration and initiate runs from the Terraform CLI in this review.

D:

The first measure meets the requirement to manage a distinct state and run history in HCP Terraform, but its partner serves a different role: Workspace variables configure run-specific inputs and provider environments; sensitive values need correct handling and permissions; this behavior should be assessed against the concrete need to manage a distinct state and run history in HCP Terraform and upload configuration and initiate runs from the Terraform CLI. That second component is designed to supply HCL and environment variables for hosted executions, so the still-missing criterion is to upload configuration and initiate runs from the Terraform CLI, while the first criterion remains manage a distinct state and run history in HCP Terraform.

F:

The second measure does meet the upload configuration and initiate runs from the Terraform CLI requirement, but the first is designed for another concern: The workspace retains run records to aid collaboration and auditing; this is more structured than trying to reconstruct every past local console session; this behavior should be assessed against the concrete need to manage a distinct state and run history in HCP Terraform and upload configuration and initiate runs from the Terraform CLI. That first component is designed to review prior plans, applies, comments, and outcomes, which does not accomplish the requested task to manage a distinct state and run history in HCP Terraform, even though the other measure satisfies upload configuration and initiate runs from the Terraform CLI.

Question 786

An enterprise wants collaboration and policy controls around changes. The team must both invoke approved checks or third-party services in the run lifecycle and monitor declared infrastructure assertions on an ongoing basis. Which paired choice implements those distinct goals?

  1. Use run history for auditability + Use continuous validation with checks where available
  2. Use run tasks for external integrations + Use VCS integration with review processes
  3. Use run tasks for external integrations + Use continuous validation with checks where available
  4. Use organization-level access controls + Use dynamic provider credentials where supported

Explanation

Correct Answer

C:

For the first criterion, run tasks integrate external analysis with HCP Terraform runs; they differ from providers, which implement resource CRUD operations; this behavior should be assessed against the concrete need to invoke approved checks or third-party services in the run lifecycle and monitor declared infrastructure assertions on an ongoing basis; this directly addresses the need to invoke approved checks or third-party services in the run lifecycle. For the separate second criterion, continuous validation evaluates Terraform check blocks for supported workspaces; it adds health visibility rather than replacing blocking resource preconditions; this behavior should be assessed against the concrete need to invoke approved checks or third-party services in the run lifecycle and monitor declared infrastructure assertions on an ongoing basis; this fulfills the need to monitor declared infrastructure assertions on an ongoing basis. Together they cover the independent tasks of invoke approved checks or third-party services in the run lifecycle and monitor declared infrastructure assertions on an ongoing basis without exchanging the responsibilities of these features.

Incorrect Answers

A:

The second measure does meet the monitor declared infrastructure assertions on an ongoing basis requirement, but the first is designed for another concern: HCP Terraform records run activity and statuses; it does not remove the need for credential controls and code-review practices; this behavior should be assessed against the concrete need to invoke approved checks or third-party services in the run lifecycle and monitor declared infrastructure assertions on an ongoing basis. That first component is designed to review who proposed and applied changes in each workspace, which does not accomplish the requested task to invoke approved checks or third-party services in the run lifecycle, even though the other measure satisfies monitor declared infrastructure assertions on an ongoing basis.

B:

The first measure meets the requirement to invoke approved checks or third-party services in the run lifecycle, but its partner serves a different role: Linked repositories can trigger speculative planning on changes and apply workflows after merge, according to settings; review controls remain part of governance; this behavior should be assessed against the concrete need to invoke approved checks or third-party services in the run lifecycle and monitor declared infrastructure assertions on an ongoing basis. That second component is designed to connect infrastructure change proposals to normal code-review workflow, so the still-missing criterion is to monitor declared infrastructure assertions on an ongoing basis, while the first criterion remains invoke approved checks or third-party services in the run lifecycle.

D:

The first measure is intended to separate platform administration from ordinary workspace operation: HCP Terraform distinguishes organization governance from scoped workspace permissions; a workspace user does not automatically administer all projects; this behavior should be assessed against the concrete need to invoke approved checks or third-party services in the run lifecycle and monitor declared infrastructure assertions on an ongoing basis. The second measure is intended to issue short-lived cloud credentials for hosted runs: Dynamic credentials reduce use of long-lived static secrets; the target cloud still enforces the identity's permissions; this behavior should be assessed against the concrete need to invoke approved checks or third-party services in the run lifecycle and monitor declared infrastructure assertions on an ongoing basis. Neither is the directly designated method for the separate goals of invoke approved checks or third-party services in the run lifecycle and monitor declared infrastructure assertions on an ongoing basis in this review.

Question 787

A Terraform review separates 2 requirements: (1) point one workspace to its own Terraform root in a shared repository; (2) avoid staging changes being applied to production state. Identify the two features that each directly handle one of those requirements. Choose TWO.

  1. Keep separate states per HCP Terraform workspace
  2. Use project-level team access where appropriate
  3. Use run triggers between workspaces
  4. Use a workspace for each independently deployed environment
  5. Use a workspace working directory in a monorepo
  6. Keep workspace run history separate

Explanation

Correct Answers

D:

A deployment environment should have its own variables, state, and run controls; shared module code can still be reused between environments; this behavior should be assessed against the concrete need to point one workspace to its own Terraform root in a shared repository and avoid staging changes being applied to production state. This matches the distinct objective to avoid staging changes being applied to production state; the remaining chosen features address point one workspace to its own Terraform root in a shared repository.

E:

Different workspaces can target separate folders or branches as configured; the entire repository need not be one stateful deployment; this behavior should be assessed against the concrete need to point one workspace to its own Terraform root in a shared repository and avoid staging changes being applied to production state. This matches the distinct objective to point one workspace to its own Terraform root in a shared repository; the remaining chosen features address avoid staging changes being applied to production state.

Incorrect Answers

A:

Workspace state boundaries keep one apply from automatically modifying another workspace's objects; project membership does not merge states; this behavior should be assessed against the concrete need to point one workspace to its own Terraform root in a shared repository and avoid staging changes being applied to production state. Its main application is to isolate resource bindings between independently managed deployments; the checklist instead asks for point one workspace to its own Terraform root in a shared repository; and avoid staging changes being applied to production state. None of those distinct criteria specifically calls for this alternative.

B:

Project-level organization can reduce repeated access assignments; fine-grained workspace controls still determine who can operate a specific workspace; this behavior should be assessed against the concrete need to point one workspace to its own Terraform root in a shared repository and avoid staging changes being applied to production state. Its main application is to apply consistent permissions to related workspaces; the checklist instead asks for point one workspace to its own Terraform root in a shared repository; and avoid staging changes being applied to production state. None of those distinct criteria specifically calls for this alternative.

C:

Run triggers coordinate separate stateful workspaces in a dependency-like workflow; they do not combine both workspaces into one Terraform apply; this behavior should be assessed against the concrete need to point one workspace to its own Terraform root in a shared repository and avoid staging changes being applied to production state. Its main application is to queue a downstream run after a successful upstream apply; the checklist instead asks for point one workspace to its own Terraform root in a shared repository; and avoid staging changes being applied to production state. None of those distinct criteria specifically calls for this alternative.

F:

Each workspace stores its own run and state version records; a project groups those records conceptually rather than producing one combined history; this behavior should be assessed against the concrete need to point one workspace to its own Terraform root in a shared repository and avoid staging changes being applied to production state. Its main application is to retain independent records for separate infrastructure lifecycles; the checklist instead asks for point one workspace to its own Terraform root in a shared repository; and avoid staging changes being applied to production state. None of those distinct criteria specifically calls for this alternative.

Question 788

An engineering team wants shared remote execution and state. The team must both start and manage runs from a service integration and review prior plans, applies, comments, and outcomes. Which paired choice implements those distinct goals?

  1. Provide workspace variables + Inspect HCP Terraform run history
  2. Use an API-driven workflow + Use local execution mode with hosted state when supported
  3. Set workspace Terraform version intentionally + Inspect HCP Terraform run history
  4. Create an HCP Terraform organization + Use the CLI-driven workflow
  5. Use an API-driven workflow + Inspect HCP Terraform run history
  6. Use an API-driven workflow + Use remote execution mode for hosted runs

Explanation

Correct Answer

E:

For the first criterion, the HCP Terraform API allows automation to upload configurations and queue runs; it is distinct from an interactive CLI or automatic VCS trigger; this behavior should be assessed against the concrete need to start and manage runs from a service integration and review prior plans, applies, comments, and outcomes; this directly addresses the need to start and manage runs from a service integration. For the separate second criterion, the workspace retains run records to aid collaboration and auditing; this is more structured than trying to reconstruct every past local console session; this behavior should be assessed against the concrete need to start and manage runs from a service integration and review prior plans, applies, comments, and outcomes; this fulfills the need to review prior plans, applies, comments, and outcomes. Together they cover the independent tasks of start and manage runs from a service integration and review prior plans, applies, comments, and outcomes without exchanging the responsibilities of these features.

Incorrect Answers

A:

The second measure does meet the review prior plans, applies, comments, and outcomes requirement, but the first is designed for another concern: Workspace variables configure run-specific inputs and provider environments; sensitive values need correct handling and permissions; this behavior should be assessed against the concrete need to start and manage runs from a service integration and review prior plans, applies, comments, and outcomes. That first component is designed to supply HCL and environment variables for hosted executions, which does not accomplish the requested task to start and manage runs from a service integration, even though the other measure satisfies review prior plans, applies, comments, and outcomes.

B:

The first measure meets the requirement to start and manage runs from a service integration, but its partner serves a different role: The workspace can retain remote state while computation occurs locally; local credentials and network access still matter in this mode; this behavior should be assessed against the concrete need to start and manage runs from a service integration and review prior plans, applies, comments, and outcomes. That second component is designed to run Terraform on the user's machine while storing state in HCP Terraform, so the still-missing criterion is to review prior plans, applies, comments, and outcomes, while the first criterion remains start and manage runs from a service integration.

C:

The second measure does meet the review prior plans, applies, comments, and outcomes requirement, but the first is designed for another concern: HCP Terraform allows version configuration per workspace; the tested Associate 004 objectives specifically target Terraform 1.12 behavior; this behavior should be assessed against the concrete need to start and manage runs from a service integration and review prior plans, applies, comments, and outcomes. That first component is designed to use a defined Terraform release for HCP-managed runs, which does not accomplish the requested task to start and manage runs from a service integration, even though the other measure satisfies review prior plans, applies, comments, and outcomes.

D:

The first measure is intended to establish the top-level boundary for workspaces, teams, and shared settings: Organizations contain projects and workspaces and define access controls; they are not the same thing as local Terraform CLI workspaces; this behavior should be assessed against the concrete need to start and manage runs from a service integration and review prior plans, applies, comments, and outcomes. The second measure is intended to upload configuration and initiate runs from the Terraform CLI: CLI-driven HCP workflows let engineers operate from a terminal while HCP manages state and possibly remote execution; a VCS webhook is not mandatory in this workflow; this behavior should be assessed against the concrete need to start and manage runs from a service integration and review prior plans, applies, comments, and outcomes. Neither is the directly designated method for the separate goals of start and manage runs from a service integration and review prior plans, applies, comments, and outcomes in this review.

F:

The first measure meets the requirement to start and manage runs from a service integration, but its partner serves a different role: Remote runs use the workspace's configuration, variables, credentials, and state in a controlled run environment; a local terminal does not need direct access to every cloud API; this behavior should be assessed against the concrete need to start and manage runs from a service integration and review prior plans, applies, comments, and outcomes. That second component is designed to perform plan and apply on HCP Terraform-managed workers, so the still-missing criterion is to review prior plans, applies, comments, and outcomes, while the first criterion remains start and manage runs from a service integration.

Question 789

A Terraform review separates 2 requirements: (1) evaluate planned changes against organization governance rules; (2) apply shared variables to several workspaces or projects consistently. Identify the two features that each directly handle one of those requirements. Choose TWO.

  1. Use teams and workspace access permissions
  2. Use policy enforcement levels intentionally
  3. Use variable sets
  4. Use the HCP Terraform Explorer for estate visibility
  5. Use policy sets with Sentinel or OPA where supported

Explanation

Correct Answers

C:

Variable sets reduce duplication of common configuration values; they do not make unrelated states merge into one inventory; this behavior should be assessed against the concrete need to evaluate planned changes against organization governance rules and apply shared variables to several workspaces or projects consistently. This matches the distinct objective to apply shared variables to several workspaces or projects consistently; the remaining chosen features address evaluate planned changes against organization governance rules.

E:

Policy-as-code checks Terraform plans and can block violations depending on enforcement settings; it is not just a source-code formatter; this behavior should be assessed against the concrete need to evaluate planned changes against organization governance rules and apply shared variables to several workspaces or projects consistently. This matches the distinct objective to evaluate planned changes against organization governance rules; the remaining chosen features address apply shared variables to several workspaces or projects consistently.

Incorrect Answers

A:

HCP Terraform supports team-based authorization around workspaces; sharing an organization login undermines individual accountability; this behavior should be assessed against the concrete need to evaluate planned changes against organization governance rules and apply shared variables to several workspaces or projects consistently. Its main application is to delegate run, variable, and administrative rights by responsibility; the checklist instead asks for evaluate planned changes against organization governance rules; and apply shared variables to several workspaces or projects consistently. None of those distinct criteria specifically calls for this alternative.

B:

Enforcement level determines the operational effect of a failure; some policy modes permit overrides according to policy and organizational privileges; this behavior should be assessed against the concrete need to evaluate planned changes against organization governance rules and apply shared variables to several workspaces or projects consistently. Its main application is to choose whether a failed policy blocks or warns on a run; the checklist instead asks for evaluate planned changes against organization governance rules; and apply shared variables to several workspaces or projects consistently. None of those distinct criteria specifically calls for this alternative.

D:

Explorer gives organizational visibility into workspace resources and state-derived information; it is not a replacement for the remote provider's entire inventory; this behavior should be assessed against the concrete need to evaluate planned changes against organization governance rules and apply shared variables to several workspaces or projects consistently. Its main application is to inspect managed infrastructure and run information across workspaces; the checklist instead asks for evaluate planned changes against organization governance rules; and apply shared variables to several workspaces or projects consistently. None of those distinct criteria specifically calls for this alternative.

Question 790

During a deployment checklist, one task is to make filtering and policy targeting easier across a large organization, while another is to delegate ownership without creating a new organization for every service. Select the matching pair of techniques.

  1. Place workspaces into projects + Use a project to separate application teams
  2. Use organization-wide variable sets cautiously + Keep separate states per HCP Terraform workspace
  3. Use workspace tags to categorize infrastructure + Use a project to separate application teams
  4. Use workspace tags to categorize infrastructure + Use a workspace working directory in a monorepo

Explanation

Correct Answer

C:

For the first criterion, tags provide metadata for discovery and certain governance features; they do not substitute for a state key or resource address; this behavior should be assessed against the concrete need to make filtering and policy targeting easier across a large organization and delegate ownership without creating a new organization for every service; this directly addresses the need to make filtering and policy targeting easier across a large organization. For the separate second criterion, projects are organizational containers under an HCP Terraform organization; they are distinct from cloud provider projects or subscriptions; this behavior should be assessed against the concrete need to make filtering and policy targeting easier across a large organization and delegate ownership without creating a new organization for every service; this fulfills the need to delegate ownership without creating a new organization for every service. Together they cover the independent tasks of make filtering and policy targeting easier across a large organization and delegate ownership without creating a new organization for every service without exchanging the responsibilities of these features.

Incorrect Answers

A:

The second measure does meet the delegate ownership without creating a new organization for every service requirement, but the first is designed for another concern: Projects organize workspaces by service, team, or environment; each workspace continues to have its own state and run lifecycle; this behavior should be assessed against the concrete need to make filtering and policy targeting easier across a large organization and delegate ownership without creating a new organization for every service. That first component is designed to group related infrastructure collections for management and access policies, which does not accomplish the requested task to make filtering and policy targeting easier across a large organization, even though the other measure satisfies delegate ownership without creating a new organization for every service.

B:

The first measure is intended to share truly global settings without surprising unrelated workspaces: Organization-scoped values affect a broad audience and may have precedence interactions; more limited scope is preferable for environment-specific secrets; this behavior should be assessed against the concrete need to make filtering and policy targeting easier across a large organization and delegate ownership without creating a new organization for every service. The second measure is intended to isolate resource bindings between independently managed deployments: Workspace state boundaries keep one apply from automatically modifying another workspace's objects; project membership does not merge states; this behavior should be assessed against the concrete need to make filtering and policy targeting easier across a large organization and delegate ownership without creating a new organization for every service. Neither is the directly designated method for the separate goals of make filtering and policy targeting easier across a large organization and delegate ownership without creating a new organization for every service in this review.

D:

The first measure meets the requirement to make filtering and policy targeting easier across a large organization, but its partner serves a different role: Different workspaces can target separate folders or branches as configured; the entire repository need not be one stateful deployment; this behavior should be assessed against the concrete need to make filtering and policy targeting easier across a large organization and delegate ownership without creating a new organization for every service. That second component is designed to point one workspace to its own Terraform root in a shared repository, so the still-missing criterion is to delegate ownership without creating a new organization for every service, while the first criterion remains make filtering and policy targeting easier across a large organization.

HashiCorp Certified: Terraform Associate (Terraform Associate) Practice Tests