0
0
Azurecloud~20 mins

Queue storage basics in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Queue Storage Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Message Visibility Timeout Behavior
In Azure Queue Storage, what happens to a message after it is retrieved by a client but not deleted within the visibility timeout period?
AThe message becomes visible again in the queue for other clients to process.
BThe message is permanently deleted from the queue.
CThe message is moved to a dead-letter queue automatically.
DThe message is duplicated and both copies remain in the queue.
Attempts:
2 left
💡 Hint
Think about how Azure Queue Storage ensures messages are not lost if a client fails to process them.
Architecture
intermediate
2:00remaining
Best Practice for Processing Messages Exactly Once
Which design approach best ensures that each message in Azure Queue Storage is processed exactly once, even if the client crashes during processing?
ADelete the message immediately after retrieving it from the queue.
BRetrieve the message, process it, then delete it only after successful processing.
CProcess the message multiple times to ensure it is handled at least once.
DUse a separate database to track processed messages and never delete messages from the queue.
Attempts:
2 left
💡 Hint
Consider how to avoid losing messages if a client fails after retrieval but before processing.
Configuration
advanced
2:00remaining
Configuring Message Time-to-Live (TTL)
You want messages in an Azure Queue to expire automatically after 2 hours if not processed. Which configuration achieves this?
AConfigure the queue to move expired messages to a dead-letter queue after 2 hours.
BSet the queue's visibility timeout to 2 hours.
CSet the message TTL property to 7200 seconds when adding messages to the queue.
DEnable soft delete on the queue with a 2-hour retention period.
Attempts:
2 left
💡 Hint
TTL controls how long a message stays in the queue before automatic deletion.
security
advanced
2:00remaining
Securing Access to Azure Queue Storage
Which method provides the most secure way to grant temporary, limited access to an Azure Queue for a client application?
AUse a Shared Access Signature (SAS) token with specific permissions and expiry time.
BMake the queue public so anyone can access it without authentication.
CShare the storage account access key with the client application.
DEmbed the storage account key directly in the client application code.
Attempts:
2 left
💡 Hint
Think about granting limited and time-bound access without exposing full account keys.
🧠 Conceptual
expert
3:00remaining
Understanding Message De-duplication in Azure Queue Storage
Azure Queue Storage does not natively support message de-duplication. Which approach best handles duplicate messages in a distributed system using Azure Queue Storage?
ADelete messages immediately after retrieval to avoid duplicates.
BRely on Azure Queue Storage to automatically discard duplicate messages.
CSet the queue visibility timeout to zero to prevent duplicates.
DImplement an idempotent message processing logic that ignores duplicates based on unique message IDs stored externally.
Attempts:
2 left
💡 Hint
Consider how to handle duplicates when the storage service does not provide built-in support.