📬 Azure Service Bus - AZ-204 Practice Questions

Implement message-based solutions with Azure Service Bus including queues, topics, sessions, and dead-letter queues.

26Questions Available
1Exam Domains

Practice Service Bus Questions Now

Start a timed practice session focusing on Azure Service Bus topics from the AZ-204 question bank.

Start AZ-204 Practice Quiz →

AZ-204 Service Bus Question Bank (26 Questions)

Browse all 26 practice questions covering Azure Service Bus for the AZ-204 certification exam. Answers are intentionally hidden on this page so you can self-test first before checking results in quiz mode.

  1. Question 1Connect to and consume Azure services and third-party services

    An Azure Service Bus topic has three subscriptions. A message is published to the topic. How many times is the message delivered?

    AOnce, to one subscription chosen by round-robin
    BOnce per subscription — three deliveries total
    CTo the subscription that reads it first
    DThree times to each subscription (nine total)

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  2. Question 2Connect to and consume Azure services and third-party services

    A developer configures a dead-letter queue on an Azure Service Bus subscription. Under which conditions are messages moved to the dead-letter queue?

    AOnly when the message TTL expires
    BWhen MaxDeliveryCount is exceeded, message TTL expires, or the subscriber explicitly dead-letters the message
    COnly when the subscriber calls DeadLetterMessageAsync()
    DWhen the message size exceeds 256 KB

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  3. Question 3Connect to and consume Azure services and third-party services

    A developer needs to route a subset of Azure Service Bus messages on a topic to a specific subscription based on a message property. Which feature enables this?

    AService Bus queue sessions
    BTopic subscription filters (SQL filter or correlation filter)
    CMessage scheduling
    DDead-letter forwarding

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  4. Question 4Connect to and consume Azure services and third-party services

    What is the Azure Service Bus 'message session' feature used for?

    AManaging secure connections to Service Bus
    BEnabling ordered, first-in-first-out processing of related messages by grouping them with a SessionId; a session-aware receiver gets exclusive lock on all messages with the same session
    CAuthentication sessions for Service Bus clients
    DLong-lived HTTP connections to Service Bus

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  5. Question 5Develop Azure compute solutions

    A developer deploys a Function App using the Consumption plan. The function must process messages from an Azure Service Bus queue. Which Function trigger should they use?

    ATimerTrigger
    BServiceBusTrigger
    CQueueTrigger (Storage)
    DEventHubTrigger

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  6. Question 6Connect to and consume Azure services and third-party services

    A developer needs to consume messages from an Azure Service Bus queue and ensure that each message is processed at least once. Which receive mode should be used?

    AReceiveAndDelete
    BPeekLock with explicit Complete() call
    CDeadLetter mode
    DSessionReceiver mode

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  7. Question 7Connect to and consume Azure services and third-party services

    A developer needs to ensure that messages in an Azure Service Bus queue are processed in the exact order they were sent. What must be configured?

    AEnable partitioning on the queue
    BUse sessions with a session ID to maintain FIFO order per session
    CSet the lock duration to 5 minutes
    DEnable duplicate detection

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  8. Question 8Connect to and consume Azure services and third-party services

    A developer configures an Azure Service Bus queue with a message lock duration of 30 seconds. The function processing takes 45 seconds. What should the developer do?

    AReduce message processing time
    BIncrease the lock duration on the queue to exceed the processing time
    CRenew the message lock during processing using RenewMessageLockAsync()
    DEnable sessions on the queue

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  9. Question 9Develop Azure compute solutions

    A developer needs to ensure that an Azure Function deployed in the Consumption plan handles exactly one message at a time from a Service Bus queue, regardless of scale-out. What configuration achieves this?

    ASet WEBSITE_MAX_DYNAMIC_APPLICATION_SCALE_OUT=1
    BEnable sessions on the Service Bus queue and use a session-aware trigger with maxConcurrentSessions=1
    CSet maxConcurrentCalls=1 in host.json for all instances
    DUse a single-threaded language worker

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  10. Question 10Connect to and consume Azure services and third-party services

    A developer needs to ensure that messages sent to a Service Bus queue are not processed twice even if the sender sends the same message twice within a 5-minute window. Which feature prevents this?

    AMessage sessions
    BDuplicate detection (MessageId-based, with a 5-minute detection window)
    CDead-letter queue
    DMessage deferral

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  11. Question 11Connect to and consume Azure services and third-party services

    What is the difference between 'Azure Service Bus queues' and 'Azure Service Bus topics' from a developer's perspective?

    AQueues have larger message size limits
    BQueues provide point-to-point (one consumer per message); topics provide publish-subscribe (multiple subscriptions each receive a copy of the message with optional filter rules)
    CTopics have guaranteed ordering; queues don't
    DQueues support AMQP; topics support HTTP only

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  12. Question 12Connect to and consume Azure services and third-party services

    You need reliable, ordered message delivery between microservices, with support for message sessions and dead-lettering. Which service should you use?

    AAzure Storage Queues
    BAzure Event Hubs
    CAzure Service Bus Queues
    DAzure Event Grid

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  13. Question 13Connect to and consume Azure services and third-party services

    What is the difference between Azure Event Hub 'consumer groups' and Azure Service Bus 'subscriptions'?

    AThey are identical concepts
    BEvent Hub consumer groups provide independent read cursors (offsets) for different consumers reading the same event stream; Service Bus subscriptions receive independent copies of messages from a topic
    CConsumer groups are for partitioned data; subscriptions are not
    DService Bus subscriptions are older technology replaced by consumer groups

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  14. Question 14Connect to and consume Azure services and third-party services

    What is the Azure Service Bus 'message lock renewal' and why is it important?

    ARenewing Service Bus namespace licenses
    BExtending the lock expiration time for a message being processed; required when processing takes longer than the lock timeout to prevent the message from becoming visible again for reprocessing
    CRenewing Service Bus connection authentication
    DLocking a message queue for exclusive use

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  15. Question 15Connect to and consume Azure services and third-party services

    A Service Bus message has been delivered 10 times without being completed. What happens next by default?

    AThe message is deleted permanently
    BThe message is moved to the dead-letter sub-queue
    CThe message lock is renewed indefinitely
    DThe message is returned to the front of the queue

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  16. Question 16Develop Azure compute solutions

    Which property in host.json controls the maximum number of messages an Azure Functions Service Bus trigger processes concurrently?

    AmaxConcurrentCalls
    BbatchSize
    CprefetchCount
    DmaxDeliveryCount

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  17. Question 17Connect to and consume Azure services and third-party services

    A developer uses the Service Bus SDK and needs to send multiple messages as a single atomic unit — either all succeed or all fail. Which feature should they use?

    AMessage batching with CreateMessageBatchAsync()
    BService Bus transactions using ServiceBusClient.CreateTransactionScope()
    CMessage deferral
    DDead-lettering

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  18. Question 18Connect to and consume Azure services and third-party services

    A developer implements a Service Bus receiver that must process messages in batches of 5 for efficiency. Which SDK method retrieves multiple messages in one call?

    Areceiver.ReceiveMessageAsync()
    Breceiver.ReceiveMessagesAsync(maxMessages: 5)
    Creceiver.PeekMessagesAsync(5)
    Dreceiver.CreateBatchAsync()

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  19. Question 19Develop Azure compute solutions

    An Azure Function needs to trigger whenever a new message arrives in an Azure Storage Queue. Which trigger type should you configure?

    AHTTP trigger
    BTimer trigger
    CQueue trigger
    DBlob trigger

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  20. Question 20Connect to and consume Azure services and third-party services

    Which Azure messaging service provides AMQP-based messaging with topics and subscriptions for publish-subscribe patterns?

    AAzure Queue Storage
    BAzure Event Hubs
    CAzure Service Bus
    DAzure Relay

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  21. Question 21Connect to and consume Azure services and third-party services

    What is the purpose of Azure Service Bus 'dead-letter queue'?

    AStoring deleted Service Bus namespaces
    BA sub-queue that receives messages that cannot be delivered after max delivery attempts or that were explicitly dead-lettered; developers can inspect and handle poison messages
    CA queue for internal Service Bus metadata
    DAn archive for processed messages

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  22. Question 22Connect to and consume Azure services and third-party services

    What is the difference between 'az servicebus queue create' and using ARM/Bicep templates for Service Bus queue creation?

    AThey are identical in capability
    BCLI commands are imperative (create/delete individual resources); ARM/Bicep is declarative (defines desired state, enables repeatable deployments, idempotent — safe to run multiple times)
    CCLI supports more queue properties than ARM
    DARM templates are only for production deployments

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  23. Question 23Connect to and consume Azure services and third-party services

    An Azure Queue Storage message must not be visible to consumers for 30 minutes after being added. Which parameter achieves this?

    AMessage TTL set to 30 minutes
    BVisibility timeout set to 30 minutes at enqueue time
    CSetting the queue access policy with a 30-minute start time
    DUsing a Service Bus scheduled message instead

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  24. Question 24Develop Azure compute solutions

    A Container App must process tasks from an Azure Service Bus queue and scale from 0 to N replicas based on queue depth. Which scale rule type should be configured?

    AHTTP
    BCPU
    CAzure Service Bus (KEDA)
    DMemory

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  25. Question 25Connect to and consume Azure services and third-party services

    A developer uses Azure Queue Storage. A message was processed but not deleted. After the visibility timeout expires, what happens to the message?

    AThe message is permanently deleted
    BThe message becomes visible again and can be dequeued by another consumer
    CThe message is moved to a dead-letter queue
    DThe message's dequeue count is reset to zero

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz
  26. Question 26Develop Azure compute solutions

    A developer configures a Consumption plan Function App. The function must process 500 messages simultaneously from an Azure Storage Queue. What limits the actual parallelism?

    AThe FUNCTIONS_WORKER_PROCESS_COUNT setting
    BThe batchSize and newBatchThreshold in host.json for the queue trigger, combined with the number of scale-out instances
    CThe Azure Storage Queue maximum throughput
    DThe Function App's memory limit

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start AZ-204 Quiz

