Skip to content

004 · Domain 8: HCP Terraform · 12% of the exam

Task 8.2: Describe HCP Terraform collaboration and governance features

Teams and permissions, the private registry, Sentinel and OPA policies, dynamic provider credentials, health assessments with drift detection, explorer, and change requests.

Study it

Sample questions

Try each one before opening the answer. Every option is explained, with the HashiCorp documentation page that proves it.

Question 1 · choose 1

A compliance team wants every run in a set of workspaces to be checked against rules such as allowed regions and required tags, after the plan and before anything is applied. Which HCP Terraform feature provides this?

  1. AVariable sets that hold the allowed regions and tags for those workspaces
  2. BAgent pools that run the checks inside the compliance team's network
  3. CPolicy sets with Sentinel or OPA policies applied to those workspaces
  4. DNotification settings that email the compliance team about every plan
Show the answer and why
  • AVariable sets that hold the allowed regions and tags for those workspaces

    Incorrect

    Stored values alone cannot evaluate a plan against rules.

  • BAgent pools that run the checks inside the compliance team's network

    Incorrect

    Agents execute Terraform runs in private networks; they do not define rules.

  • CPolicy sets with Sentinel or OPA policies applied to those workspaces

    Correct

    HCP Terraform checks the plan against the policy sets applied to a workspace during each run; policies are written in Sentinel or OPA.

  • DNotification settings that email the compliance team about every plan

    Incorrect

    Notifications report events; a person would still have to check each plan.

Policy as code in HCP Terraform runs between plan and apply, on every run.

Question 2 · choose 2

A platform team builds approved networking modules and wants every team in its HCP Terraform organization, and only that organization, to find and version them in one place. Which two statements are correct? (Choose TWO.)

  1. AModules published to the organization's private registry are available only to its members
  2. BModules published to the public Terraform Registry can be limited to the company's namespace
  3. CA variable set can hold the module source code and share it with every workspace
  4. DModules in the private registry support versions, as modules in the public registry do
  5. EOther workspaces can load the modules from the state of one shared workspace
Show the answer and why
  • AModules published to the organization's private registry are available only to its members

    Correct

    The private registry shares modules and providers across one organization, with a searchable list; private modules are available only to members of that organization.

  • BModules published to the public Terraform Registry can be limited to the company's namespace

    Incorrect

    The public registry is open to everyone; a namespace names the publisher and does not restrict who can use the module.

  • CA variable set can hold the module source code and share it with every workspace

    Incorrect

    Variable sets share variable values with workspaces; module code is not a variable value.

  • DModules in the private registry support versions, as modules in the public registry do

    Correct

    The private registry works like the public Terraform Registry, including support for module versions.

  • EOther workspaces can load the modules from the state of one shared workspace

    Incorrect

    State records infrastructure and output values, not reusable module code.

The private registry is the organization's own catalog of modules and providers, with versions like the public registry but visible only inside the organization.

Question 3 · choose 1

A platform lead wants to find every workspace in the organization that uses an outdated module version or Terraform version. Which feature is built for this?

  1. ACost estimation enabled for every workspace
  2. BThe explorer for workspace visibility
  3. CA global variable set
  4. DThe private registry's module page
Show the answer and why
  • ACost estimation enabled for every workspace

    Incorrect

    Cost estimates price planned resources; they do not search the estate.

  • BThe explorer for workspace visibility

    Correct

    The explorer surfaces information across the organization and offers queries and filters over workspaces, modules and more.

  • CA global variable set

    Incorrect

    That holds values; it does not search across workspaces.

  • DThe private registry's module page

    Incorrect

    The registry lists modules, not where each version is used.

Explorer answers estate-wide questions about workspaces.

Question 4 · choose 1

After finding outdated workspaces in explorer, an administrator wants to leave each owning team a tracked to-do inside its workspace. Which feature does this?

  1. ASpeculative plans posted to each workspace
  2. BSentinel advisory policies
  3. CChange requests created from the explorer
  4. DWorkspace descriptions edited by the administrator
Show the answer and why
  • ASpeculative plans posted to each workspace

    Incorrect

    Speculative plans show changes; they are not tasks for teams.

  • BSentinel advisory policies

    Incorrect

    Policies evaluate runs; they do not create tasks.

  • CChange requests created from the explorer

    Correct

    Administrators can create change requests from explorer queries; workspaces track them until team members archive them.

  • DWorkspace descriptions edited by the administrator

    Incorrect

    Descriptions are not tracked requests.

Explorer finds the problems; change requests hand them to the owners.

Question 5 · choose 1

A CI system needs an HCP Terraform API token that is not tied to any one person's account. Which token type fits?

  1. AA team API token
  2. BA user token from the CI administrator's account
  3. CThe organization's VCS OAuth token
  4. DA provider credential stored as a variable
Show the answer and why
  • AA team API token

    Correct

    Each team can have API tokens not associated with a specific user.

  • BA user token from the CI administrator's account

    Incorrect

    A user token is tied to that person.

  • CThe organization's VCS OAuth token

    Incorrect

    That connects to the VCS provider, not the API.

  • DA provider credential stored as a variable

    Incorrect

    Provider credentials authenticate to clouds.

Team tokens give automation an identity of its own.

Question 6 · choose 1

A team wants a Slack message whenever a run in its workspace needs attention or fails. What should it configure?

  1. AAn agent that posts to Slack
  2. BA check block that sends messages
  3. CA variable set with the Slack channel name
  4. DA workspace notification with a Slack destination
Show the answer and why
  • AAn agent that posts to Slack

    Incorrect

    Agents run Terraform operations in private networks.

  • BA check block that sends messages

    Incorrect

    Check blocks evaluate assertions.

  • CA variable set with the Slack channel name

    Incorrect

    Variables do not send messages.

  • DA workspace notification with a Slack destination

    Correct

    Workspaces can notify external systems such as Slack, Microsoft Teams, email or generic webhooks about run events.

Notifications are per workspace and support several destinations.

Question 7 · choose 1

The engineer who created an HCP Terraform organization is moving to another role and wants to hand over control of it. Which statement about the organization's owners team is accurate?

  1. AIt can be deleted once another team has been given organization-level permissions
  2. BMembers can be added and removed, but the team cannot be deleted or left empty
  3. CIt holds at most five members in every edition, so a new owner needs a free seat
  4. DThe organization's creator stays a member permanently and cannot be removed
Show the answer and why
  • AIt can be deleted once another team has been given organization-level permissions

    Incorrect

    Every organization keeps its owners team; it cannot be deleted.

  • BMembers can be added and removed, but the team cannot be deleted or left empty

    Correct

    Owners are managed like any other team's members, but HCP Terraform does not let anyone delete the owners team or leave it without members.

  • CIt holds at most five members in every edition, so a new owner needs a free seat

    Incorrect

    The five-member limit applies to free organizations only; in paid organizations the owners team has no size limit.

  • DThe organization's creator stays a member permanently and cannot be removed

    Incorrect

    The creator is simply the first member; owners can be removed like other members, as long as the team keeps at least one.

To hand over an organization, add the new owner to the owners team first, then remove yourself.

Practise domain 8 →Practise all domains →