ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 67 - AZ-204 discussion

Report
Export

You need to resolve the capacity issue.

What should you do?

A.
Convert the trigger on the Azure Function to an Azure Blob storage trigger
Answers
A.
Convert the trigger on the Azure Function to an Azure Blob storage trigger
B.
Ensure that the consumption plan is configured correctly to allow scaling
Answers
B.
Ensure that the consumption plan is configured correctly to allow scaling
C.
Move the Azure Function to a dedicated App Service Plan
Answers
C.
Move the Azure Function to a dedicated App Service Plan
D.
Update the loop starting on line PC09 to process items in parallel
Answers
D.
Update the loop starting on line PC09 to process items in parallel
Suggested answer: D

Explanation:

If you want to read the files in parallel, you cannot use forEach. Each of the async callback function calls does return a promise. You can await the array of promises that you'll get with Promise.all.

Scenario: Capacity issue: During busy periods, employees report long delays between the time they upload the receipt and when it appears in the web application.

Reference:

https://stackoverflow.com/questions/37576685/using-async-await-with-a-foreach-loop

asked 02/10/2024
Perry Schoenmaker
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first