Be able to configure HCP Terraform governance: create projects, attach workspaces, enforce policy and cost estimation checks, publish modules to the Private Module Registry, and assign Variable Sets. The key is knowing which governance feature scopes to a project versus an organization or workspace.
Start practicing
HCP Terraform Governance — choose a session length
Free · No account required
Domain overview
This domain covers how HCP Terraform governs workspaces, modules, and variables across an organization. Expect questions on projects, run pipeline stages, policy and cost estimation enforcement, the Private Module Registry, and Variable Sets, tested as scenario-based multiple choice and multi-select items tied to AWS provider workflows.
Exam objectives
Grouping workspaces into HCP Terraform projects by business unit and applying run checks per project
Identifying standard HCP Terraform run pipeline stages such as plan, policy check, and apply
Using the Private Module Registry to share versioned, approved Terraform modules within an organization
Using Variable Sets to reuse variables and credentials across many workspaces and projects
Confusing HCP Terraform projects with AWS accounts or Terraform workspaces, which serve different scoping purposes.
Assuming cost estimation or policy checks block applies by default rather than being configured to fail runs.
Treating Variable Sets as workspace-local variables instead of reusable, assignable collections across workspaces.
Click any question to see the full explanation and answer options, or start a focused practice session above.
You are configuring RBAC in HCP Terraform. A user needs to trigger runs and view plan logs but should not be allowed to modify workspace variables. Which permission set is appropriate?
2Which of the following is a primary benefit of using a Private Module Registry?
3A Sentinel policy is failing on a cost estimation result. What is the most likely cause if the cost estimation feature is enabled but the policy still fails?
4When configuring team permissions, what does the 'Workspace: Settings' permission allow?
5You want to enforce a policy that prevents creating AWS EC2 instances larger than 't3.medium'. Where do you configure this?
6What is the result of a 'soft-mandatory' Sentinel policy failing during a run?
7What is the purpose of 'Project' in HCP Terraform?
8What happens if a Sentinel policy results in an 'advisory' output?
9If a Terraform run is stuck in a 'Policy Check' phase, which step should an administrator take?
10Which type of Sentinel policy is used to block a run without possibility of override?
11Where can you define variables that apply to all workspaces within an organization in HCP Terraform?
12You need to automate the publication of a module to the Private Module Registry. What should you do?
13If an organization wants to allow teams to manage their own workspaces but prevent them from viewing other teams' workspaces, how should they configure HCP Terraform?
14Which of the following can be used to monitor costs in an HCP Terraform workspace?
15You need to ensure that all workspaces use a specific set of tags. How can this be enforced?
16Which of the following is an advantage of using Variable Sets?
17You want to trigger a run only when a specific file within a module path changes. How do you configure this?
18How can you view the detailed breakdown of cost estimates for a specific Terraform plan?
19Which TWO of the following are true regarding Private Module Registry versioning?
20Which TWO of the following are standard stages of an HCP Terraform run pipeline?
21Which THREE of the following items can be included in a Variable Set?
22Which TWO of the following are required to successfully integrate VCS with HCP Terraform?
23Your team uses HCP Terraform to manage AWS infrastructure. You have a workspace that provisions an Amazon RDS instance. You want to ensure that the RDS instance is not publicly accessible. You have written a Sentinel policy that checks the 'publicly_accessible' attribute. However, after enabling the policy, you notice that runs are not being blocked even when the attribute is set to true. What is the most likely reason for the policy not blocking the run?
24Your organization uses HCP Terraform with the AWS provider. You need to ensure that all workspaces in the organization automatically use a specific set of AWS credentials for runs, without manually configuring variables in each workspace. The credentials must be available as environment variables (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY) and should be centrally managed. What should you do?
25You are managing an HCP Terraform organization with multiple workspaces. A security requirement mandates that all workspaces use a specific version of the AWS provider (5.0.0 or later) and that any deviation triggers a notification to the security team. You have configured a Sentinel policy to check the provider version. Which enforcement level should you set for this policy to meet the requirement while allowing developers to proceed with their work if they acknowledge the risk?
26Your organization uses HCP Terraform with the AWS provider. A platform team wants to ensure that any workspace in the 'production' project can only use AWS credentials from a pre-approved OIDC role, and that no static AWS access keys are ever stored as workspace variables. Which HCP Terraform feature should you configure to enforce this requirement?
27Your organization uses HCP Terraform to manage AWS infrastructure. The security team requires that all runs consuming AWS credentials must be evaluated against a policy that checks the CIDR blocks of any aws_security_group resource. They want the policy to block the run if a CIDR is 0.0.0.0/0. Where should you implement this policy so it is enforced across all workspaces in the organization?
28You are configuring run triggers in HCP Terraform to orchestrate a multi-workspace deployment on AWS. Workspace A provisions a VPC and outputs the VPC ID. Workspace B needs to consume that VPC ID to deploy subnets. You want Workspace B to automatically start a run after Workspace A successfully applies. Which configuration should you implement?
29You are configuring a Sentinel policy for your HCP Terraform organization. The policy must prevent any Terraform run from creating an AWS S3 bucket without server-side encryption enabled. The policy should block the run if such a bucket is detected, but you want to allow administrators to override the policy in emergency situations. Which enforcement level should you set for the policy?
30Your team uses HCP Terraform to manage AWS infrastructure. You need to ensure that all workspaces in a specific project automatically inherit a set of environment variables containing AWS credentials. These variables must be available to all runs in those workspaces without manual configuration. What is the most efficient way to achieve this?
31Your organization uses HCP Terraform with projects to group workspaces by business unit. A compliance rule states that any workspace in the 'finance' project must have a cost estimation check that fails the run if the monthly cost increase exceeds $500. You have enabled cost estimation in the organization settings. What should you do next to enforce this rule?
32Your organization uses HCP Terraform to manage AWS infrastructure. A platform engineer has been assigned the 'Write' permission on a workspace but is still unable to modify the AWS credentials stored as workspace variables. Which HCP Terraform permission level is required to manage sensitive workspace variables?
33Your organization has a Sentinel policy with enforcement level 'soft-mandatory' that checks for required tags on AWS resources. During a run, the policy fails because an EC2 instance is missing the 'Environment' tag. The workspace allows users with write access to override policies. What is the immediate outcome of the run?
34Your team uses HCP Terraform to manage AWS infrastructure. You need to allow a specific team of developers to apply changes in a workspace, but you do not want them to be able to modify workspace settings or delete the workspace. Which team permission should you assign to the developers?
35You are designing a governance strategy for your HCP Terraform organization. You need to enforce that all AWS resources are tagged with a 'CostCenter' tag. The policy should block any run that creates resources without this tag, but you also want to allow a temporary exception for a migration project. Which combination of Sentinel enforcement level and policy set scoping should you use?
36Your organization uses HCP Terraform with Sentinel policies. A policy is configured with an enforcement level of 'hard-mandatory' and checks that all AWS S3 buckets have server-side encryption enabled. A developer runs a plan that includes an unencrypted bucket. What happens when the policy fails?
37You are using HCP Terraform with the AWS provider and have configured a policy set with Sentinel policies. A policy fails during a run, and the run is paused. You have the necessary permissions to override the policy. What is the effect of overriding a soft-mandatory policy failure?
38Your organization uses HCP Terraform with remote runs. A workspace named 'prod-network' has its execution mode set to Remote. A platform engineer runs `terraform apply` locally after running `terraform plan` on their laptop, but the apply fails with an error because the workspace's state is locked by an active remote run. What is the most likely explanation for this error?
39Your team uses HCP Terraform to manage AWS resources. You need to ensure that all workspaces in a project automatically inherit a set of AWS region and tagging variables. What is the most efficient way to achieve this?
40Your organization uses HCP Terraform with the AWS provider. You want to share a set of AWS region and tagging variables across all workspaces in a specific project without duplicating them in each workspace. Which HCP Terraform feature should you use?
41Your organization uses HCP Terraform with Sentinel policies. A policy set is configured with enforcement level 'hard-mandatory' and includes a policy that checks for the presence of a 'CostCenter' tag on all AWS resources. During a run, the policy fails because a newly added aws_s3_bucket lacks the tag. What happens to the run?
42Your organization uses HCP Terraform to manage AWS infrastructure. You need to grant a team the ability to create and manage workspaces within a specific project, but prevent them from deleting the project itself or modifying project-level settings. Which HCP Terraform team permission should you assign?
43Your organization uses HCP Terraform with the AWS provider. A Sentinel policy set is attached to the 'production' project with a soft-mandatory policy that checks for required tags on all AWS resources. During a run, the policy fails because a developer forgot to add a 'CostCenter' tag to an EC2 instance. What is the outcome of the run, and what can the developer do?
44Your organization uses HCP Terraform with a private module registry. A developer wants to use a module from the registry in a new configuration. The module is versioned and published. What is the correct way to reference this module in the Terraform configuration?
Be able to configure HCP Terraform governance: create projects, attach workspaces, enforce policy and cost estimation checks, publish modules to the Private Module Registry, and assign Variable Sets. The key is knowing which governance feature scopes to a project versus an organization or workspace.
The Courseiva AWS provider question bank contains 44 questions in the HCP Terraform Governance domain. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the HCP Terraform Governance domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included