🔥 3-day streak
Microsoft Azure Cosmos DB Developer Specialty (DP-420)30 / 104
Question 30 of 104

A retail catalog container stores product documents, each with a nested 'reviews' array containing objects like { rating, verified, text }. A developer needs a query that returns each product's id and title along with only the count of reviews that have a rating of 5 AND verified = true. The team wants to minimize RU charge by avoiding returning the full reviews array to the client and by evaluating the filter server-side. Which SQL query approach best meets these requirements?

Reviewed for accuracy · Report an issueNext question