Courseiva

AWS provider · domain

Collaborative Workflows

This domain covers running Terraform as a team rather than solo: remote state, HCP Terraform workspaces, VCS-driven runs, and pull request validation. Questions are scenario-based, asking you to pick the right command, workspace model, or workflow feature for shared AWS infrastructure across multiple engineers and environments.

42 questions12 easy17 medium13 hard

Focused practice

Practice Collaborative Workflows questions

Scored sessions drawing only from this domain — pick a length below.

Start 20-question practice test →

What this domain covers

What to know about Collaborative Workflows

Be able to configure remote state and HCP Terraform, run terraform init to migrate state, and map one configuration to multiple workspaces for environment isolation. The key is knowing that VCS-driven pull requests produce speculative plans for validation, not automatic applies.

Migrating local state to HCP Terraform using terraform init with a cloud block or backend configuration

Using HCP Terraform workspaces to isolate dev, staging, and production with identical configuration files

VCS-driven runs that trigger speculative plans on pull requests for validation before apply

Advantages of remote state and HCP Terraform over local state, including locking and shared access

Watch out for

Common Collaborative Workflows exam traps

  • ▸Assuming terraform init alone migrates state; the cloud block or backend must be configured first, and state migration is prompted during init
  • ▸Confusing CLI-driven workspaces with separate directories or branches; one configuration can back multiple HCP Terraform workspaces
  • ▸Expecting a pull request to apply changes automatically; VCS-driven runs produce speculative plans that require approval before apply

Question index

All Collaborative Workflows questions (42)

Click any question to see the full explanation, or start a practice session above.

1

A downstream workspace in HCP Terraform needs to automatically trigger a plan after a successful apply in an upstream workspace. How do you configure this?

Medium
2

Your team uses HCP Terraform with a VCS-connected workspace. A developer pushes a commit to the tracked branch while a plan is already running. What does HCP Terraform do with the newly triggered run by default?

Easy
3

Two engineers on your team both run `terraform apply` against the same HCP Terraform workspace that uses remote state, and their runs overlap in time. The second engineer's apply is rejected with a message that the workspace is locked. Which HCP Terraform behavior explains this outcome?

Easy
4

You have a Terraform configuration that uses a module from the public registry. How do you ensure your team uses a specific version?

Medium
5

Which TWO of the following are benefits of using HCP Terraform for teams?

Easy
6

Your organization is standardizing on HCP Terraform and needs to decide which workspaces should use remote execution with a self-hosted agent pool rather than HCP Terraform's hosted runners. Which TWO conditions justify using a self-hosted agent pool? (Choose two.)

Hard
7

Which TWO types of variables can be set in HCP Terraform?

Medium
8

Two engineers on your team run `terraform apply` against the same HCP Terraform workspace within seconds of each other. The workspace uses remote execution and has no run triggers configured. What does HCP Terraform do to coordinate these concurrent runs?

Medium
9

A team wants to prevent any terraform apply from running in a production workspace unless a specific individual has reviewed and approved the plan. Which HCP Terraform capability should they enable?

Easy
10

In HCP Terraform, you have a workspace that uses the CLI-driven workflow. A team member runs terraform apply locally and then pushes the updated state to HCP Terraform. What is the primary benefit of this workflow?

Easy
11

When troubleshooting a failed plan in HCP Terraform, which THREE sources should you check?

Hard
12

When using 'terraform state mv', what is the impact on the collaboration workflow?

Hard
13

You maintain a Terraform configuration in a GitHub repository that provisions AWS infrastructure. Your organization uses HCP Terraform with VCS-driven workspaces. A teammate pushes a commit that modifies `main.tf` in the `production` branch, but you need the change to be reviewed and approved before any infrastructure is modified. What should you configure to enforce this workflow?

Medium
14

Your team uses a GitHub repository as the VCS connection for an HCP Terraform workspace in the AWS provider organization. A developer pushes a commit that modifies a variable value in `terraform.tfvars` and also touches a file inside a subdirectory that is excluded by the workspace's trigger patterns. Only the subdirectory file is in the trigger pattern exclusion list. What will HCP Terraform do?

Medium
15

What happens if two team members try to apply changes to the same workspace in HCP Terraform simultaneously?

Easy
16

Which THREE factors influence the choice of using an HCP Terraform Agent?

Hard
17

Your team uses HCP Terraform with a VCS-driven workflow. A developer opens a pull request that modifies a Terraform configuration. You want the plan to run automatically and the results to be visible on the pull request before merging. What should you configure?

Medium
18

Which of the following is an advantage of using HCP Terraform over local state for team collaboration?

Easy
19

You are using HCP Terraform agents. Why would you choose to use an agent instead of the public HCP Terraform execution environment?

Medium
20

In HCP Terraform, you want to allow team members to see runs but prevent them from approving plans. Which team permission set should you assign?

