easymultiple choiceObjective-mapped

Exhibit

Source control folder:
- /infra/main.bicep
- /infra/parameters/prod.bicepparam
- /infra/modules/vm.bicep
Snippet:
resource vm 'Microsoft.Compute/virtualMachines@2023-09-01' = {
  name: vmName
  location: location
}
Goal: Reuse the same definition for every sprint release.

Based on the exhibit, the operations team wants to store the VM deployment definition in source control and deploy the same group of Azure VMs every sprint. The code should be readable and easy to review. What should they use?

Question 1easymultiple choice
Full question →

Based on the exhibit, the operations team wants to store the VM deployment definition in source control and deploy the same group of Azure VMs every sprint. The code should be readable and easy to review. What should they use?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Best answer

Bicep template files stored in source control.

Bicep is a declarative infrastructure-as-code format that is concise, readable, and easy to review in pull requests. It is well suited to repeatable Azure deployments from source control and supports modular design for VM infrastructure. This matches the team’s requirement for a readable, versioned deployment definition.

B

Distractor review

Manual creation in the Azure portal.

Portal-based deployment is not code-based and is harder to review, repeat, and track across sprints.

C

Distractor review

A one-time Azure CLI command typed into Cloud Shell.

A one-time command may create resources, but it is not the same as a reusable, source-controlled deployment definition.

D

Distractor review

A resource lock on the subscription.

A resource lock helps protect existing resources, but it does not define or deploy the VM infrastructure.

Common exam trap

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Technical deep dive

How to think about this question

This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.
  • Use explanations to understand the rule behind the answer.

TExam Day Tips

  • Underline the problem statement mentally.
  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Related practice questions

Related AZ-104 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this AZ-104 question test?

Read the scenario before looking for a memorised answer.

What is the correct answer to this question?

The correct answer is: Bicep template files stored in source control. — Bicep is the best answer because it is an infrastructure-as-code language built for Azure that is concise, readable, and source-control friendly. The exhibit already shows Bicep syntax and a parameter file, which indicates a repeatable deployment model. Using Bicep allows the team to review infrastructure changes the same way they review application code and redeploy consistent VM stacks every sprint. Why others are wrong: Manual portal work is not repeatable or easily reviewed. A single Azure CLI command can be useful for ad hoc tasks, but it is not a durable deployment artifact. A resource lock protects resources after they exist, but it does not create or describe the VM deployment itself.

What should I do if I get this AZ-104 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.