Microsoft

DP-420 practice question 11

Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB · free question 11 of 20

Question

You have an app that stores data in an Azure Cosmos DB for NoSQL account. The app performs queries that return large result sets. You need to return a complete result set to the app by using pagination. Each page of results must return 80 items. Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Explanation

MaxItemCount in QueryRequestOptions sets the maximum number of items returned per page, so it is set to 80 first. The query is then run page by page, passing the continuation token from the previous response to get the next page, and each page's results are appended to a variable until no continuation token remains. MaxBufferedItemCount only controls client-side prefetch buffering during parallel queries, and incrementing MaxItemCount would change the page size instead of moving to the next page.

Need the theory? Learn it free in the DP-420 course on Godlike Academy

Practice the whole free set

Answer all 20 free DP-420 questions with instant feedback, or unlock all 211 questions with Learn and Exam modes.