🔥 3-day streak
Microsoft Azure Cosmos DB Developer Specialty (DP-420)28 / 104
Question 28 of 104
An e-commerce reporting service queries a Cosmos DB container with millions of order documents. The query returns thousands of matching results, but the frontend displays only 50 items per page. Currently the code executes the query, materializes the entire result set into memory, and slices out 50 items per request — consuming large amounts of RUs and memory on every page load. You must minimize RU cost and memory usage while preserving the ability to fetch subsequent pages. What should you do?
Reviewed for accuracy · Report an issueNext question