AZ-204 Develop Azure compute solutions Practice Question
You are deploying a background processing job that reads messages from an Azure Storage Queue. The job must run on the same compute resources as the main web application and must not require additional deployment or monitoring overhead. Which solution should you use?
⚠ Common exam trap
It's easy for candidates to choose Azure Functions for queue processing without considering the requirement to share compute resources with the main web application, overlooking that WebJobs are the native background processing solution within App Service.
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
✓
Add an Azure WebJob to the App Service that hosts the main application.
Azure WebJobs run in the same App Service plan as the main web application, sharing compute resources without requiring separate deployment or monitoring. A WebJob with a continuous trigger can read from an Azure Storage Queue using the QueueTrigger attribute, meeting the requirement of no additional overhead.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Deploy an Azure Function with a Queue trigger on the Consumption plan.
Why it's wrong here
An Azure Function on the Consumption plan operates as an independent, serverless compute unit, dynamically scaling based on event triggers. It does not share the underlying App Service Plan resources or billing with the main web application, leading to distinct management and cost considerations for its execution. This approach introduces separate infrastructure rather than integrating with the existing web app's compute context.
- ✓
Add an Azure WebJob to the App Service that hosts the main application.
Why this is correct
Azure WebJobs are designed to run background tasks directly within an existing Azure App Service instance, sharing the same App Service Plan's compute, memory, and network resources. This tight integration means the WebJob scales automatically with the web app's instances and incurs no additional compute costs beyond the App Service Plan itself, simplifying management and cost tracking by leveraging existing infrastructure.
- ✗
Create a separate Azure Container Instance to run a continuous job.
Why it's wrong here
Creating a separate Azure Container Instance (ACI) provides an isolated, on-demand containerized environment for running background jobs. However, ACI operates as a distinct compute service, completely separate from the App Service hosting the main application, incurring its own billing based on CPU and memory usage and requiring separate deployment and management overhead. This introduces a new, independent compute environment rather than utilizing existing resources.
- ✗
Use Azure Logic Apps with a recurrence trigger to poll the queue.
Why it's wrong here
Azure Logic Apps offer a serverless platform for orchestrating automated workflows, triggered by events or schedules, but they function as a high-level integration service. While capable of polling queues, Logic Apps execute outside the App Service's compute context, incurring costs per action and connector usage, making them less suitable for a simple background processing job intended to leverage existing application resources. This solution focuses on workflow automation rather than direct compute integration.
Go deeper
Related to this question
About these practice questions
Courseiva writes every AZ-204 question from scratch — 881 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-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.