Microsoft Azure Developer Associate AZ-204 Practice Question
You are developing an Azure Function triggered by an Azure Storage queue. Processing a single message can take up to 25 minutes. The default invisibility timeout (30 seconds) causes some messages to reappear before processing finishes, resulting in duplicate work. Which configuration change will prevent other function instances from seeing a message while it is being processed?
Set the message time-to-live (TTL) to 25 minutes when adding the message to the queue.
Enable dequeue count tracking on the queue.
Increase the visibility timeout to 25 minutes when retrieving each message.
Turn on sessions for the queue to enforce exclusive processing.
When a consumer retrieves a message from Azure Queue Storage, it can specify a visibility timeout value that keeps the message hidden from all other consumers for the specified duration. Setting the visibility timeout to 25 minutes when the function reads the message ensures the message remains invisible during the entire processing window. Changing the message's time-to-live does not affect its temporary visibility; TTL only controls permanent expiry. Dequeue count tracking is on by default and does not influence concurrency. Sessions are an Azure Service Bus feature and are not available in Azure Storage queues.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the visibility timeout in Azure Storage Queues?
Open an interactive chat with Bash
How does message time-to-live (TTL) differ from visibility timeout?
Open an interactive chat with Bash
Can sessions be used with Azure Storage Queues for exclusive processing?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Connect to and consume Azure services and third-party services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .