Question 77 of 1,049
AZ-104 Deploy and Manage Azure Compute Practice Question
A developer wants to publish an internet-facing application from source code. Required capabilities include built-in HTTPS, deployment slots, and autoscale, but the team does not want to manage the operating system. Which Azure service should the administrator choose?
⚠ Common exam trap
It's easy for candidates to confuse Azure App Service with Azure Container Instances or Azure Kubernetes Service because they all support containers, but only App Service provides built-in deployment slots and OS abstraction without requiring container orchestration management.
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
✓
Azure App Service
Azure App Service is the correct choice because it provides a fully managed platform for hosting web applications with built-in HTTPS support, deployment slots for staging and swapping, and autoscale capabilities. It abstracts the underlying operating system, allowing the team to focus on code without managing infrastructure.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Azure Container Instances
Why it's wrong here
Azure Container Instances runs a single container directly without an orchestrator, so it lacks the built-in web hosting capabilities that App Service provides, such as managed TLS/SSL certificates, automatic OS patching, and integrated authentication/authorization. While ACI supports HTTP requests, it is designed for short-lived or burst workloads rather than a continuously available internet-facing application requiring deployment slots and autoscaling. Additionally, ACI requires you to handle container image updates, networking rules, and custom domain binding yourself, adding operational overhead that App Service would eliminate.
When this WOULD be correct
A question requiring fast, serverless container deployment without managing orchestration, where the app does not need HTTPS termination, slots, or autoscale, and the team wants to run a single container instance.
- ✗
Azure Virtual Machines
Why it's wrong here
Azure Virtual Machines give you full control over the operating system, but they shift significant responsibility onto your team: you must install and patch the OS, configure IIS or another web server, manage firewall rules, and handle load balancing and health probes separately. Even with VM Scale Sets, you still need to author a custom image or startup script for each OS update and manage patching schedules, which contradicts the implied goal of minimizing administrative effort. App Service, by contrast, abstracts away the host VM entirely, so you do not need to maintain an OS or web server runtime.
When this WOULD be correct
An organization needs to run a legacy application that requires full control over the operating system, custom software installations, or specific OS configurations. The question would specify that the team is willing to manage the OS and needs maximum flexibility.
- ✓
Azure App Service
Why this is correct
Azure App Service is the best fit for a code-based internet-facing application that needs managed HTTPS, deployment slots, and autoscale without operating system administration. It provides a platform service for web hosting, which reduces operational work while supporting the common web app features named in the requirement.
- ✗
Azure Kubernetes Service
Why it's wrong here
Azure Kubernetes Service is a container orchestration platform that adds a control plane, worker nodes, networking, and persistent storage considerations that are far more complex than hosting a simple internet-facing web app. To publish source code to AKS, you need a CI/CD pipeline to build containers, push them to a registry, create Kubernetes manifests or Helm charts, and manage cluster upgrades and node pool autoscaling. This level of infrastructure management is unjustified for a straightforward code-based app, and App Service delivers the same production-grade features (custom domains, TLS, scaling) without requiring you to operate a Kubernetes cluster.
When this WOULD be correct
A question requiring container orchestration, microservices architecture, or complex scaling across multiple containers, where the team is comfortable managing Kubernetes but wants Azure to manage the control plane. For example: 'Which service should be used to deploy a containerized microservices application with automated scaling and rolling updates?'
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.
✓Azure App ServiceCorrect answer▾
Why this is correct
Azure App Service is the best fit for a code-based internet-facing application that needs managed HTTPS, deployment slots, and autoscale without operating system administration. It provides a platform service for web hosting, which reduces operational work while supporting the common web app features named in the requirement.
✗Azure Container InstancesWrong answer — click to see why▾
Why this is wrong here
Azure Container Instances lacks built-in HTTPS, deployment slots, and autoscale; it is designed for simple container workloads without these PaaS features.
★ When this WOULD be the correct answer
A question requiring fast, serverless container deployment without managing orchestration, where the app does not need HTTPS termination, slots, or autoscale, and the team wants to run a single container instance.
Why candidates choose this
Candidates may confuse container instances with a fully managed PaaS, overlooking that App Service provides the required features like HTTPS, slots, and autoscale out-of-the-box.
✗Azure Virtual MachinesWrong answer — click to see why▾
Why this is wrong here
Azure Virtual Machines require managing the operating system, which contradicts the requirement that the team does not want to manage the OS. Additionally, VMs do not natively provide built-in HTTPS, deployment slots, or autoscale without additional configuration.
★ When this WOULD be the correct answer
An organization needs to run a legacy application that requires full control over the operating system, custom software installations, or specific OS configurations. The question would specify that the team is willing to manage the OS and needs maximum flexibility.
Why candidates choose this
Candidates may think VMs are the only way to get full control over the application environment, overlooking PaaS options like App Service that provide the required features without OS management.
✗Azure Kubernetes ServiceWrong answer — click to see why▾
Why this is wrong here
Azure Kubernetes Service (AKS) requires managing the operating system and Kubernetes control plane, which contradicts the requirement of not managing the OS. Additionally, AKS is overkill for a simple internet-facing application from source code and does not natively provide deployment slots.
★ When this WOULD be the correct answer
A question requiring container orchestration, microservices architecture, or complex scaling across multiple containers, where the team is comfortable managing Kubernetes but wants Azure to manage the control plane. For example: 'Which service should be used to deploy a containerized microservices application with automated scaling and rolling updates?'
Why candidates choose this
Candidates may think AKS is the only option for containerized applications or assume it provides built-in HTTPS and autoscale, overlooking that App Service offers these features without container orchestration complexity.
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
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 11, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.