Which URL should you use?

DRAG DROP
Exhibit:
Country=England AND Salary > 20000
There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
An ASF data service service is created.
This service use the URL http://PassGuide.com/PassGuide.svc.
The service return employee objects sorted by in ascending order by country and salary.
Only objects meeting the criteria displayed in the exhibit should be retrieved.
Which URL should you use?

DRAG DROP
Exhibit:
Country=England AND Salary > 20000
There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
An ASF data service service is created.
This service use the URL http://PassGuide.com/PassGuide.svc.
The service return employee objects sorted by in ascending order by country and salary.
Only objects meeting the criteria displayed in the exhibit should be retrieved.
Which URL should you use?

Answer:

Explanation:



Leave a Reply 2

Your email address will not be published. Required fields are marked *


John Galt

John Galt

See the following link:
http://www.odata.org/documentation/odata-version-3-0/url-conventions/

The answer specified seems to be correct:
[link]/Employees?Country eq ‘England’ & Salary gt 20000 & Orderby=Country, Salary

One thing that seems to be missing is the ‘$filter=’ statement right after ‘Employees?’, but this wouldn’t be the first time we got an incomplete answer from Microsoft.

Jim BBQ

Jim BBQ

Hopefully these questions are not made by MS, but just by some third party exam schools.