# AZ-203 — Question 606

**Type:** multiple_choice
**Topics:** topic_12

## Question

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

## Correct Answer

_See scenario._

## 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

---
Source: https://hiexam.net/q/microsoft/AZ-203/606  
Practice (tracked): https://hiexam.net/study/AZ-203/practice