AZ-900 Practice Question 74: Functions Timer Trigger
Microsoft Azure Fundamentals (AZ-900) · Test 8 · question 4 of 10
A finance team wants a small piece of code to run automatically at 2:00 AM every night to archive stale records. Nobody clicks a button to start it, no other system sends it a message, and no server should sit running the rest of the day. Which Azure Functions trigger fits this scenario?
Show answer and explanation
Answer:
A timer trigger lets you run a function on a schedule, defined with a CRON-style expression such as 0 0 2 * * * for 2:00 AM daily. The function wakes up on that schedule, runs, and the underlying compute is released afterward, matching a task that must fire nightly with no external caller and no server running the rest of the day.
Option A, the HTTP trigger, only runs when a client sends it a request, so nothing would happen at 2:00 AM unless something else called it. Option B, the Blob storage trigger, fires in response to a file being added or changed in blob storage, which has no connection to a nightly clock. Option C, the queue trigger, fires when a message arrives on a queue; the archival job described here has no queue and no message producer, only a schedule.
Reference: Timer trigger for Azure Functions