AZ-204 Communication & Stakeholder Relations 2 — Questions and Answers
Question 1: A developer needs to ensure that related Azure Service Bus messages are processed in order by the same consumer. Which feature should they enable?
- Message sessions (Correct answer)
- Duplicate detection
- Dead-letter queue
- Scheduled delivery
Correct answer: Message sessions
Message sessions in Service Bus group related messages and guarantee FIFO processing by a single consumer holding the session lock.
Question 2: You are subscribing to an Azure Event Grid custom topic and want to filter events so only events with a subject starting with '/orders/us/' are delivered. Which filter type should you use?
- Subject filter with subjectBeginsWith (Correct answer)
- Advanced filter on event type
- Domain filter
- Event schema filter
Correct answer: Subject filter with subjectBeginsWith
Event Grid subject filters support subjectBeginsWith and subjectEndsWith predicates to narrow delivery based on the event subject string.
Question 3: Messages in an Azure Service Bus queue have exceeded their maximum delivery count. Where do these messages automatically move?
- Dead-letter subqueue (Correct answer)
- Archive storage
- Poison message queue
- Back to the sender
Correct answer: Dead-letter subqueue
Service Bus automatically moves messages that exceed the maximum delivery count to the dead-letter subqueue ($DeadLetterQueue) for inspection.
Question 4: An Event Grid subscription is failing to deliver events to an endpoint. What is the default maximum retry period before Event Grid stops attempting delivery?
- 24 hours (Correct answer)
- 6 hours
- 12 hours
- 48 hours
Correct answer: 24 hours
Event Grid retries event delivery for up to 24 hours using an exponential backoff policy before dropping or dead-lettering the event.
Question 5: A Service Bus topic has multiple subscriptions. A developer wants Subscription A to receive only messages where the property 'Region' equals 'US'. What should they configure?
- A SQL filter rule on the subscription (Correct answer)
- A message session on the topic
- A duplicate detection window
- A scheduled message delay
Correct answer: A SQL filter rule on the subscription
SQL filter rules on a Service Bus subscription evaluate message properties using SQL-like syntax to selectively route messages.
Question 6: When publishing to an Azure Event Grid custom topic, which schema format allows you to include arbitrary data in a 'data' property alongside standard metadata fields?
- Event Grid schema (Correct answer)
- CloudEvents 1.0 schema
- Custom input mapping schema
- JSON Merge Patch schema
Correct answer: Event Grid schema
The Event Grid schema defines standard fields (id, subject, eventType, eventTime, dataVersion) and allows any JSON object in the 'data' property.
Question 7: A team must broadcast the same message to multiple independent consumer groups. Which Azure Service Bus entity should they use instead of a queue?
- Topic with subscriptions (Correct answer)
- Queue with sessions
- Queue with dead-lettering
- Relay hybrid connection
Correct answer: Topic with subscriptions
Service Bus topics allow a single published message to be delivered to multiple independent subscriptions (consumer groups) simultaneously.
A developer needs to ensure that related Azure Service Bus messages are processed in order by the same consumer.
Which feature should they enable?