Key Service Bus Concepts for AZ-204

service busqueuetopicsubscriptionsessiondead letterpeek lockreceive and deletemessage

AZ-204 Service Bus Exam Tips

Azure Service Bus questions in AZ-204 are typically scenario-based. Focus on Azure application development, integration services, authentication, and runtime reliability. Priority concepts: service bus, queue, topic, subscription, session, dead letter.

What AZ-204 Expects

  • Anchor your answer in choose managed developer services that simplify secure integration and deployment.
  • Service Bus scenarios for AZ-204 are frequently mapped to Domain 5 (15-20%), so read the objective carefully before picking controls or architecture.
  • Expect multi-topic scenarios where Service Bus interacts with identity, networking, governance, or monitoring patterns rather than appearing as an isolated question.
  • When two options are both technically valid, prefer the choice that best aligns with the exam's operational scope (Associate) and vendor best practices.

High-Value Service Bus Concepts

  • Know the core Service Bus building blocks cold: service bus, queue, topic, subscription.
  • Review the edge-case features and limits for session, dead letter; these details are commonly used to differentiate answer choices.
  • Practice service-integration reasoning: how Service Bus pairs with Event Grid, Azure Functions in real deployment patterns.
  • For AZ-204, explain why the chosen Service Bus design meets reliability, security, and cost expectations better than the alternatives.

Common AZ-204 Traps

  • Watch for using infrastructure-heavy answers for app-level requirements.
  • Questions in Connect to and Consume Azure Services often include distractors that look correct for Service Bus but violate least-privilege, compliance, or availability requirements.
  • Avoid picking options purely by feature name; validate data path, failure handling, and governance impact before answering.
  • If the prompt hints at automation or repeatability, eliminate manual-only operational answers first.

Fast Review Checklist

  • Can you compare at least two Service Bus implementation paths and justify which one best fits the scenario?
  • Can you map the chosen answer back to Connect to and Consume Azure Services (15-20%) outcomes for AZ-204?
  • Can you explain security and access boundaries for Service Bus without relying on default-open assumptions?
  • Can you describe how Service Bus integrates with Event Grid and Azure Functions during failure, scaling, and monitoring events?

Exam Domains Covering Service Bus

Related Resources

More AZ-204 Study Resources