Courseiva
Develop Azure compute solutionsmediumDrag & DropObjective-mapped

AZ-204 Develop Azure compute solutions Practice Question

Arrange the steps to deploy an Azure App Service using Azure CLI in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

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

Create resource group, then App Service plan, then web app, then deploy code, then verify

To deploy an App Service, first create a resource group, then an App Service plan, then the web app, deploy code, and finally verify.

Answer analysis

Option-by-option breakdown

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

  • Create resource group, then App Service plan, then web app, then deploy code, then verify

    Why this is correct

    This is the correct order because each step depends on the previous: the App Service plan requires a resource group, the web app requires the plan, code deployment requires the web app, and verification confirms the deployment.

  • Create App Service plan, then resource group, then web app, then deploy code, then verify

    Why it's wrong here

    Attempting to create an App Service plan before its containing resource group is fundamentally incorrect in Azure. All Azure resources, including an App Service plan, must be logically organized within a resource group. Azure requires a pre-defined resource group to scope and manage the plan's lifecycle, billing, and permissions. Without this foundational container, the App Service plan creation command would fail, as Azure would have no designated location to provision the resource.

  • Create resource group, then web app, then App Service plan, then deploy code, then verify

    Why it's wrong here

    Creating a web app before its corresponding App Service plan is an invalid sequence. An Azure App Service web app is an application instance that requires an underlying App Service plan to define its hosting environment, including compute resources, pricing tier, and scaling capabilities. The plan dictates the infrastructure on which the web app will run. Therefore, the plan must be provisioned first to provide the necessary compute context for the web app to be successfully created and associated.

  • Deploy code, then resource group, then App Service plan, then web app, then verify

    Why it's wrong here

    Deploying code as the initial step is fundamentally out of order because code deployment requires an existing target. You cannot push application binaries or scripts to a resource group, an App Service plan, or a web app that has not yet been provisioned. The web app resource must be fully created and configured to serve as the specific endpoint and hosting environment for the application's code, enabling subsequent runtime execution.

About these practice questions

One of 881 original AZ-204 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-204 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-204 exam.