You are adding a new REST service endpoint to the

You are adding a new rest service endpoint to the

This preview shows page 41 - 46 out of 72 pages.

QUESTION: 29 You are adding a new REST service endpoint to the FlightDataController controller. It returns flights from the consolidated data sources only for flights that are late. You need to write a LINQ to Entities query to extract the required data. Which code segment should you use? A. Option A B. Option B
Image of page 41
C. Option C D. Option D Answer: Explanation:D is right because you send result as REST so if you use “AsQueryable” the result is deferred to the next enumeration of your result. D is not optimized but will works. A will break at runtime. Credits to Rem D QUESTION: 30 You need to load flight information provided by Consolidated Messenger. Which should you use? D QUESTION: 31 You are adding a new REST service endpoint to the FlightDataController controller that returns the total number of seats for each airline. You need to write a LINQ to Entities query to extract the required data. Which code segment should you use?
Image of page 42
D QUESTION: 32 Historical flight information data will be stored in Windows Azure Table Storage using the FlightInfo class as the table entity. There are millions of entries in the table. Queries for historical flight information specify a set of airlines to search and whether the query should return only late flights. Results should be ordered by flight name. You need to specify which properties of the FlightInfo class should be used at the partition and row
Image of page 43
keys to ensure that query results are returned as quickly as possible. What should you do? (Each correct answer presents part of the solution. Choose all that apply.) QUESTION: 33 Transformed historical flight information provided by the RemoteDataStream() method must be written to the response stream as a series of XML elements named Flight within a root element named Flights. Each Flight element has a child element FlightName that contains the flight name that starts with the two-letter airline prefix. You need to implement the StreamHistoricalFlights() method so that it minimizes the amount of memory allocated. Which code segment should you use as the body of the StreamHistoricalFlights() method in the HistoricalDataLoader.es file? named
Image of page 44