hiexam
microsoft · AZ-203 · Q606 · multiple_choice · topic_12

You need to resolve the capacity issue. What should you do?

You need to resolve the capacity issue. What should you do?
  • A.Move the Azure Function to a dedicated App Service Plan.
  • B.Convert the trigger on the Azure Function to a File Trigger.
  • C.Ensure that the consumption plan is configured correctly to allow for scaling.
  • D.Update the loop starting on line PC09 to process items in parallel.
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. References: https://stackoverflow.com/questions/37576685/using-async-await-with-a-foreach-loop

Reference: examtopics_answer_description

Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.