Real
DevOps
Interview
Questions
Companies
Mock Interview
Study Guide
Tools & Tech
Search questions, tools...
⌘K
Questions
Companies
Mock
Guide
Tools
Home
/
Terraform
/
Interview Questions
/
Intermediate
📝
Terraform Intermediate Interview Questions
Beginner
Intermediate
Advanced
Architect
19 Terraform intermediate questions with detailed answers, HCL examples, and interview tips.
≣
List
⚡
Flashcard
All (19)
state (2)
modules (1)
general (6)
workspaces (2)
variables (4)
providers (1)
Terraform (3)
Asked by:
All Companies
Capital One
Coinbase
Datadog
HashiCorp
Shopify
Stripe
Value Momentum
0/19 reviewed
01
What is Terraform state and why is remote state critical?
intermediate
state
Stripe
Capital One
HashiCorp
02
How do Terraform modules work and what makes a good module design?
intermediate
modules
Coinbase
Capital One
Datadog
03
What is the difference between terraform plan and terraform apply?
intermediate
general
Stripe
Shopify
HashiCorp
04
How do Terraform workspaces work and when should you use them vs separate directories?
intermediate
workspaces
Capital One
Value Momentum
Coinbase
05
What are data sources in Terraform and how do they differ from resources?
intermediate
general
06
How does Terraform handle dependencies — implicit vs explicit?
intermediate
general
07
What is terraform import and when do you need it?
intermediate
state
08
How do you manage sensitive values in Terraform (variables, tfvars, Vault)?
intermediate
variables
09
What is the difference between count and for_each?
intermediate
variables
10
How does Terraform's provider plugin system work?
intermediate
providers
11
How do you use tfvars files to pass environment-specific values across Dev, QA, UAT, and Prod without duplicating Terraform code?
intermediate
variables
Value Momentum
12
How do you use Terraform workspaces versus directory-based separation for managing multiple environments, and what are the tradeoffs?
intermediate
workspaces
Value Momentum
Capital One
Coinbase
13
Should you maintain a single Terraform repository or multiple repositories for different environments, and what branching strategy works best?
intermediate
general
Value Momentum
14
How do you handle naming conventions across Terraform environments so resources are clearly identifiable and do not overwrite each other?
intermediate
variables
Value Momentum
15
How does Terraform Enterprise differ from open-source Terraform, and when does an organization need TFE?
intermediate
general
Capital One
Value Momentum
Coinbase
16
How do you automate Windows and Linux server provisioning with Ansible Automation Platform across hybrid cloud?
intermediate
general
17
Explain Terraform workspace strategies for managing multiple environments. Compare per-environment workspaces versus per-component workspaces, and when would you use neither and instead use directory-based separation?
intermediate
Terraform
18
How do you integrate Infracost with your Terraform CI/CD pipeline to provide cost estimation and implement cost guardrails that prevent deployments exceeding budget thresholds?
intermediate
Terraform
19
Explain Terraform's moved blocks and refactoring capabilities. How do you safely rename resources, restructure modules, and migrate resources between modules without destroying and recreating infrastructure?
intermediate
Terraform
✦
Feedback / Comment