0
0
Azurecloud~20 mins

Service Bus queues concept in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Service Bus Queue Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Message Delivery Behavior in Azure Service Bus Queues

What happens when a message is sent to an Azure Service Bus queue and there is no active receiver?

AThe message is stored in the queue until a receiver connects or the message expires.
BThe message is delivered to a dead-letter queue automatically.
CThe message is sent back to the sender as undeliverable.
DThe message is lost immediately because no receiver is available.
Attempts:
2 left
💡 Hint

Think about how queues work as buffers for messages.

Architecture
intermediate
2:00remaining
Choosing Between Queues and Topics in Azure Service Bus

You want to send messages to multiple independent receivers that each need to get all messages. Which Azure Service Bus feature should you use?

AUse a Service Bus topic with subscriptions to allow multiple receivers to get all messages.
BUse a Service Bus queue because it supports multiple receivers getting all messages.
CUse multiple queues, one per receiver, and send messages to each queue separately.
DUse a Service Bus relay to broadcast messages to multiple receivers.
Attempts:
2 left
💡 Hint

Think about publish-subscribe patterns.

security
advanced
2:00remaining
Securing Access to Azure Service Bus Queues

Which method provides the most secure way to grant an application access to send messages to a Service Bus queue without sharing the primary key?

AShare the primary connection string with the application.
BCreate a shared access signature (SAS) token with send permissions and share it.
CUse Azure Active Directory (Azure AD) role-based access control (RBAC) to assign send permissions.
DUse a public endpoint with IP filtering to restrict access.
Attempts:
2 left
💡 Hint

Consider modern identity and access management best practices.

Configuration
advanced
2:00remaining
Configuring Message Lock Duration in Service Bus Queues

You want to ensure that when a receiver reads a message from a Service Bus queue, the message is locked for 2 minutes to prevent other receivers from processing it simultaneously. Which configuration should you set?

ASet the queue's DefaultMessageTimeToLive property to '00:02:00'.
BSet the queue's LockDuration property to '00:02:00'.
CSet the queue's MaxDeliveryCount property to 2.
DSet the queue's AutoDeleteOnIdle property to '00:02:00'.
Attempts:
2 left
💡 Hint

Think about how message locks prevent duplicate processing.

Best Practice
expert
2:00remaining
Handling Poison Messages in Azure Service Bus Queues

What is the recommended approach to handle messages that repeatedly fail processing (poison messages) in an Azure Service Bus queue?

ADelete the message immediately upon first failure to avoid blocking the queue.
BIncrease the MaxDeliveryCount property to allow more retries indefinitely.
CDisable message locking to allow multiple receivers to process the message simultaneously.
DConfigure a dead-letter queue and move poison messages there after MaxDeliveryCount is exceeded.
Attempts:
2 left
💡 Hint

Consider how to isolate problematic messages without losing them.