Home » Microsoft » 70-487 v.2 » You need to create an OData query expression to return the ten books with the smallest number of sales Which query expression should you use?
You need to create an OData query expression to return the ten books with the smallest 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 desc&$top=10
D. /books?orderby=sales asc&$top=10
Correct Answer: D
Explanation/Reference:
Explanation:
The get the smallest number of sales we should use ascending (asc) ordering
From scenario: RESTful API endpoints include:
Action: Get a list of all books HTTP method: GET Relative URI:/books