Understand the certification
AZ-204(Microsoft Certified: Azure Developer Associate)是微软认证体系里唯一一张面向"写代码的人"的 Azure 认证。AZ-900 和 AZ-104 考的是概念和运维,AZ-305 考架构设计,只有 AZ-204 是真正让你坐在 IDE 前、面对 Azure SDK 做选择的那张证。
考试形式是 40-60 题、约 120 分钟,费用 165 USD,及格线 700/1000。题型包括单选、多选、拖拽、以及 2-3 个 case study(给你一段业务背景和若干约束,连续答 5-8 题)。case study 是 AZ-204 最折磨人的地方 — 题目里混着 JSON、appsettings、Bicep 片段,你得在脑子里跑一遍代码才能选出对的答案。
考纲在 2024 年底有一次较大改版,去掉了 Logic Apps、Azure AD B2C 的考点,加重了 Azure Functions、Cosmos DB、Service Bus、App Service、Blob Storage、Managed Identity、App Configuration、Key Vault 的比重。这 8 个服务基本占了 70% 以上的题。
官方示例代码默认是 C# / .NET,但考试本身接受 Python、JavaScript、Java SDK 的等价知识 — 题目里如果出现代码片段,大概率是 C#,但问的通常是 SDK 方法名、配置项、触发器绑定这种跨语言通用的东西。
一个容易被忽略的点:从 2023 年开始 Microsoft 所有 role-based 认证(含 AZ-204)每年在 Microsoft Learn 上免费续期,答对一套 renewal assessment 就续 1 年,不用再交 165 刀。相比 AWS DVA-C02 每 3 年必须重考 + 再付 150 美元,这是长期持有成本上最大的优势。
Exam at a glance
- Exam code
- AZ-204
- Provider
- Azure
- Format
- Single choice / Multiple select / 案例分析 / Drag and drop
- Language
- English / 中文(简体) / 日本語 / 한국어
- Validity
- 1 years
- Exam fee
- $165
Skills in focus
Learning outcomes
- Earn the Microsoft Azure Developer Associate certification
- Build and maintain Azure cloud applications with more confidence
- Work with Azure services from a developer point of view, not just a user point of view
- Build a strong base for AZ-305 or other advanced Azure tracks
Who this is for
- Azure application developers
- Backend and full-stack engineers building on Azure
- Developers moving from traditional app work into cloud-native development
- DevOps engineers who need to understand Azure PaaS from a developer perspective
- Candidates planning to move toward AZ-305 later
Before you start
- 1-2 years of Azure development experience is recommended
- Familiarity with at least one programming language is important
- Basic knowledge of Azure App Service, Functions, and Storage will help
- Some REST API and SDK experience will make the exam easier
Consider another path if
- 完全不写代码的运维 / 网络工程师(建议考 AZ-104)
- AWS 栈或 GCP 栈为主的公司的开发者(ROI 极低)
- 0 年经验的应届生(先做 2-3 个真实项目再来考性价比更高)
- 只想拿一张"云证书"的转行者(建议从 AZ-900 或 AWS CLF-C02 入门)
What the exam tests
28%Develop Azure Compute Solutions
Develop Azure Compute Solutions
18%Develop for Azure Storage
Develop for Azure Storage
22%Implement Azure Security
Implement Azure Security
18%Monitor, Troubleshoot, and Optimize
Monitor, Troubleshoot, and Optimize
14%Connect to and Consume Azure Services
Connect to and Consume Azure Services
Your learning path
7 chapters
Plan your preparation
- Learning hours
- 45h
- With relevant experience
- 6-8 weeks
- Starting from scratch
- 12-16 weeks
- Daily study
- 1.5-2h
Included in your preparation
- 7 structured chapters covering the full AZ-204 scope
- 766 practice questions with explanations
- Mock exams built around the 50-question exam format
- Hands-on style coverage of App Service, Functions, Cosmos DB, Key Vault, and messaging
- Study flow that mirrors how Azure developer tasks appear in real projects
1. 第一阶段:亲手搭一个 Function App + Cosmos DB CRUD(第 1 周)
不要先看视频。打开 VS Code + Azure Functions Core Tools,从零写一个 HTTP trigger 的 Function,接 Cosmos DB,实现 GET/POST/PUT/DELETE 四个接口,用 Managed Identity 认证而不是 connection string。这一周的目的是把考试里最核心的 4 个服务(Functions、Cosmos DB、Managed Identity、App Configuration)用一个真实项目串起来。没有这个"肌肉记忆",后面刷题会极其痛苦。
2. 第二阶段:跟完 Microsoft Learn 官方 learning path(2-3 周)
Microsoft Learn 上的 AZ-204 learning path 是免费的,一共 11 个模块。重点看:Implement Azure Functions、Develop solutions that use Cosmos DB、Implement secure cloud solutions(Key Vault + Managed Identity)、Implement message-based communication(Service Bus vs Event Grid vs Event Hub 的选型)。跳过 API Management 和 Logic Apps 模块 — 新考纲权重很低。
3. 第三阶段:按服务分类刷题 + 啃 case study(3-4 周)
MeasureUp 或 Tutorials Dojo 的题库按服务分类刷。每做完一套立刻查官方文档核对细节 — AZ-204 的题经常卡在参数名、retry policy 配置、trigger binding 的 direction(in/out)这种细节上。case study 类题目单独练,每个 case 花 20 分钟把"业务需求 → Azure 服务 → 配置选项"的推导链路写在纸上。
4. 第四阶段:模考冲刺(最后 1-2 周)
至少做 3 套全真模考(50 题 120 分钟),稳定在 80% 以上再去考场。case study 部分分数必须单独监控,如果 case study 准确率低于 70%,不要硬考 — 正式考试的 case study 往往比模考更刁钻。考前一天重点复习 Cosmos DB 一致性级别、Service Bus dead-letter、Functions durable orchestration 三个高频考点。
Career value
这张证的真实市场定位
AZ-204 和 AWS DVA-C02 是一对镜像关系,但两边的生态完全不同。AWS 开发者岗位基本不看 DVA(HR 更在意 SAA),但 Azure 开发岗位 真的会筛 AZ-204 — 原因是微软的企业客户(银行、保险、政府、大型制造业)普遍把 AZ-204 写进 vendor procurement 的要求里。ZipRecruiter 和 LinkedIn 的公开数据显示,2026 年美国 Azure Developer 中位数薪资约 121K USD,持证者平均 129K USD,差距主要来自微软生态重的企业客户(比如 Accenture、Deloitte、Capgemini 的 Azure practice)会把持证当作 billable rate 的加分项。
最适合考 AZ-204 的三类人:
- .NET 后端工程师想转云:你已经在写 ASP.NET Core / EF Core,对 Visual Studio 熟得不能再熟。AZ-204 是你"把本地跑的东西搬上 Azure"的天然路径,学习曲线比转 AWS 平缓很多。
- Azure 栈的全栈 / 后端 2-4 年:公司已经在用 App Service + Cosmos DB + Service Bus,你每天都在碰这些东西但不成体系。考这张证相当于给自己的工程经验做一次系统复盘。
- 咨询公司 / 外包公司的开发:Accenture、Avanade、Capgemini、Infosys 这类和微软深度绑定的 SI,内部 career track 明确把 AZ-204 列为 Senior Developer 的 prerequisite,考完能直接影响 promotion 窗口。
不适合考 AZ-204 的人:
- 非 .NET 公司的后端:如果你在 Google、Meta、字节、阿里这种纯 AWS/GCP 或自研云的公司,AZ-204 的 ROI 几乎为零,HR 不会看。
- 完全不写代码的运维 / SRE:这张证有大量"SDK 方法名、Durable Functions orchestrator 语法、Cosmos DB 分区键设计"的题,不写代码硬考会非常痛苦。应该考 AZ-104。
- 刚入行的学生:微软官方建议 1-2 年专业开发经验。零基础考能过,但考完招聘市场也不会因此给你应届 offer,不如先做项目。
AZ-204 vs AWS DVA-C02:同为 Associate 级开发者认证,AWS DVA 偏 Lambda + DynamoDB + API Gateway 的 serverless 三件套,题目更"工具化";AZ-204 偏企业集成 + 身份 + 事件驱动,case study 更重,更考"工程判断"。长期成本上 AZ-204 免费续期,DVA 每 3 年重考 150 美元,这是一个被严重低估的差异。
- 美国
- USD 115,000 – 155,000
- 澳洲
- AUD 105,000 – 150,000
- 中国
- CNY 300,000 – 550,000
- 新加坡
- SGD 90,000 – 140,000
Preparation tips
- **先做 case study 还是先做单选?** — 推荐先做单选建立手感和信心,最后用充裕时间啃 case study。case study 一旦进入就不能退出 section,压力比单选大得多。
- **关键词速查表**:看到 "serverless + 低成本 + 事件驱动" → Azure Functions Consumption Plan;看到 "大量消息 + FIFO + 事务" → Service Bus Queue;看到 "百万级事件 + 流处理" → Event Hub;看到 "订阅广播 + 轻量级" → Event Grid。记住这 4 个就能秒掉一大半消息类题目。
- **Durable Functions 的 4 种模式**:Function Chaining、Fan-out/Fan-in、Async HTTP APIs、Monitoring、Human Interaction。考试喜欢给一个"需要并行跑 100 个任务再汇总结果"的场景,答案是 Fan-out/Fan-in。
- **Blob Storage 的 access tier 选型**:Hot(频繁访问)、Cool(≥30 天)、Cold(≥90 天,新加的)、Archive(≥180 天,读取需要 rehydrate 小时级)。题目卡的是 Archive 读取延迟 — 不是立即可读。
- **考试语言**:中国大陆考生可以选英文或简体中文,但建议选英文。中文翻译经常把 "authentication" 和 "authorization" 混译,反而容易误判。
Common mistakes
- **Cosmos DB 分区键(partition key)设计** — 考纲里最容易翻车的一块。记住:分区键要选高基数、读写分布均匀的字段,单一 partition 不能超过 20GB。题目经常给一个"按 userId 还是按 tenantId 分区"的对比,选错直接扣一大块分数。
- **Function 触发器(trigger)类型搞混** — HTTP trigger、Timer trigger、Blob trigger、Queue trigger、Service Bus trigger、Event Grid trigger、Event Hub trigger 各有各的 binding 语法。尤其注意 Service Bus 和 Event Grid 的选型:Service Bus 是 FIFO + 事务,Event Grid 是广播 + 轻量级。
- **Managed Identity vs Service Principal 的区别** — 很多人以为是一回事。Managed Identity 是 Azure 自动管理的(无密码、无过期、只能用于 Azure 资源之间),Service Principal 是手动创建的 AAD 应用(有 secret、有过期时间、可以给外部系统用)。考试每次都出,选错直接 0 分。
- **App Configuration vs Key Vault 用途不分** — App Configuration 存"配置"(feature flag、连接字符串的 key、业务开关),Key Vault 存"秘密"(password、certificate、API key)。最佳实践是 App Configuration 里放一个 Key Vault reference,而不是把 secret 直接写进 App Configuration。
- **忽略 Cosmos DB 一致性级别(consistency level)** — Strong / Bounded Staleness / Session / Consistent Prefix / Eventual 五档,默认是 Session。题目经常问"需要全球读写 + 低延迟 + 能容忍轻微过期数据"选哪个,答案是 Eventual,不是 Session。
- **case study 不回头检查** — case study 题目共享背景信息,一旦答完进入下一个 section 就不能回头改。务必在第一遍就读完所有约束(SLA、预算、合规要求),再开始答题。
Before you register
What is the AZ-204 exam format and passing score?
The AZ-204 exam contains 40-60 questions with a 100-minute time limit. Question types include multiple choice, multi-select, drag-and-drop, and case studies. The passing score is 700/1000. The exam costs $165 USD and the certification must be renewed annually via a free online assessment.
What programming languages do I need for AZ-204?
The exam is not limited to a specific language, but most code examples use C# or Python. You should be comfortable reading code, understanding REST API calls, SDK usage, and JSON processing. Familiarity with at least one language is strongly recommended.
What domains does the AZ-204 exam cover?
The exam covers 5 domains: Develop Azure compute solutions (25-30%), Develop for Azure storage (15-20%), Implement Azure security (20-25%), Monitor, troubleshoot, and optimize Azure solutions (15-20%), and Connect to and consume Azure services (15-20%).
How long should I study for AZ-204?
With 1-2 years of Azure development experience, plan 2-3 months of systematic study. Focus on hands-on practice with Azure App Service, Functions, Cosmos DB, Key Vault, and Event Grid. Without prior Azure experience, allow 3-4 months and start with Azure fundamentals first.
What is the difference between AZ-204 and AZ-305?
AZ-204 focuses on coding and implementing cloud applications (development), while AZ-305 focuses on architecture design decisions. AZ-204 is Associate level, AZ-305 is Expert level. It is generally recommended to pass AZ-204 before attempting AZ-305.
How does AZ-204 certification help my career?
AZ-204 validates your Azure development skills and is highly valued for cloud developer, backend engineer, and full-stack developer roles. It serves as a stepping stone to the AZ-305 Solutions Architect Expert certification and demonstrates proficiency in Azure PaaS services to employers.
Learner experiences
Loading reviews…
之前天天在写 ASP.NET Core 微服务,以为 AZ-204 对我是开卷。实际考下来 case study 差点翻车 — 题目给一段 host.json 问 Functions 的 scale 行为,日常开发根本不会关心这个参数。建议哪怕是有经验的 .NET 开发也老老实实过一遍 Microsoft Learn。
J. Chen
.NET 后端 4 年 → Azure Developer · 872/1000 · 7 weeks
我是纯 Python 背景,没写过一行 C#。考前最担心代码题看不懂,但实际考试里 C# 片段问的基本都是 SDK 方法名和配置,能看懂语法就够了。真正难的是 Cosmos DB partition key 的设计题,这个和语言无关,纯业务判断。
Priya M.
Python Backend → 转 Azure · 754/1000 · 11 weeks
刚入职第一个月,老板说想升 mid 要这张证。完全零 Azure 经验,纯靠 Microsoft Learn + 官方沙箱硬啃。最后 712 险过。最后悔的是前 4 周一直在看视频不动手,后面发现只有自己在 portal 里点一遍,Managed Identity 和 Service Principal 的区别才真的清楚。
应届后端(悉尼)
Junior Backend Developer · 712/1000 · 14 weeks
Start with the first chapter.
2 free chapters · Full preparation from $29