Microsoft Certified: Azure Developer Associate Azure Messaging and Event-Driven Solutions 2 — Questions and Answers
Question 1: What is the maximum message size for Azure Service Bus in the Premium tier?
- 256 KB
- 1 MB
- 100 MB (Correct answer)
- 1 GB
Correct answer: 100 MB
The Premium tier of Azure Service Bus supports message sizes up to 100 MB, compared to 256 KB in the Standard tier.
Question 2: Which Azure Service Bus feature prevents duplicate messages from being processed within a configurable time window?
- Message sessions
- Duplicate detection (Correct answer)
- Dead-letter queue
- Message deferral
Correct answer: Duplicate detection
Duplicate detection uses a message ID history window to silently discard resubmitted messages with the same `MessageId` within the detection window.
Question 3: In Azure Event Hubs, what is a 'consumer group'?
- A set of partitions assigned to a single reader
- A logical view of an Event Hub that enables multiple independent readers to read the same stream (Correct answer)
- A group of publishers sharing an access key
- A batch of events processed together
Correct answer: A logical view of an Event Hub that enables multiple independent readers to read the same stream
Consumer groups allow multiple downstream applications to read the full event stream independently at their own pace without interfering with each other.
Question 4: What is the retention period for events in Azure Event Hubs on the Basic tier?
- 1 day (Correct answer)
- 7 days
- 30 days
- 90 days
Correct answer: 1 day
The Basic tier of Event Hubs retains events for only 1 day, while Standard and Premium tiers support up to 7 or 90 days respectively.
Question 5: Which Azure Event Grid delivery guarantee model ensures at-least-once delivery with retry policies?
- Exactly-once delivery
- At-most-once delivery
- At-least-once delivery with exponential back-off retries (Correct answer)
- Best-effort delivery without retries
Correct answer: At-least-once delivery with exponential back-off retries
Event Grid retries undelivered events using an exponential back-off policy for up to 24 hours, guaranteeing at-least-once delivery.
Question 6: What Azure Service Bus entity allows publish-subscribe messaging where multiple subscribers each receive a copy of the message?
- Queue
- Relay
- Topic with subscriptions (Correct answer)
- Event stream
Correct answer: Topic with subscriptions
Service Bus topics with subscriptions implement the pub/sub pattern: each subscription gets its own independent copy of every message published to the topic.
What is the maximum message size for Azure Service Bus in the Premium tier?