AZ-400 Practice Question: Design and implement build and release pipelines
You are creating a release pipeline that deploys to Azure App Service. You want to ensure that the deployment uses the 'Run from package' feature for faster deployments and reduced downtime. Which deployment method should you select in the 'Azure App Service deploy' task?
⚠ Common exam trap
Test-takers frequently confuse 'Zip Deploy' with 'Run from package' because both use zip files, but Zip Deploy extracts the package to wwwroot, while Run from package runs directly from the zip, offering faster deployments and reduced downtime.
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
✓
RunFromPackage
The 'Run from package' feature deploys your app as a zip package directly to Azure App Service, bypassing the file copy and compilation steps of traditional methods. This reduces deployment time and downtime because the app runs from the package without extracting it to the wwwroot folder. Selecting 'RunFromPackage' in the Azure App Service deploy task enables this behavior by setting the WEBSITE_RUN_FROM_PACKAGE app setting to 1.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Web Deploy
Why it's wrong here
Web Deploy is a deployment technology that uses MSDeploy to synchronize files, databases, and configuration to IIS or Azure App Service. It does not deploy a zip package for Azure Functions run-from-package, and it requires a different set of app settings and does not provide the same atomic swap and performance benefits as the Azure App Service run-from-package feature, so it is not the correct choice for this scenario.
- ✗
Container
Why it's wrong here
Container deployment is used to deploy a Docker container image to Azure App Service for Containers, Web App for Containers, or Azure Container Instances. It is not applicable for a function app that uses run-from-package, which expects a zip package containing the function code, not a container image, and does not rely on Docker runtime or container registry settings.
- ✓
RunFromPackage
Why this is correct
RunFromPackage is the correct deployment method for Azure Functions because it deploys a zip package and sets the WEBSITE_RUN_FROM_PACKAGE app setting, which makes the function app run directly from the mounted zip blob. This approach provides benefits like atomic deployment, faster startup, and avoids file lock issues, and it is the recommended deployment mechanism for Azure Functions.
- ✗
Zip Deploy
Why it's wrong here
Zip Deploy uploads the application archive to Kudu and extracts its contents directly into the app's wwwroot (content) directory. It does not automatically set the WEBSITE_RUN_FROM_PACKAGE app setting, so the function app loads code from the extracted files rather than mounting the zip as a read-only package. This forfeits the atomic swap, faster cold-start, and file-lock avoidance that run-from-package provides, and it can leave the app in a partially updated state during the extraction process. Therefore, while Zip Deploy is a valid way to move code, it is not the run-from-package deployment method the scenario requires.
Go deeper
Related to this question
Learn chapter
Introduction to DevOps and Azure DevOps
Key term
Release pipeline
A Release pipeline is an automated sequence of steps that takes software from code commit to production deployment, ensuring quality and consistency.
Key term
Feature
A feature is a distinct unit of functionality that delivers value to the user, often managed and tracked throughout the software development lifecycle.
About these practice questions
Courseiva writes every AZ-400 question from scratch — 823 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
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.