Easy
21

A platform team wants to prevent any workspace in their HCP Terraform organization from provisioning EC2 instances with public IP addresses. They need the policy to block a run before apply whenever a non-compliant plan is detected, and they want the failure reason surfaced to the developer. Which approach meets these requirements?

Hard
22

Your organization uses HCP Terraform with several projects. A compliance officer must be able to read the results of every policy evaluation and run across all projects, but must not be able to modify workspaces or trigger runs. Which approach grants exactly these rights?

Medium
23

Where can you view the historical state versions in HCP Terraform?

Easy
24

Which THREE pieces of information are displayed in the HCP Terraform Run UI?

Medium
25

You want to automate the approval process for non-production environments in HCP Terraform. Which setting enables this?

Medium
26

Your team uses HCP Terraform with a VCS-driven workflow. You have a workspace that deploys to AWS. A developer wants to test a change that modifies an IAM policy without affecting the main branch. They create a feature branch and push changes, but the workspace is configured to track the `main` branch. What is the most appropriate way to allow the developer to test their change in isolation?

Hard
27

In a workspace, you define a variable named 'region'. How can you override this value for a specific run without changing the workspace configuration?

Hard
28

Your organization uses HCP Terraform with a VCS-driven workflow. A developer accidentally merges a change to the main branch that modifies a production workspace's Terraform code. The workspace is configured to auto-apply. Which mechanism can prevent the change from being applied immediately?

Medium
29

Your team uses HCP Terraform with a workspace connected to a GitHub repository. You need to ensure that no changes can be applied to production unless a specific compliance policy passes. The policy should block the apply if it fails, but authorized users should be able to override the failure with a justification. Which Sentinel enforcement level should you use?

Hard
30

You are managing state in a multi-region deployment. You need to ensure that simultaneous terraform apply operations do not corrupt the state file. Which backend configuration parameter primarily enables this functionality?

Medium
31

You are writing an OPA (Open Policy Agent) policy to restrict resource creation. You want to deny any EC2 instance that does not include the 'CostCenter' tag. How do you access the resource attributes in the policy?

Hard
32

Which THREE components are part of the 'Workspace' object in HCP Terraform?

Easy
33

You are configuring a new HCP Terraform workspace that uses a VCS connection to a GitHub repository. You want runs to be automatically triggered when changes are pushed to the main branch. Which setting should you enable?

Easy
34

When migrating from local state to HCP Terraform, which command is used to initialize the migration?

Hard
35

Your organization runs HCP Terraform with the AWS provider and wants to enforce a policy that blocks any `aws_s3_bucket` resource lacking a `lifecycle_rule` block. You are authoring a Sentinel policy that uses the `tfplan/v2` import. Which two statements correctly describe how the policy is evaluated and enforced? (Choose two.)

Hard
36

If you need to share output values between workspaces, what is the best practice in HCP Terraform?

Medium
37

Your team maintains a shared Terraform configuration in a GitHub repository. A developer opens a pull request that changes the instance type of a production EC2 instance. You want the change to be automatically validated by running a speculative plan before any human reviews the code. Which HCP Terraform feature should you configure to achieve this?

Medium
38

Your team is using HCP Terraform. You need to isolate development, staging, and production environments using the same set of configuration files. Which feature should you implement?

Easy
39

Your team is using HCP Terraform with a workspace that has a remote backend. A developer runs terraform apply from their local CLI, but the apply fails because the state is locked. Which action should the developer take to resolve the lock and proceed with the apply?

Medium
40

Your team uses HCP Terraform with a VCS-driven workflow. A pull request modifies a module that three separate workspaces consume from a shared private registry. You want reviewers to see the effect of the module change in each consuming workspace before the PR merges, without any state being written. What should you configure?

Medium
41

Which TWO of the following are true regarding OPA/Sentinel policies?

Hard
42

Your organization uses HCP Terraform with a private module registry. A platform team publishes a module that provisions an Amazon RDS instance, and several application teams consume it across different workspaces. The platform team must release a backwards-incompatible change to the module's `engine_version` variable, but they do not want existing consumers to break on their next run. Which two actions should the platform team take to safely version and publish this change? (Choose two.)

Hard

Frequently asked questions

What does the Collaborative Workflows domain cover on the AWS provider exam?
Be able to configure remote state and HCP Terraform, run terraform init to migrate state, and map one configuration to multiple workspaces for environment isolation. The key is knowing that VCS-driven pull requests produce speculative plans for validation, not automatic applies.
How many questions are in this domain?
This page lists all 42 Collaborative Workflows questions in the AWS provider question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
What is the best way to practise this domain?
Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
Can I practise only Collaborative Workflows questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.
HashiCorp Certified: Terraform Authoring and Operations Professional (AWS provider) (AWS provider) Collaborative Workflows Practice Questions