0
0
Azurecloud~20 mins

Service Bus topics and subscriptions in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Service Bus Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does message filtering work in Service Bus subscriptions?

You have a Service Bus topic with multiple subscriptions. Each subscription has a filter rule defined. What happens when a message is sent to the topic?

AThe message is delivered randomly to one subscription.
BThe message is delivered only to subscriptions whose filter rules match the message properties.
CThe message is delivered to the first subscription that matches the filter and then stops.
DThe message is delivered to all subscriptions regardless of filters.
Attempts:
2 left
💡 Hint

Think about how filters help route messages to interested subscribers.

Architecture
intermediate
2:00remaining
Choosing between queues and topics in Azure Service Bus

You want to design a messaging system where multiple independent services receive the same messages for processing. Which Azure Service Bus entity should you use?

AUse a single subscription on a topic and share it among all services.
BUse a queue because it supports multiple consumers receiving the same message.
CUse multiple queues, one per service, and send messages to each queue separately.
DUse a topic with multiple subscriptions so each service gets a copy of the message.
Attempts:
2 left
💡 Hint

Think about how to broadcast messages to multiple receivers.

security
advanced
2:00remaining
Securing access to Service Bus topics and subscriptions

You want to restrict a service so it can only send messages to a topic but cannot receive from any subscription. How do you configure Azure Service Bus access policies?

ACreate a Shared Access Policy with Send permission on the topic only.
BCreate a Shared Access Policy with Listen permission on all subscriptions.
CCreate a Shared Access Policy with Manage permission on the topic and subscriptions.
DCreate a Shared Access Policy with Send and Listen permissions on the topic.
Attempts:
2 left
💡 Hint

Consider the difference between Send and Listen permissions.

Configuration
advanced
2:00remaining
Dead-lettering behavior in Service Bus subscriptions

What happens when a message in a subscription exceeds the maximum delivery count?

AThe message is moved to the subscription's dead-letter queue for later inspection.
BThe message is sent back to the topic for reprocessing.
CThe message is automatically deleted from the subscription.
DThe message is delivered to all other subscriptions.
Attempts:
2 left
💡 Hint

Think about how Service Bus handles messages that cannot be processed successfully.

Best Practice
expert
2:00remaining
Optimizing throughput with Service Bus topics and subscriptions

You have a high-volume messaging system using Service Bus topics and subscriptions. To maximize throughput and avoid bottlenecks, which approach is best?

AUse a single subscription with multiple competing consumers to process messages in parallel.
BUse a single queue instead of topics to simplify processing.
CUse multiple subscriptions with filters and scale out consumers per subscription.
DUse topics with sessions enabled to guarantee message order across all subscriptions.
Attempts:
2 left
💡 Hint

Consider how to distribute load and filter messages efficiently.