DevOps Engineer Expert (AZ-400)
Microsoft
25 free questions, no account
View certification – DevOps Engineer Expert (AZ-400)Question bank: 100 · timed mock exam: 60 min
Official exam page on the vendor's site (opens in a new tab) Official exam guide (opens in a new tab) Official prep course (opens in a new tab)
Compare: Terraform Associate vs Vault Associate
Compare: AZ-400 vs Terraform Associate
Free: 25 questions in study mode, all domains, no account.
Subscription: the 100 questions of this certification, the timed exam mode, and all other certifications too.
Secure card payment (Stripe) · No commitment · Cancel online
€9.99 / month
SubscribeThe 100 questions cover 8 domains: Terraform configuration, Core Terraform workflow, Terraform fundamentals, Terraform modules, Terraform state management, HCP Terraform, Infrastructure as Code (IaC) with Terraform, Maintain infrastructure with Terraform. 25 of them are free, without an account.
Answer at your pace: each answer is corrected straight away, with an explanation and the link to the documentation it relies on.
A timed exam of 60 minutes, with a question map to flag and come back to questions before you submit.
Your score is broken down by domain, so you know what to review first.
Every question is written from the public documentation, never copied from the exam. You can contest an answer from study mode.
A new engineer switching from an imperative scripting tool to Terraform asks how Terraform's configuration language works. Which statement correctly explains Terraform's Infrastructure as Code approach?
Correct answer: B
The Terraform language is declarative, describing an intended goal rather than the steps to reach that goal.
A team wants to pin the AWS provider to a specific version range and have Terraform install that provider automatically before the first plan. Where should they declare the version constraint, and which command installs the provider?
Correct answer: C
Running terraform init locally installs a provider and updates the dependency lock file with the latest version matching the version string you configured in your required_providers block.
An engineer just wrote a brand-new Terraform configuration in an empty directory. Which command must be run first, before `plan` or `apply` will work?
Correct answer: D
The terraform init command initializes a working directory containing Terraform configuration files; this is the first command you should run after writing a new Terraform configuration or cloning an existing configuration from version control.
What is the fundamental difference between a `resource` block and a `data` block in a Terraform configuration?
Correct answer: B
the resource block defines a piece of infrastructure and specifies the settings for Terraform to create it with, while data sources fetch data from the provider, but do not create or modify resources.
A platform module accepts a `region` value from whichever root configuration calls it, and that value cannot be seen or reused by unrelated root configurations that don't call the module. Which statement best describes this behavior?
Correct answer: A
modules commonly use input variables to accept values from the calling module, and a module may call other modules, connecting them by passing output values from one to input values of another.
A configuration has no `backend` block defined at all. Where does Terraform store its state by default, and how?
Correct answer: A
Terraform uses a backend called local by default, and the local backend type stores state as a local file on disk.
A database was created manually in the cloud console before Terraform was adopted. The team now wants Terraform to manage it going forward without recreating it. What should they do, and what constraint must they respect?
Correct answer: C
the terraform import command imports existing resources into Terraform, and Terraform expects that each remote object it is managing will be bound to only one resource address.
What does HCP Terraform actually do to create infrastructure?
Correct answer: C
HCP Terraform runs the Terraform CLI to provision infrastructure, and it is a platform that uses Terraform to provision and manage infrastructure, either on demand or in response to various events.
A platform team wants to manage resources across AWS, an on-premises VMware cluster, and a SaaS monitoring tool from the same Terraform configuration, using one consistent workflow. What Terraform mechanism makes this multi-cloud, hybrid, and service-agnostic approach possible?
Correct answer: A
Terraform relies on plugins called providers to interact with cloud providers, SaaS providers, and other APIs.
A configuration must create resources in two different AWS regions using the same AWS provider. How should this be expressed in the provider configuration?
Correct answer: B
alias is a unique identifier for a specific provider configuration, letting you use multiple configurations for the same provider.
Yes. 25 questions of this certification are free in study mode, across all its domains, without a subscription and without registration. The account is created when you subscribe, at checkout.
One monthly subscription covers all certifications and the timed practice exams. There is no minimum period. You cancel online, at any time, with the "Cancel your contract" function in My account; cancellation takes effect at the end of the month already paid, and no further payment is taken.
Every question is original, written from the vendor's public documentation. Each answer comes with an explanation and a link to the documentation page it relies on. InfraPrep is not affiliated with the vendors, and certification names belong to their owners.
The questions are written in English, also on the French version of the site.
Yes, the catalog changes over time: new certifications and new questions are added.
Microsoft
25 free questions, no account
View certification – DevOps Engineer Expert (AZ-400)