Courseiva
Deploy and Manage Azure ComputeeasyMultiple ChoiceObjective-mapped

AZ-104 Deploy and Manage Azure Compute Practice Question

An operations team wants to deploy the same set of Azure VMs every month from source control. The deployment should be readable, repeatable, and stored as code. What should they use?

⚠ Common exam trap

Many candidates confuse Azure Advisor (a recommendation engine) or Resource Explorer (a read-only browser) with deployment tools, or assume manual portal deployment is acceptable despite the explicit 'stored as code' requirement.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Bicep template

Bicep is a domain-specific language (DSL) that uses declarative syntax to deploy Azure resources as code. It provides readability, repeatability, and version control integration, making it ideal for deploying the same set of VMs monthly from source control. Unlike ARM templates, Bicep offers cleaner syntax and modularity, but both are valid infrastructure-as-code solutions.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Bicep template

    Why this is correct

    Bicep is a declarative infrastructure-as-code language that is easier to read than raw ARM JSON. It is well suited for storing deployment definitions in source control and reusing them consistently across environments. Because it compiles to ARM templates, it still uses the Azure-native deployment engine while improving maintainability.

  • Manual portal deployment

    Why it's wrong here

    Manual portal deployment relies on clicking through the Azure portal, which is neither source-controlled nor repeatable across environments. Every hand-configured VM is prone to configuration drift, human error, and opaque change history, making it impossible to guarantee the same set of VMs is deployed identically. Although the portal exposes the underlying ARM template, using it properly requires saving and committing the template, which is exactly the infrastructure-as-code approach.

    When this WOULD be correct

    For a one-time, ad-hoc deployment where speed is prioritized over repeatability and source control, and the team does not need to automate or version the deployment.

  • Azure Advisor recommendation

    Why it's wrong here

    Azure Advisor analyzes your existing workloads and produces best-practice recommendations for cost, security, reliability, operational excellence, and performance. It is a monitoring and advisory engine, not a deployment mechanism, so it cannot generate the infrastructure definition for a set of VMs. Even when its suggestions touch networking or VM sizing, they are advisory only and never execute a deployment.

    When this WOULD be correct

    When an exam question asks which Azure service provides best practices and optimization recommendations for cost, security, reliability, or performance based on your existing Azure environment.

  • Azure Resource Explorer

    Why it's wrong here

    Azure Resource Explorer is a diagnostic and exploration tool that lists live resource properties and lets you issue REST API calls against your subscriptions. It directly manipulates resources on demand but does not provide an authoring or orchestration layer for defining reusable deployment definitions. As a result, it cannot capture the desired state of multiple VMs into a repeatable, versionable artifact, and it is not designed for initial deployment or blueprints.

    When this WOULD be correct

    When an administrator needs to view the current configuration of a specific Azure resource, such as a VM's properties, or to export the ARM template of an existing resource for documentation or migration purposes.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.

Bicep templateCorrect answer

Why this is correct

Bicep is a declarative infrastructure-as-code language that is easier to read than raw ARM JSON. It is well suited for storing deployment definitions in source control and reusing them consistently across environments. Because it compiles to ARM templates, it still uses the Azure-native deployment engine while improving maintainability.

Manual portal deploymentWrong answer — click to see why

Why this is wrong here

Manual portal deployment is not stored as code, lacks repeatability, and cannot be version-controlled from source control, failing the requirements of being readable, repeatable, and stored as code.

★ When this WOULD be the correct answer

For a one-time, ad-hoc deployment where speed is prioritized over repeatability and source control, and the team does not need to automate or version the deployment.

Why candidates choose this

Candidates may think manual deployment is simpler and sufficient for small-scale tasks, overlooking the need for automation and code-based infrastructure management.

Azure Advisor recommendationWrong answer — click to see why

Why this is wrong here

Azure Advisor provides recommendations for optimizing Azure resources, but it does not enable deploying VMs from source control as code. It is not a deployment tool.

★ When this WOULD be the correct answer

When an exam question asks which Azure service provides best practices and optimization recommendations for cost, security, reliability, or performance based on your existing Azure environment.

Why candidates choose this

Candidates may confuse Advisor's proactive recommendations with automated deployment capabilities, or think it can generate deployment templates from its suggestions.

Azure Resource ExplorerWrong answer — click to see why

Why this is wrong here

Azure Resource Explorer is a tool for browsing and managing existing Azure resources, not for deploying infrastructure as code in a repeatable, source-controlled manner.

★ When this WOULD be the correct answer

When an administrator needs to view the current configuration of a specific Azure resource, such as a VM's properties, or to export the ARM template of an existing resource for documentation or migration purposes.

Why candidates choose this

Candidates may confuse Azure Resource Explorer with a deployment tool because it allows viewing resource properties and templates, but it lacks the capability to define and deploy resources from source control.

Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

About these practice questions

One of 1,049 original AZ-104 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.