Microsoft Azure Developer Associate AZ-204 Practice Question
You are designing an Azure Function named GenerateDailySummary. The function must run exactly at 03:00 UTC every day and generate a single daily report from all messages that are currently in the Azure Storage queue named "orders". The report must not remove or dequeue any of the messages. You want the simplest and most cost-effective implementation that meets both the scheduling and data-access requirements. Which design should you choose for the GenerateDailySummary function?
Configure an HTTP trigger and invoke the function daily at 03:00 UTC by using an Azure Logic Apps Scheduler.
Configure a timer trigger with the cron expression "0 0 3 * * *" and add an Azure Storage queue input binding that points to the "orders" queue.
Configure a timer trigger with the cron expression "0 0 3 * * *" and, inside the function, use the Azure Storage SDK (QueueClient.PeekMessagesAsync) to read the "orders" queue without dequeuing the messages.
Configure an Azure Storage queue trigger on the "orders" queue and set the visibility timeout to 24 hours.
A timer trigger with the cron expression "0 0 3 * * *" ensures that the function runs once per day at 03:00 UTC. Because a timer trigger is not tied to queue activity, it runs only once daily. Inside the function, you can call the Azure Storage SDK (for example, QueueClient.PeekMessagesAsync) to read the messages without affecting their visibility or dequeue count. A queue trigger would run once per message and remove the messages, an Event Grid subscription does not provide the required schedule, and an HTTP trigger plus Logic Apps adds unnecessary cost and complexity.
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 a timer trigger in Azure Functions?
Open an interactive chat with Bash
What does QueueClient.PeekMessagesAsync do in Azure?
Open an interactive chat with Bash
What is the difference between a timer trigger and a queue trigger in Azure Functions?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Develop Azure compute solutions
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 .