70-487 Exam - Developing Windows Azure and Web Services

certleader.com

Q1. - (Topic 1) 

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? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q2. - (Topic 1) 

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 named 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? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Explanation: http://msdn.microsoft.com/en-us/library/system.xml.linq.xstreamingelement.aspx and http://msdn.microsoft.com/en-us/library/bb551307.aspx 

Q3. DRAG DROP - (Topic 4) 

You are developing a WCF service. 

You need to configure the web.config file to ensure that metadata is exposed only via the 

MEX protocol. 

You have the following markup: 

Which XML elements should you include in Target 1, Target 2, Target 3 and Target 4 to complete the markup? (To answer, drag the appropriate XML elements to the correct targets in the answer area. Each XML element may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.) 

Answer:  

Q4. - (Topic 4) 

You are designing an ASP.NET Web API application. 

You need to select an HTTP verb to allow blog administrators to moderate a comment. 

Which HTTP verb should you use? 

A. GET 

B. POST 

C. DELETE 

D. PUT 

Answer:

Q5. - (Topic 4) 

You are designing an ASP.NET Web API application. 

You need to select an HTTP verb to allow blog administrators to remove a comment. 

Which HTTP verb should you use? 

A. PUT 

B. DELETE 

C. POST 

D. GET 

Answer:

Q6. DRAG DROP - (Topic 2) 

You need to create the ShippingContext class in the ShippingAddress.es file to meet the requirements. 

What should you do? (To answer, drag the appropriate code segments to the correct location or locations in the answer area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.) 

Answer:  

Q7. - (Topic 1) 

Errors occasionally occur when saving data using the FlightInfoContext ADO.NET Entity Framework context. Updates to the data are being lost when an error occurs. 

You need to ensure that data is still saved when an error occurs by retrying the operation. No more than five retries should be performed. 

With which code segment should you replace the body of the SaveChanges() method in the FlightInfoContext.es file? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Explanation: Explanation/Reference: 

EntitySqlException: Represents errors that occur when parsing Entity SQL command text. 

This exception is thrown when syntactic or semantic rules are violated. 

SqlException: The exception that is thrown when SQL Server returns a warning or error. 

This class cannot be inherited. 

EntityCommandExecutionException : Represents errors that occur when the underlying 

storage provider could not execute the specified command. This exception usually wraps a 

provider-specific exception. 

Q8. - (Topic 4) 

You are developing a new ASP.NET MVC application that does not have an existing database. 

The requirements for the application are not complete, and the SQL data model will likely change. 

You need to choose an approach to visually manage a data model. 

Which approach should you use? 

A. Physical First 

B. Database First 

C. Code First 

D. Model First 

Answer:

Explanation: With the model first workflow, you can design a model in a designer. 

Q9. DRAG DROP - (Topic 1) 

You need to configure the Windows Azure service definition to enable Consolidated 

Messenger to upload files. 

What should you do? (To answer, drag the appropriate configuration items to the correct location or locations. Each configuration item may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.) 

Answer:  

Q10. - (Topic 1) 

You need to load flight information provided by Consolidated Messenger. 

Which should you use? 

A. SQL Server Data Transformation Services (DTS) 

B. EntityTransaction and EntityCommand 

C. Office Open XML 

D. OleDbConnection and OleDbDataReader 

Answer: