Chapter 7 of 7 · HashiCorp Terraform Infrastructure Engineer Professional

HCP Terraform / Enterprise Operations

Runs, health, usage and cost, environments, upgrades and policy as code.

  • 3topics
  • 16 minfast track
  • 2diagrams and exhibits

Topics in this chapter

Take them in order, or jump to the one you need.

  1. 1Operating HCP Terraform, Usage and CostTerraform Professional (002): HCP Terraform run workflows and stages, health assessments, Stacks versus workspaces, managed…5 min
  2. 2Multiple Environments and Version UpgradesTerraform Professional (002): separate environments with workspaces and projects, resolve variable precedence, and upgrade…Diagram5 min
  3. 3Policy as Code in a PipelineTerraform Professional (002): store Sentinel and OPA policies in version control, connect policy sets, set enforcement levels and…Diagram6 min

About this chapter

What this chapter covers

HCP Terraform / Enterprise Operations covers running Terraform on the platform day to day: how runs start and move through stages, how to watch health, usage and cost, how to organize environments, how to upgrade Terraform safely, and how to manage policy as code.

The chapter has three parts: operating the platform and tracking usage and cost, multi-environment configuration with version upgrades, and policy as code in a pipeline.

Questions are single-answer and multiple-answer ("Pick the 2 correct responses below") multiple choice, mostly scenarios and configuration to read. There are no exhibits.

How the topics fit together

OrganizationProjectteam boundaryWorkspaceone environmentRunpolicy setsApplyHealth assessments

Projects group workspaces and carry permissions and variable sets. Each workspace normally holds one environment and runs one Terraform version. Runs pass through the plan and any enabled cost estimation and policy stages, and health assessments keep watching after the apply.

  • Operations questions ask which workflow fits, what happens in each run stage, and how health assessments behave.
  • Usage and cost questions ask what counts as a managed resource and where estimates appear.
  • Environment questions ask you to resolve which variable value wins and how to separate environments.
  • Upgrade questions ask for the safe order when moving workspaces to a new Terraform version.
  • Policy questions ask how policy files, policy sets and enforcement settings connect.
Exam tip

Learn the variable precedence order and the upgrade order. Both are easy to turn into "which value wins" and "what do you do first" questions.

How to use these pages

Each topic page has the same shape, so you can skim for what you need.

  • What it is: the idea in plain words.
  • How it works: the mechanism, with tables and examples.
  • What to remember for the exam: the facts to memorize and how questions are phrased.
  • Common mistakes: the classic traps.
  • Check yourself: three questions to test your understanding.

Ready for more practice?

The full HashiCorp Terraform Infrastructure Engineer Professional question bank has 600 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by HashiCorp. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.