exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 32 discussion

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

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
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
Storage Blob storage. The storage account type is General-purpose V2.
When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. The process to produce a mobile-friendly version of the image must start in less than one minute.
You need to design the process that starts the photo processing.
Solution: Create an Azure Function app that uses the Consumption hosting model and that is triggered from the blob upload.
Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
AndresMza
Highly Voted 3 years, 8 months ago
Answer should be "No". Consumption plan can take up to several minutes to trigger the function. See note from https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-storage-blob-triggered-function. "When your function app runs in the default Consumption plan, there may be a delay of up to several minutes between the blob being added or updated and the function being triggered. If you need low latency in your blob triggered functions, consider running your function app in an App Service plan."
upvoted 149 times
forgetfulalligator
1 year, 12 months ago
Yeap , you can also use a premium plan to use pre-warmed instances so no cold start
upvoted 3 times
...
rdemontis
3 years, 8 months ago
In my opinion you're right. Often in a consumption plan the function starts immediately but it's not guaranteed and in production environment minimizing latency is very important as required in the question. For further info about cold starts i found an interesting article: https://azure.microsoft.com/en-us/blog/understanding-serverless-cold-start/#:~:text=In%20the%20context%20of%20Azure,haven't%20been%20called%20recently.
upvoted 7 times
...
Esward
1 year, 10 months ago
Use the app service plan and set always on property to true to start processing immediately
upvoted 2 times
...
...
[Removed]
Highly Voted 3 years, 8 months ago
Hi all. I would say, that this has to be "No"... Quote: "The process to produce a mobile-friendly version of the image must start in less than one minute." And this is only a feature from the "Premium plan" (Perpetually warm instances to avoid any cold start).... Consumption plan = up to several minutes...
upvoted 18 times
...
e3562ed
Most Recent 7 months, 1 week ago
Selected Answer: B
for immediate start, it has to be app service plan
upvoted 1 times
...
CarlosTheBoldest
1 year ago
Selected Answer: B
As rest of people says the consumption plan doesn't assure low latency
upvoted 1 times
...
Tarajee
1 year, 2 months ago
Got this on2023sept
upvoted 2 times
...
Chris17
1 year, 7 months ago
Selected Answer: B
The answer should be "No" because with consuption plan take more than 1 minuts, in the before question. same to the answer, it is with app service plan.
upvoted 1 times
...
NombreFalso
1 year, 9 months ago
The explanation is bull. Don't buy it. It's B.
upvoted 1 times
...
carlosghosn
2 years ago
Got this in the exam today ! Nov 25, 2022
upvoted 1 times
...
dookebroyle
2 years, 5 months ago
Selected Answer: B
Answer should be "no" after reviewing this article. The processing needs to begin sooner and Microsoft specifies the difference between an Event Grid trigger and a storage blob trigger. https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-trigger?tabs=in-process%2Cextensionv5&pivots=programming-language-csharp "Minimizing latency: If your function app is on the 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 Always On enabled. You can also use an Event Grid trigger with your Blob storage account. For an example, see the Event Grid tutorial."
upvoted 5 times
...
Satish_Babu
2 years, 5 months ago
Selected Answer: B
Correction answer is B (No) Because - When your function app runs in the default Consumption plan, there may be a delay of up to several minutes between the blob being added or updated and the function being triggered. If you need low latency in your blob triggered functions, consider running your function app in an App Service plan.
upvoted 2 times
...
azure900practice
2 years, 5 months ago
Selected Answer: B
Functin app should be in App serice plan with 'Always On' setting as true. Consumption plan have cold starts and latency.
upvoted 1 times
...
Eltooth
2 years, 6 months ago
Selected Answer: B
B is correct answer. Consumption plan needs to warm up (up to 10 minutes) before processing.
upvoted 3 times
...
Freidrich
2 years, 9 months ago
Selected Answer: B
The correct answer is B.
upvoted 2 times
...
sozturk88
2 years, 9 months ago
Selected Answer: B
10 min delay for Consuming
upvoted 2 times
...
philsboies
2 years, 9 months ago
Selected Answer: B
I'd say no
upvoted 2 times
...
Zamaletto
2 years, 10 months ago
Selected Answer: B
I would go for B
upvoted 2 times
...
MFahd
2 years, 10 months ago
The answer is NO, as the consumption plan have low latency and It can take some time to add files to blob and trigger function
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 ...