Want to know Actualtests 70 487 pdf Exam practice test features? Want to lear more about Microsoft Developing Windows Azure and Web Services certification experience? Study Verified Microsoft 70 487 exam answers to Abreast of the times 70 487 exam questions at Actualtests. Gat a success with an absolute guarantee to pass Microsoft 70 487 dumps (Developing Windows Azure and Web Services) test on your first attempt.

Q33. - (Topic 3) 

You need to choose the appropriate data access technology for the cookbook area of the web application. 

Which data access technology should you choose? 

A. WCF Data Services 

B. LINQ to SQL 

C. Entity Framework 

D. ADO.NET 

Answer:

Explanation: * Scenario: The cookbook functionality is contained within a client-side application that must connect to the server using HTTP and requires access to the data using JavaScript. 

* WCF Data Services (formerly known as "ADO.NET Data Services") is a component of the 

.NET Framework that enables you to create services that use the Open Data Protocol (OData) to expose and consume data over the Web or intranet by using the semantics of representational state transfer (REST). OData exposes data as resources that are addressable by URIs. Data is accessed and changed by using standard HTTP verbs of GET, PUT, POST, and DELETE 

* WCF Data Services uses the OData protocol for addressing and updating resources. In this way, you can access these services from any client that supports OData. OData enables you to request and write data to resources by using well-known transfer formats: Atom, a set of standards for exchanging and updating data as XML, and JavaScript Object Notation (JSON), a text-based data exchange format used extensively in AJAX application. 


Q34. - (Topic 1) 

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 

C. Option C 

D. Option D 

Answer:

Explanation: Explanation/Reference: 

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 


Q35. HOTSPOT - (Topic 4) 

You are developing an ASP.NET MVC application named ContosoWebApp. You are ready to deploy the application to your production web server. 

You need to import the publishing profile. 

Which menu item should you use? (To answer, select the appropriate menu item in the answer area). 

Answer: 


Q36. HOTSPOT - (Topic 4) 

You are developing an ASP.NET MVC application. It is ready for deployment to the production web server. 

A local SQL Express .MDF file was used by the application during development 

The deployment has the following requirements: 

. The deployment must merge the assemblies on the local machine with those on the host. . The deployment must publish the local database to the remote Microsoft SQL server. 

You need to configure the web package settings for deployment. 

Which settings should you use? (To answer, select the appropriate setting or settings in the answer area.) 

Answer: 


Q37. 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: 


Q38. - (Topic 4) 

You are developing a WCF service. 

A new service instance must be created for each client request. 

You need to choose an instancing mode. 

Which instancing mode should you use? 

A. Single 

B. PerRequest 

C. PerCall 

D. Multiple 

E. PerSession 

Answer:


Q39. - (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:


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


Q41. 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: 


Q42. 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: 


Q43. - (Topic 4) 

You are developing a library management application that uses the ADO.NET Entity Framework against a SQL Server database. The application has a method that returns check outs filtered by date. 

The Book class is shown below. 

You must filter the data on the SQL server before it is returned to the application server. 

You need to return books checked out more recently than the entered date. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Explanation: 

The difference is that IQueryable<T> is the interface that allows LINQ-to-SQL (LINQ.-to-anything really) to work. So if you further refine your query on an IQueryable<T>, that query will be executed in the database, if possible. 

For the IEnumerable<T> case, it will be LINQ-to-object, meaning that all objects matching the original query will have to be loaded into memory from the database. 


Q44. DRAG DROP - (Topic 4) 

You are developing an ASP.NET MVC Web API application. 

The method names of the Web API must match naming guidelines for RESTful services. 

You need to create methods to support standard insert, select, update, and delete 

operations in an HTTP service. 

What should you do? (To answer, drag the appropriate HTTP methods to the correct row in 

the table in the answer area. Each HTTP method 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: 


Q45. - (Topic 1) 

You need to recommend a data access technology to the contractor to retrieve data from the new data source. 

Which data access technology should you recommend? 

A. LINQ to XML 

B. ADO.NET Entity Framework 

C. ADO.NET DataSets 

D. WCF Data Services 

Answer:


Q46. - (Topic 4) 

You are developing an ASP.NET MVC application that displays a report. The report includes large images that are stored in a database. Members of the EntityClient namespace are used to access the database through the ADO.NET Entity Framework data model. 

You need to prevent memory exceptions while generating a report using the EntityDataRcader type. 

Which CommandBehavior type should you use? 

A. FastForwardReadOnly 

B. SequentialAccess 

C. SingleResult 

D. SingleRow 

Answer:

Explanation: SequentialAccess Provides a way for the DataReader to handle rows that contain columns with large binary values. Rather than loading the entire row, SequentialAccess enables the DataReader to load data as a stream. 


Q47. HOTSPOT - (Topic 4) 

You are updating an existing multitenant ASP.NET MVC application for medical clinics. The application aggressively uses output caching to improve performance by caching content for 36 hours. The application uses a query string parameter named "clinicID" that contains the clinic that the user is currently viewing. 

Users report that they are occasionally seeing data for the wrong clinic. Users also report that sensitive data is stored in the browser cache folder on their computers. 

You need to configure web.config to resolve the reported problems. 

You have the following markup: Which markup segments should you include in Target 1, Target 2 and Target 3 to complete the markup? (To answer, select the correct markup segment from each drop-down list in the answer area.) 

Answer: 


Q48. - (Topic 3) 

You need to create an OData query expression to return the ten books with the largest number of sales. 

Which query expression should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Explanation: 

Order by desc(ending) to get the posts with the largest number of sales at the top. Specify to display the top 10 posts.