Courseiva

AZ-305 Design infrastructure solutions Practice Question

Which TWO Azure services can be used to implement a serverless event-driven architecture that processes messages from a queue and stores results in a database? (Choose two.)

⚠ Common exam trap

It's easy for candidates to confuse Azure Event Grid or Service Bus as compute services that can process messages and store results, when in reality they are only messaging/event routing layers that require a separate compute service (like Functions or Logic Apps) to perform the actual processing and database writes.

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 Logic Apps

Azure Logic Apps is correct because it provides a serverless workflow engine that can be triggered by a queue (e.g., Azure Service Bus queue or Storage queue) and then process messages using built-in connectors to write results into a database like Azure SQL Database or Cosmos DB. It supports event-driven execution without managing infrastructure, making it ideal for orchestrating message processing and persistence.

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

    Why this is correct

    Azure Logic Apps is a serverless workflow integration service that can be triggered directly by queue messages from Service Bus or Storage queues. It provides a visual designer with hundreds of connectors, enabling you to orchestrate multi-step workflows across different systems without writing code. Because it runs on demand and scales automatically per execution, it is a valid serverless processing solution for queue-based workloads.

  • ✗

    Azure Event Grid

    Why it's wrong here

    Azure Event Grid is an event routing service that uses publish/subscribe to deliver notifications about resources or custom events to registered handlers, but it does not process or execute compute logic. It cannot consume messages from a queue in a point-to-point manner; instead, it simply forwards events to endpoints like Function Apps or Logic Apps. For queue processing, you need a compute or workflow service, so Event Grid alone cannot implement serverless queue processing.

  • ✗

    Azure Service Bus

    Why it's wrong here

    Azure Service Bus is a fully managed message broker that provides durable queues and topics for decoupling applications, but it is not a compute service and does not execute user code. It acts as the message transport layer that a serverless trigger (e.g., a Function or Logic App) would poll or receive messages from. Without a separate compute trigger, Service Bus simply stores messages waiting to be processed, so it cannot by itself implement a serverless queue-processing solution.

  • ✓

    Azure Functions

    Why this is correct

    Azure Functions is a serverless compute service that runs custom code in response to triggers, including queue triggers for both Service Bus and Storage queues. It automatically scales based on incoming message volume, and you pay only for the time your code executes. With its native integration for queue bindings, Functions is a perfect fit for implementing event-driven, serverless processing of queue messages.

  • ✗

    Azure Batch

    Why it's wrong here

    Azure Batch is a job-scheduling service designed for large-scale parallel and high-performance computing workloads, not for event-driven processing of individual messages. It requires you to create pools of virtual machines, define jobs, and schedule tasks, and it does not have triggers for queue messages. Consequently, it lacks the serverless, pay-per-execution model needed to react to queue messages in real time.

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

About these practice questions

This AZ-305 question is part of Courseiva's 795-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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-305 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-305 exam.