nerdexam
Microsoft

70-573 · Question #110

You create two custom lists named Offices and Rooms. Rooms has the following columns: Offices thas the following columns: You need to perform a Representational State Transfer (REST) query that…

The correct answer is A. /_vti_bin/ListData.svc/Offices $expand=Rooms&$filter=Rooms/Capacity eq 10. MNEMONIC RULE: "Offices-Rooms-Rooms/Capacity" You can use the Expand method to navigate from one entity to a related entity. You can append query strings to the URLs in order to specify filter criteria or query logic. Using the REST Interface

Developing for Data Access

Question

You create two custom lists named Offices and Rooms. Rooms has the following columns:

Offices thas the following columns:

You need to perform a Representational State Transfer (REST) query that returns a list of all the offices that have rooms with a capacity of 10. The query results must include the room titles and the equipment in each room. Which URL should you choose?

Options

  • A/_vti_bin/ListData.svc/Offices $expand=Rooms&$filter=Rooms/Capacity eq 10
  • B/_vti_bin/ListData.svc/Offices &$filter=Rooms/Capacity eq 10
  • C/_vti_bin/ListData.svc/Rooms $expand=Offices&$filter=Rooms/Capacity eq 10
  • D/_vti_bin/ListData.svc/Rooms &$filter=Offices/Capacity eq 10

How the community answered

(53 responses)
  • A
    79% (42)
  • B
    6% (3)
  • C
    4% (2)
  • D
    11% (6)

Explanation

MNEMONIC RULE: "Offices-Rooms-Rooms/Capacity" You can use the Expand method to navigate from one entity to a related entity. You can append query strings to the URLs in order to specify filter criteria or query logic. Using the REST Interface

Topics

#REST API#ListData.svc#$expand#$filter

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice