AZ-204 practice question 3 of 35
You develop a software as a service (SaaS) offering to manage photographs. Users upload photos to a web service which then stores the photos in Azure…
Full set: 489 questionsDomain Develop Azure compute solutions
The proposed solution does not reliably meet the goal. The standard Azure Blob storage trigger for Azure Functions uses a polling mechanism to detect new blobs. When an Azure Function app runs on the Consumption plan, it can go idle. If a new blob is uploaded while the app is idle, there can be a latency of up to 10 minutes before the function is triggered due to a "cold start." This potential delay exceeds the "less than one minute" requirement. For low-latency scenarios like this, an event-driven approach using an Azure Event Grid trigger is the recommended and more reliable solution, as it provides near-real-time, push-based notifications.
A. Yes: This is incorrect because the Blob storage trigger on the default Consumption plan is not guaranteed to start within one minute due to its polling nature and potential cold-start latency.
1. Microsoft Documentation, "Azure Blob storage trigger for Azure Functions": Under the "Usage" section, it explicitly states: "When you use a Blob storage trigger on a Consumption plan, there can be up to a 10-minute delay in processing new blobs if a function app has gone idle. To avoid this latency, you can switch to an App Service plan with the Always On feature enabled, or you can use an Event Grid trigger."
2. Microsoft Documentation, "Tutorial: Automate resizing uploaded images using Event Grid": This tutorial presents the exact scenario from the question as a primary use case for Event Grid, stating, "This tutorial shows you how to use Event Grid and Azure Functions to resize images that are uploaded to a storage account." This highlights Event Grid as the best practice for this requirement.
3. Microsoft Documentation, "Choose between Blob trigger and Event Grid trigger for blob processing (Azure Functions)": This document compares the two triggers, noting that the Blob trigger is "Simple to set up" but has "Higher latency for blob processing compared to the Event Grid trigger (minutes vs. seconds)." It recommends Event Grid for "Functions that need to process blobs in a timely or 'real-time' manner."
Keep practicing
Take the free AZ-204 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AZ-204 practice questions
- Question 7Note: This question is part of a series of questions that present the same scenario. Each…
- Question 8You are developing several microservices to run on Azure Container Apps. External HTTP in…
- Question 10You develop and deploy an Azure App Service web app named App1. You create a new Azure Ke…
- Question 14You are developing an ASP.NET Core Web API web service. The web service uses Azure Applic…
- Question 17Note: This question is part of a series of questions that present the same scenario. Each…
- Question 22You have an existing Azure storage account that stores large volumes of data across multi…
