Courseiva
Design and implement build and release pipelinesmediumMultiple SelectObjective-mapped

AZ-400 Practice Question: Design and implement build and release pipelines

Which TWO tasks can be used to deploy an Azure Web App using YAML pipelines in Azure DevOps?

⚠ Common exam trap

It's easy for candidates to confuse AzureRmWebAppDeployment as a deprecated or incorrect task, but it remains a valid YAML pipeline task for Azure Web App deployments, especially when using ARM-based deployment slots.

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

AzureWebApp

The AzureWebApp task is correct because it is the dedicated Azure DevOps YAML pipeline task for deploying code to an Azure Web App (App Service). It supports deployment methods like Web Deploy (msdeploy), Kudu REST API, and ZIP deploy, making it the standard choice for web app deployments.

Answer analysis

Option-by-option breakdown

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

  • AzureWebApp

    Why this is correct

    AzureWebApp is a first-class Azure Pipelines deployment task designed specifically for Azure App Service. It supports multiple deployment methods, including ZIP deploy, Web Deploy, and container images, and can be used on both Windows and Linux agents, making it a correct choice for deploying an Azure web app.

  • CopyFilesOverSSH

    Why it's wrong here

    CopyFilesOverSSH is not a deployment task for Azure Web Apps; it uses Secure Copy Protocol (SCP) to copy files to a remote machine over SSH. While it can transfer files, it does not perform the web app deployment steps such as package installation, configuration, or starting the application, so it cannot deploy an Azure web app.

  • AzureRmWebAppDeployment

    Why this is correct

    AzureRmWebAppDeployment is a valid Azure Pipelines deployment task that uses Azure Resource Manager and Web Deploy (MSDeploy) to publish content to Azure Web Apps. It supports package deployment, Web Deploy parameters, and works on both Windows and Linux host agents, so it is a correct option for deploying an Azure web app.

  • AzureFunctionApp

    Why it's wrong here

    AzureFunctionApp is designed specifically for deploying to Azure Functions, which is an event-driven compute service, not a general web app. Even though both services are part of App Service, this task targets function apps and does not deploy standard web apps, making it incorrect for this scenario.

  • AzureVMAppDeployment

    Why it's wrong here

    AzureVMAppDeployment is intended for deploying to Azure virtual machines, not Azure App Service Web Apps. It typically uses deployment scripts, DSC, or Chef to configure VMs, and it lacks the Azure App Service integration required to deploy a web app, so it is not a valid task for this purpose.

About these practice questions

One of 823 original AZ-400 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-400 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-400 exam.