Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Recall & Review
beginner
What is Terraform Cloud?
Terraform Cloud is a service that helps teams use Terraform together by managing state, runs, and providing collaboration features in a secure way.
Click to reveal answer
beginner
Explain the purpose of 'Workspaces' in Terraform Cloud.
Workspaces in Terraform Cloud isolate state and runs for different infrastructure environments or projects, helping organize and manage infrastructure safely.
Click to reveal answer
intermediate
What is the role of 'Sentinel' in Terraform Enterprise?
Sentinel is a policy-as-code framework in Terraform Enterprise that lets you write rules to enforce compliance and governance before applying infrastructure changes.
Click to reveal answer
beginner
How does Terraform Cloud handle state management?
Terraform Cloud securely stores the Terraform state file remotely, preventing conflicts and enabling team collaboration without manual state file sharing.
Click to reveal answer
intermediate
What is the purpose of 'Run Triggers' in Terraform Cloud?
Run Triggers automatically start Terraform runs in one workspace when runs complete in another, helping coordinate changes across related infrastructure components.
Click to reveal answer
Which feature in Terraform Enterprise allows you to enforce rules on infrastructure changes before applying them?
AWorkspaces
BSentinel
CRun Triggers
DRemote State
✗ Incorrect
Sentinel is the policy-as-code framework used to enforce rules and compliance in Terraform Enterprise.
What does a Terraform Cloud workspace primarily manage?
AState and runs for a specific infrastructure environment
BUser permissions only
CBilling and account settings
DTerraform CLI installation
✗ Incorrect
Workspaces isolate state and runs for different infrastructure environments or projects.
How does Terraform Cloud improve team collaboration?
ABy sharing local state files via email
BBy disabling concurrent runs
CBy requiring manual approval for every command
DBy storing state remotely and managing runs centrally
✗ Incorrect
Terraform Cloud stores state remotely and manages runs, enabling safe team collaboration.
What is the function of Run Triggers in Terraform Cloud?
ATo automatically start runs in one workspace after another completes
BTo backup state files
CTo send notifications on run failures
DTo schedule runs at fixed times
✗ Incorrect
Run Triggers automate runs in dependent workspaces after a run completes.
Which Terraform Cloud feature helps secure sensitive variables and credentials?
ARemote State
BSentinel
CVariable Sets
DWorkspaces
✗ Incorrect
Variable Sets securely store and share sensitive variables across workspaces.
Describe how Terraform Cloud manages state and why this is important for teams.
Think about how sharing files manually can cause problems for teams.
You got /4 concepts.
Explain the role of Sentinel policies in Terraform Enterprise and give an example of a rule it might enforce.
Consider how companies keep their infrastructure safe and compliant.
You got /4 concepts.
Practice
(1/5)
1. What is the main purpose of Terraform Cloud/Enterprise?
easy
A. To help teams manage infrastructure together safely
B. To replace Terraform CLI on local machines
C. To provide a graphical interface for writing Terraform code
D. To host websites built with Terraform
Solution
Step 1: Understand Terraform Cloud/Enterprise role
Terraform Cloud/Enterprise is designed to help teams collaborate on infrastructure management safely.
Step 2: Eliminate incorrect options
It does not replace the CLI, provide a GUI for coding, or host websites.
Final Answer:
To help teams manage infrastructure together safely -> Option A
Quick Check:
Collaboration and safety = B [OK]
Hint: Think teamwork and safety in infrastructure management [OK]
Common Mistakes:
Confusing Terraform Cloud with a code editor
Thinking it replaces local Terraform CLI
Assuming it hosts applications
2. Which of the following is the correct way to configure a Terraform Cloud workspace in terraform block?
easy
A. terraform { cloud { organization = "my-org" workspaces { name = "my-workspace" } } }
B. Backend "cloud" does not support workspace configuration
C. The key extra_key is not valid in backend configuration
D. The workspace name must be inside a workspaces block, not as workspace key
Solution
Step 1: Check valid keys for backend "cloud" block
Valid keys include organization and workspaces { name = "dev" } block. Direct workspace key is invalid.
Step 2: Identify invalid key causing error
The workspace = "dev" key is not valid; it must be inside a workspaces block.
Final Answer:
The workspace name must be inside a workspaces block, not as workspace key -> Option D
Quick Check:
workspace requires workspaces block = B [OK]
Hint: Only use documented keys in backend block [OK]
Common Mistakes:
Using direct workspace= instead of workspaces block
Adding unsupported keys in backend config
Misplacing workspace inside or outside workspaces block
Assuming organization can be omitted
5. Your team wants to enforce that all Terraform runs in Terraform Cloud must pass a policy check before applying changes. Which Terraform Cloud/Enterprise feature should you use to achieve this?
hard
A. Sentinel policies integrated with Terraform Cloud runs
B. Terraform CLI hooks on local machines
C. Manual approval outside Terraform Cloud
D. Terraform Cloud workspace tags
Solution
Step 1: Identify feature for policy enforcement in Terraform Cloud
Sentinel is Terraform Cloud's policy as code framework that integrates with runs to enforce rules.
Step 2: Eliminate other options
CLI hooks are local and not enforced centrally; manual approval is not automated; tags do not enforce policies.
Final Answer:
Sentinel policies integrated with Terraform Cloud runs -> Option A
Quick Check:
Policy enforcement = Sentinel = A [OK]
Hint: Use Sentinel for policy checks in Terraform Cloud [OK]
Common Mistakes:
Confusing local CLI hooks with centralized policy enforcement