Courseiva
Develop Azure compute solutionseasyMultiple ChoiceObjective-mapped

AZ-204 Develop Azure compute solutions Practice Question

You are designing a solution that runs background jobs to process images. The jobs can run up to 10 minutes each. You need to ensure the jobs are resilient to failures and can be retried automatically. Which Azure service should you use?

⚠ Common exam trap

Many exam-takers confuse Azure Queue Storage with Azure Service Bus, assuming Service Bus is always better for reliability, but Queue Storage is simpler, cheaper, and perfectly suited for long-running background jobs with automatic retry via Azure Functions.

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 Queue Storage with an Azure Function trigger

Azure Queue Storage with an Azure Function trigger is the correct choice because it provides a reliable, message-based architecture for background job processing. Queue messages persist until processed, and the Azure Function trigger automatically retries on failure (up to 5 times by default, with configurable policies). This handles the 10-minute job duration via the queue's visibility timeout, which can be set to match the job's maximum runtime, ensuring messages are not prematurely reprocessed.

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 Logic Apps with a recurrence trigger

    Why it's wrong here

    While Azure Logic Apps can be triggered on a recurrence, they are primarily designed for workflow orchestration and integration, not for raw compute-intensive background jobs. Their consumption-based pricing model, charging per action and connector, can quickly become expensive for long-running or frequently executed tasks compared to more compute-optimized services. Furthermore, the inherent overhead of the workflow engine makes them less efficient for simple, repetitive background processing.

  • Azure Queue Storage with an Azure Function trigger

    Why this is correct

    Azure Queue Storage provides a highly reliable and scalable messaging solution, perfect for decoupling background job requests. When a message is added, an Azure Function is triggered, offering automatic scaling based on queue depth and cost-effective, consumption-based execution. This combination inherently supports automatic retries for transient failures and robust poison message handling, ensuring durable and resilient processing of potentially long-running background tasks without manual intervention.

  • Azure Service Bus with a WebJob

    Why it's wrong here

    Azure Service Bus with a WebJob is unsuitable because WebJobs, while capable of running background tasks, are not optimised for the robust, isolated execution of tasks lasting up to 10 minutes that require automatic re-execution of the entire job upon compute failure. While Service Bus provides message redelivery, the WebJob environment within an App Service lacks the inherent resilience and orchestration for long-running compute tasks. This option is tempting as Service Bus offers reliable messaging and message retries, making it excellent for decoupling and processing shorter, event-driven background tasks where the compute environment itself is less critical.

  • Azure Event Grid with a Logic App

    Why it's wrong here

    Azure Event Grid is fundamentally an event routing service, designed for delivering notifications about state changes rather than providing a durable queue for background job processing. While it can trigger a Logic App, this pairing is best suited for reactive, short-lived workflows that respond to discrete events. It lacks the inherent message durability, automatic retry mechanisms, and poison message handling capabilities essential for reliably processing potentially long-running or compute-intensive background jobs.

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.