exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 22 discussion

Actual exam question from Microsoft's AZ-204
Question #: 22
Topic #: 2
[All AZ-204 Questions]

You are developing an Azure Function App that processes images that are uploaded to an Azure Blob container.
Images must be processed as quickly as possible after they are uploaded, and the solution must minimize latency. You create code to process images when the
Function App is triggered.
You need to configure the Function App.
What should you do?

  • A. Use an App Service plan. Configure the Function App to use an Azure Blob Storage input trigger.
  • B. Use a Consumption plan. Configure the Function App to use an Azure Blob Storage trigger.
  • C. Use a Consumption plan. Configure the Function App to use a Timer trigger.
  • D. Use an App Service plan. Configure the Function App to use an Azure Blob Storage trigger.
  • E. Use a Consumption plan. Configure the Function App to use an Azure Blob Storage input trigger.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Kitkit
Highly Voted 4 years, 2 months ago
The answer is D. Use an App Service plan. Configure the Function App to use an Azure Blob Storage trigger. Consumption plan can cause a 10-min 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 Always On enabled. https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-trigger?tabs=csharp
upvoted 205 times
SlavMar
3 years, 10 months ago
Why not B then. Using input for function apps seems to make more sense
upvoted 4 times
zzt
3 years, 9 months ago
Seemingly there is no such thing as "input trigger" it is "input binding" See: https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-input?tabs=csharp
upvoted 34 times
...
SlavMar
3 years, 10 months ago
I ment A
upvoted 1 times
...
...
nosby
1 year ago
Agree. https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#cold-start-behavior
upvoted 1 times
...
samraw83
2 years, 10 months ago
App service plan is best for the long running scenarios where you cannot use durable functions.
upvoted 2 times
...
OscarL
1 year, 10 months ago
totally agree
upvoted 1 times
...
...
danielcr
Highly Voted 4 years, 2 months ago
A or D, never B. With Consumption plan, you could have cold start, and the question say "must be processed as quickly as possible" so you need an App Service Plan. Between A and D ... All triggers are Input, so i don´t undertand the difference.
upvoted 24 times
ranjitklive
3 years, 9 months ago
Agree with your point, all triggers are input..!!
upvoted 3 times
ewertonews
3 years, 7 months ago
But that nomenclature is not used by MS. A function can have a trigger and a input binding (HTTP trigger with a Storage Queue as input binding for example).
upvoted 3 times
...
...
ewertonews
3 years, 7 months ago
It cannot be A. There is no such thing as a input trigger. it's either a (Blob Storage) trigger or an input binding. They are different things.
upvoted 13 times
surprise0011
2 years ago
exactly my friend. I was trying to find info about it and as I was thinking, there is no such thing
upvoted 1 times
...
...
...
Iaminall
Most Recent 2 months ago
Selected Answer: D
Input binding not input trigger, it doesn't exist
upvoted 1 times
...
bouda19
3 months, 2 weeks ago
Selected Answer: D
Response of copilot: To minimize both latency and cost for uploading media to Azure Blob Storage, the Premium Plan would be the best choice. Here's why: Latency: The Premium Plan eliminates cold starts by keeping instances warm, which means your function will respond faster when triggered. Cost: While the Premium Plan has a higher base cost compared to the Consumption Plan, it offers more predictable pricing and can be more cost-effective if your function runs continuously or frequently. The Consumption Plan is cost-effective for sporadic workloads but may suffer from cold starts, leading to higher latency. The Service Plan provides more control and can be kept "Always On," but it might be more expensive for infrequent use. So the answer is D
upvoted 1 times
...
DD7826
3 months, 3 weeks ago
Selected Answer: B
To process images as quickly as possible after they are uploaded to an Azure Blob container and minimize latency, you should: B. Use a Consumption plan. Configure the Function App to use an Azure Blob Storage trigger. This configuration ensures that your Function App is triggered immediately when a new image is uploaded to the Blob container, leveraging the serverless nature of the Consumption plan to scale automatically and handle the processing efficiently
upvoted 1 times
...
ns4098
7 months ago
B. Use a Consumption plan. Configure the Function App to use an Azure Blob Storage trigger. Here's why: Consumption Plan: This plan is optimized for event-driven tasks like image processing, and it automatically scales based on the number of incoming requests, ensuring that images are processed as quickly as possible. The Function App will scale to handle multiple images without pre-allocating resources. Azure Blob Storage Trigger: This trigger is designed to respond to new blobs (images) in a storage container. It will fire the function as soon as a new blob is uploaded, which minimizes latency and ensures images are processed immediately. Other options: App Service Plan: Not the best choice for minimizing latency and cost. It requires pre-allocated resources, which might lead to higher costs and unnecessary resource allocation, especially if your function is event-driven and sporadic. Timer Trigger: This would introduce delays, as the function would be triggered on a schedule, not immediately after a new image is uploaded.
upvoted 1 times
...
Faolba
7 months, 1 week ago
Selected Answer: B
B- Using a Consumption plan with an Azure Blob Storage trigger is the most effective way to ensure that images are processed as quickly as possible after they are uploaded. The Blob Storage trigger automatically invokes the Function App in response to blob uploads, minimizing latency and handling scaling automatically based on demand. While option D is technically correct, using an App Service plan may not be the most efficient choice for this scenario if your goal is to minimize latency and optimize costs. A Consumption plan is typically more suitable for event-driven scenarios like this, as it automatically scales and charges based on usage. An App Service plan might provide more predictable performance but could be more costly if the function is not in constant use. Therefore, option B remains the more optimal choice for processing images immediately upon upload.
upvoted 1 times
...
macfuk
10 months, 2 weeks ago
Whenever you see Function App, then answer should contain the word "consumption plan"
upvoted 1 times
...
Stel0Papad4
11 months, 1 week ago
Selected Answer: D
After a short discussion with Copilot AI , it gave me this answer: (Answer) If performance and no latency are top priorities, go with Option D (App Service plan). If cost efficiency and event-driven scalability matter more, choose Option B (Consumption plan).
upvoted 3 times
...
Isoldhe
1 year, 2 months ago
Selected Answer: B
Copilot AI also says the answer is B
upvoted 1 times
TheFivePips
8 months, 1 week ago
AI has a hard time with details some of the time. If you remind it that consumption plans may take up to 10 minutes to warm up then it will correct itself
upvoted 1 times
...
...
manopeydakon
1 year, 3 months ago
Got this answer from ChatGPT: I understand the concern for minimizing latency and processing images as quickly as possible. However, the Azure Functions Consumption plan is designed to scale automatically based on demand, providing a cost-effective and efficient solution for scenarios where latency is a critical factor. When you configure your Azure Function App with an Azure Blob Storage trigger in a Consumption plan, it enables the function to respond quickly to new blob uploads. The Consumption plan is optimized for event-driven workloads, making it suitable for scenarios where you need fast response times. Therefore, option B (Use a Consumption plan. Configure the Function App to use an Azure Blob Storage trigger) remains a suitable and efficient choice for your requirements.
upvoted 3 times
...
RuffBoii
1 year, 7 months ago
Had this on my exam today.
upvoted 3 times
CSLK
1 year, 1 month ago
What the answer you gave
upvoted 2 times
...
...
Guurr40__
1 year, 7 months ago
What is the difference between "storage trigger" and "storage input trigger"? In the end, isn't the second one just a reinforcement to indicate that the moment a file is placed, precisely as input, in the hypothetical folder, then it is picked up and processed by the trigger. Thank you in advance for your answers
upvoted 1 times
...
sachinrikhe
2 years, 1 month ago
Answer is B. When using a Consumption plan, Azure automatically scales out instances of the function as needed to handle incoming requests, and you only pay for the actual number of executions of the function. This ensures that the function is always available to process images without any delays caused by having to scale up or down manually.
upvoted 5 times
macobuzi
1 year, 8 months ago
You can't use Consumption Plan. Consumption Plan can take up to 10 mins to warm up which doesn't fit the requirement.
upvoted 2 times
...
...
nedlo
2 years, 1 month ago
Selected Answer: D
D is correct "For this scenario where images must be processed as quickly as possible and latency must be minimized, it is recommended to use the App Service plan instead of the Consumption plan. The App Service plan provides dedicated resources to the function app, which can help improve performance and minimize the risk of cold start delays. Additionally, the App Service plan allows you to scale out the function app to multiple instances, which can help handle high traffic loads and further improve performance. On the other hand, the Consumption plan is a serverless hosting option that scales automatically based on demand, but may result in cold start delays and limited resources during high traffic periods. Therefore, it is recommended to use the App Service plan for this scenario."
upvoted 3 times
...
vguimars
2 years, 2 months ago
Selected Answer: D
Use an App Service plan. Configure the Function App to use an Azure Blob Storage trigger. Consumption plan can cause a 10-min 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 Always On enabled. https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-trigger?tabs=csharp
upvoted 1 times
...
OPT_001122
2 years, 4 months ago
Selected Answer: D
D. Use an App Service plan. Configure the Function App to use an Azure Blob Storage trigger.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago