CertLumen

Microsoft Azure Fundamentals (AZ-900) · Section 3 · 33% of the exam

Describe infrastructure as code (IaC)

One of the objectives of the Exam AZ-900: Microsoft Azure Fundamentals exam, in the section “Describe Azure management and governance”. Here is what it covers, the points to remember and a question to try.

What it covers

Why teams describe infrastructure in code instead of clicking in a portal, how Azure Resource Manager receives and processes every request, and how ARM templates (and the Bicep language that compiles to them) deploy resources declaratively, repeatably and idempotently.

Points to remember

  • IaC defines infrastructure in code that is versioned, reviewed, tested and repeatable, which reduces manual errors and drift.
  • Declarative IaC (ARM templates, Bicep, Terraform) states the desired end state; imperative scripts list the steps.
  • Idempotent deployments: repeating the same declarative deployment gives the same result without duplicates.
  • Azure Resource Manager is the management layer that authenticates, authorizes and routes every request from every tool.
  • ARM scopes: management group, subscription, resource group, resource; settings are inherited downward.

Try a question

A team needs to see which resources would be created, modified or deleted by a template deployment before running it. Which feature should they use?

  1. AA ReadOnly lock
  2. BAzure Advisor score
  3. CThe what-if operation
  4. DA cost budget
Show the answer

C. az deployment group what-if (or New-AzResourceGroupDeployment -WhatIf) shows the changes a deployment would make.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Infrastructure as code, Azure Resource Manager and ARM templates teaches this objective (about 35 minutes), and 18 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.

More in this section

← Previous objective · All 57 objectives · Next objective →