Actual of microsoft 70 487 exam guide materials and class for Microsoft certification for candidates, Real Success Guaranteed with Updated 70 487 dumps pdf dumps vce Materials. 100% PASS Developing Windows Azure and Web Services exam Today!
Q1. HOTSPOT - (Topic 4)
You are developing a WCF service.
The service must be interoperable with ASP.NET web service clients. In addition, it must
have a time-out of three hours.
You need to configure the service to meet the requirements.
You have the following markup:
Which markup segments should you include in Target 1, Target 2, Target 3, Target 4, Target 5, Target 6 and Target 7 to complete the markup? (To answer, select the appropriate markup segment from each drop-down list in the answer area.)
Answer:
Q2. 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:
Q3. 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:
Q4. 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:
Q5. 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:
Q6. - (Topic 1)
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 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.)
A. Use the WasLate property as the row key.
B. Use the Airline property as the row key.
C. Use the WasLate property as the partition key
D. Use the Arrival property as the row key.
E. Use the Airline property as the partition key.
F. Use the Flight property as the row key.
Answer: B,F
Q7. DRAG DROP - (Topic 4)
You are developing a self-hosted WCF service that returns stock market information.
The service must be discoverable by any client application.
You need to build the service host.
How should you build the host? (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:
Q8. - (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: A
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.
Q9. - (Topic 4)
You are developing an ASP.NET MVC application. The application has a page that searches for and displays 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 database table.
You need to run a query that returns only the image while minimizing the amount of data that is transmitted.
Which method of the EntityCommand type should you use?
A. ExecuteScalar
B. ExecuteDbDataReader
C. ExecuteReader
D. ExecuteNonQuery
Answer: A
Explanation: ExecuteScalar
Executes the command, and returns the first column of the first row in the result set.
Additional columns or rows are ignored.
Q10. - (Topic 3)
The PurchaseOrders.xml file contains all of the purchase orders for the day.
You need to query the XML file for all of the shipping addresses.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B