70-487 Premium Bundle

70-487 Premium Bundle

Developing Windows Azure and Web Services Certification Exam

4.5 
(9915 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 21, 2024Last update

Microsoft 70-487 Free Practice Questions

Q1. DRAG DROP - (Topic 4) 

You are developing a .NET application that uses the HttpClient type to access an ASP.NET Web API application. 

You need to add a header to specify that data is returned as JSON. You have the following code: 

Which code segments should you include in Target 1 and Target 2 to complete the code? (To answer, drag the appropriate code segments to the correct targets 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:  

Q2. DRAG DROP - (Topic 4) 

You are developing a WCF service. 

The WCF service requires implementations of the new data contracts to validate against the old schema. 

You need to develop a new data contract without breaking current functionality. 

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:  

Q3. HOTSPOT - (Topic 4) 

You are developing a WCF service in Visual Studio 2013 that integrates with the Microsoft 

Azure service bus relay. 

The Azure service bus namespace is named RestaurantServiceBus 

You need to obtain the issuer name and secret. 

What should you do? (To answer, select the appropriate option in the answer area.) 

Answer:  

Q4. DRAG DROP - (Topic 3) 

You need to update the GetBook() method to retrieve book data by using ADO.NET. You have the following code: 

Which code segments should you include in Target 1, Target 2, Target 3, Target 4 and Target 5 to complete the code? (To answer, drag the appropriate code segments to the correct targets 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:  

Q5. DRAG DROP - (Topic 4) 

You have a UI element library. 

You need to build a NuGet package to integrate the library into your projects. 

What should you do? (To answer, drag the appropriate code elements to the correct 

location or locations in the answer area. Each code 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:  

Q6. DRAG DROP - (Topic 4) 

You are developing an ASP.NET Web API application for currency conversion that will be consumed by a web browser by using a composite application that is served from another web domain. 

You need to configure the Web API. 

What should you do? (To answer, drag the appropriate XML elements to the correct location or locations 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:  

Q7. DRAG DROP - (Topic 4) 

You are developing an ASP.NET Web API application that will be consumed by a web browser via a composite application that is served from another web domain. 

You need to configure the Web API. 

What should you do? (To answer, drag the appropriate XML elements to the correct location or locations 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:  

Q8. DRAG DROP - (Topic 2) 

The GetQueueItems() action in the InboundQueueController controller is not populating the view with data. The action must populate the view with data by calling the GetExternalOrders() method in the ExternalQueueService service using the ChannelFactory class. 

You need to modify the action to populate the view with data. 

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:  

Q9. - (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 

Q10. - (Topic 1) 

You need to load flight information provided by Consolidated Messenger. What should you use? 

A. Office Open XML 

B. COM interop 

C. OleDbConnection and OleDbDataReader 

D. EntityConnection and EntityDataReader 

Answer:

Q11. - (Topic 4) 

You are developing a .NET application that uses the HttpClient type to call an ASP.NET Web API application. The API call returns a list of customers in JSON format and logs the results. 

The URI for the API call is in a variable named address. 

You need to make the API call without blocking. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Explanation: Example: // Create an HttpClient instance 

11: HttpClient client = new HttpClient(); 

12: 

13: // Send a request asynchronously continue when complete 

14: client.GetAsync(_address).ContinueWith( 

15: (requestTask) => 

16: { 

17: // Get HTTP response from completed task. 

18: HttpResponseMessage response = requestTask.Result; 

19: 

20: // Check that response was successful or throw exception 

21: response.EnsureSuccessStatusCode(); 

22: 

23: // Read response asynchronously as JsonValue and write out top facts for each country 

24: response.Content.ReadAsAsync<JsonArray>().ContinueWith( 

25: (readTask) => 

Q12. - (Topic 4) 

You are developing an ASP.NET MVC application. The application has a page that updates an image stored in a database. Members of the EntityClient namespace are used to access an ADO.NET Entity Framework data model. Images and associated metadata are stored in a single database table. 

You need to run a single query that updates an image and associated metadata in the 

database while returning only the number of affected rows. 

Which method of the EntityCommand type should you use? 

A. ExecuteNonQuery() 

B. ExecutcScalar() 

C. ExecuteDbDataReader() 

D. ExecuteReader() 

Answer:

Q13. - (Topic 2) 

TION NO: 2 The GetExternalOrder() method in the ExternalQueueService service is throwing a runtime error. The method must query the database for a record that matches the orderNum parameter passed to the method. 

You need to modify the queryString string to retrieve the record. 

With which code segment should you replace line EQ64? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q14. - (Topic 3) 

You need to return the list of the top 100 books for the GetTopBooks() method. 

Which type should you use to retrieve the data? 

A. SqlDataReader 

B. DataSet 

C. DataTable 

D. Data View 

Answer:

Q15. DRAG DROP - (Topic 1) 

You need to parse flight information from Blue Yonder Airlines. The content of the XML file is shown below. 

Some airlines do not specify the timezone of the arrival time. If the timezone is not specified, then it should be interpreted per the business requirements. 

You need to implement the LoadFlights() and Parse() methods of the BlueYonderLoader class. 

What should you do? (To answer, drag the appropriate code segments to the correct location in the answer area. Each 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:  

Q16. - (Topic 3) 

You need to implement the Get() method in the bookstore Web API application to be able to find books by using an ad hoc query. 

Which method should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

START 70-487 EXAM