Understand the certification
HashiCorp Certified: Terraform Associate (003) 验证使用 Terraform 进行基础设施即代码(IaC)管理的核心能力。57 题 / 60 分钟,费用 $70.50 USD(Terraform 认证相比 AWS/Azure 便宜很多),有效期 2 年。
注:此 slug(terraform-associate)是同一认证的另一个数据条目,和 hashicorp-terraform-associate 指向相同的考试。考试覆盖九大领域:IaC 概念、Terraform vs 其他 IaC 工具(CloudFormation/ARM/Pulumi)、Terraform 基础(Providers/Resources/Data Sources)、核心工作流(init/plan/apply/destroy)、模块(Module Registry/Git/本地模块)、状态管理(Remote Backend/State Locking/Sensitive Data)、HCL 配置(变量/输出/条件/函数)、HCP Terraform(原 Terraform Cloud)的 Workspace/VCS 集成/Sentinel 策略。
Terraform 在 IaC 工具中的市场份额约 70%+(HashiCorp 2024 State of Cloud Strategy 报告)。AWS CloudFormation 只能管 AWS 资源,Azure ARM/Bicep 只能管 Azure 资源,Terraform 的杀手锏是一套 HCL 代码管多个云(AWS + Azure + GCP + on-prem)。
Exam at a glance
- Exam code
- Terraform-Assoc
- Provider
- HashiCorp
- Format
- single-choice / multiple-choice
- Language
- English
- Validity
- 3 years
Skills in focus
Learning outcomes
- Pass the Terraform Associate certification exam with confidence
- Master key concepts across all exam domains
- Identify and strengthen weak areas before the exam
Who this is for
- DevOps 工程师和 SRE 需要验证 Terraform 自动化技能
- 云架构师使用 Terraform 管理 AWS/Azure/GCP 多云基础设施
- 系统管理员希望从手动运维转向 IaC 自动化
- 后端开发者希望掌握基础设施即代码(IaC)能力
Before you start
- 了解云计算基础概念(虚拟机、网络、存储)
- 熟悉至少一个云平台(AWS、Azure 或 GCP)的基本操作
- 具备命令行(CLI)操作经验
- 建议有 3-6 个月使用 Terraform 的实践经验
Your learning path
11 chapters
Plan your preparation
- Learning hours
- 72h
- With relevant experience
- 2-3 weeks
- Starting from scratch
- 4-6 weeks
- Daily study
- 1-2h
Included in your preparation
- 335 practice questions with detailed explanations
- Mock exams simulating real test conditions
- AI-powered tutoring for personalized study
- Progress tracking and weak area identification
1. 第一阶段:Terraform 核心工作流(1-2 周)
安装 Terraform CLI,在 AWS Free Tier 或 Azure Free Account 上实操。走完 terraform init → terraform plan → terraform apply → terraform destroy 完整流程。创建一个简单的 VPC + EC2(或 VNet + VM),理解 Provider 配置、Resource 声明、terraform.tfstate 文件的作用。
2. 第二阶段:模块 + 状态管理 + HCL 进阶(1-2 周)
创建一个本地 Module(variables.tf/main.tf/outputs.tf),在根模块中调用。配置 Remote Backend(S3 + DynamoDB 状态锁定 或 Azure Storage Account)。HCL 进阶:count vs for_each 的区别、dynamic block、conditional expression (condition ? true_val : false_val)、常用内置函数(lookup/merge/flatten/format)。
3. 第三阶段:HCP Terraform + 模考(1-2 周)
注册 HCP Terraform 免费版(原 Terraform Cloud),创建 Workspace 并关联 VCS(GitHub)。理解 Remote Execution(plan/apply 在 HCP 而非本地运行)。Sentinel Policy as Code 的概念(不需要写 Sentinel,理解它的作用即可)。用 HashiCorp 官方 Practice Exam + Udemy Bryan Krausen 的模考做 2 次全真模拟。
Career value
Terraform 技能在 DevOps/Cloud 岗位中已经从"加分项"变成"必备项"。LinkedIn 上搜 "DevOps Engineer" 的澳洲岗位,超过 60% 的 JD 提到 Terraform。Seek 上 DevOps/Cloud Engineer 年薪中位数约 $140K AUD,持有 Terraform Associate + AWS/Azure 认证的候选人通常在 $150-170K 区间。
Terraform Associate 的独特优势是性价比极高 — $70.50 考试费、57 题 60 分钟、通过率相对较高(社区报告约 60-65%)。作为简历上的第一张 IaC 认证,投入产出比远超大部分云认证。
不适合的人群:纯前端/移动端开发者 — Terraform 管理的是基础设施(服务器/网络/数据库),和应用层开发无关。已经有 3 年以上 Terraform 实战经验的 Senior — 考这张证对你的简历没有额外加分,不如贡献开源 module 或写技术博客。
- 澳洲
- AUD 120,000 – 170,000
- 美国
- USD 115,000 – 165,000
- 中国
- CNY 300,000 – 500,000
Preparation tips
- 57 题 60 分钟,约 1.05 分钟/题,时间非常紧。概念题快速作答,把时间留给 HCL 代码阅读题。
- terraform taint 命令虽然在 Terraform 1.0+ 中标记为 deprecated(用 terraform apply -replace 替代),但考试仍然考。
- $70.50 的考试费 + 在线考试(无需去考点)= 最低成本获取的有价值 IaC 认证。
Common mistakes
- **count 和 for_each 的区别** — count 用数字索引(resource[0], resource[1]),删除中间的元素会导致后续索引全部重新创建。for_each 用 map 的 key 索引,删除一个元素不影响其他。考试至少 3 道。
- **terraform.tfstate 包含敏感数据** — State 文件以明文存储所有 Resource 的属性值,包括密码和密钥。必须用加密的 Remote Backend 存储,禁止提交到 Git。
- **Provider 版本锁定遗忘** — 不在 required_providers 中指定版本约束(~> 4.0),terraform init 会拉最新版本,可能引入破坏性变更。
Before you register
How difficult is the HashiCorp Terraform Associate exam?
The exam has 57 questions in 60 minutes at the Associate level. It covers Infrastructure as Code fundamentals, Terraform workflow (Write/Plan/Apply), state management, module usage, and Terraform Cloud basics. 3-6 months of experience managing infrastructure with Terraform and familiarity with at least one cloud platform is recommended.
What Terraform State management topics are covered?
State management is a key exam focus. You need to understand the purpose of state files, local vs remote state backends (S3, Consul, Terraform Cloud), state locking to prevent concurrent modifications, terraform state commands (mv, rm, list, show), sensitive data security in state files, and terraform import use cases.
How deep is the HCL syntax knowledge required?
You need core HCL syntax: variable types (string, number, bool, list, map, object), variable definitions and precedence, outputs, locals, conditional expressions (count and for_each), data sources, built-in functions (lookup, join, file, etc.), and dynamic blocks. You do not need to memorize all functions but should understand common use cases.
What Terraform Modules topics are tested?
You need to understand module structure (input variables, outputs, resources), module sources (local paths, Terraform Registry, Git), module version constraints, child modules vs root modules, and when to create modules for code reuse.
How much does Terraform Cloud/Enterprise account for in the exam?
Roughly 10-15% of questions. You should know Terraform Cloud core features: remote state management, remote operations, Workspace concepts, VCS integration for triggering Plan/Apply, basic Sentinel Policy as Code concepts, and key differences from Terraform OSS.
How should I prepare effectively for Terraform Associate?
Start with the official HashiCorp Learn tutorials to master fundamentals, then write and deploy Terraform configurations in a real cloud environment. Pay special attention to the terraform plan/apply/destroy workflow, state management commands, and module design. Exam questions focus on conceptual understanding and scenario judgment. Our 335 practice questions cover all exam domains.
Learner experiences
Loading reviews…
工作中天天写 Terraform 所以不难,但考试出了一些我没碰过的知识点 — HCP Terraform 的 Workspace 配置(我们公司用自建 Atlantis 不用 Terraform Cloud)、Sentinel 策略、terraform taint(已 deprecated 但还在考)。建议工作中用 Terraform 的人也至少花 1 周看考纲查漏补缺。
DevOps Engineer 2 年
用 Terraform 管 AWS · 通过(不显示分数) · 2 weeks
考试不像 AWS SAA 那样需要记住几百个服务,Terraform 就那几个核心概念。最难的是 State 管理 — Remote Backend 配置、State Locking 原理、terraform state mv/rm 命令。Bryan Krausen 的 Udemy 课程 + 模考覆盖了 90% 的考点。
云计算零基础
Bootcamp 学员转 DevOps · 通过 · 5 weeks
Start with the first chapter.
2 free chapters · Full preparation from $29