Home » Microsoft » 70-487 v.2 » Which query expression should you use?
You need to create an OData query expression to return the ten books with the largest number of sales
Which query expression should you use?
A. /books?orderby=sales desc&$count=10
B. /search?orderby=sales asc&$count=10
C. /search?orderby=sales asc&$top=10
D. /books?orderby=sales desc&$top=10
Correct Answer: D
Explanation/Reference:
Explanation:
$top determines the maximum number of records to return.
From scenario:
Action: Get a list of all books
HTTP method: GET
Relative URI:/books
References: https://msdn.microsoft.com/en-us/library/gg309461 (v=crm.7).aspx