Developing Windows Azure and Web Services v8.4 (70-487)

Page:    1 / 8   
Total 113 questions

You are developing an ASP.NET MVC application. The application is an order processing system that uses the ADO.NET Entity Framework against a SQL Server database. It has a controller that loads a page that displays customers. Customers are filtered on Country and, if provided, on CompanyName.
You have an Entity Framework context named db.
The Customer class is shown below.


You need to execute a single deferred query to return the filtered list of customers.
Which code segment should you use?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D


Answer : C

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 :

You are developing an ASP.NET MVC application that reads and writes data from a SQL
Server database.
You need to maintain data integrity in all situations that use transactions.

  • A. ReadUncommitted
  • B. Repeatable
  • C. Serializable
  • D. ReadCommitted


Answer : C

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 :

You are building an ADO.NET Entity Framework application.
You need to validate the conceptual schema definition language (CSDL), store schema definition language (SSDL), and mapping specification language (MSL) files.
Which Entity Data Model tool can you use? (Each correct answer presents a complete solution. Choose all that apply.)

  • A. EDM Generator (EdmGen.exe)
  • B. ADO.NET Entity Data Model Designer
  • C. Entity Data Model Wizard
  • D. Update Model Wizard


Answer : A,B

You are developing an ASP.NET MVC application.
Applications can be deployed to remote servers only by administrators who have elevated privileges. The administrators do not have access to Visual Studio 2012.
You need to select a deployment tool to deploy the application to remote servers for testing.
Which tool should you use?

  • A. Copy Web Site Tool
  • B. One-Click Publish
  • C. Publish Web Site Tool
  • D. Web Deployment Package


Answer : D

You are developing an ASP.NET Web API for a home inventory management system.
You need to limit access to users with IP addresses based only in the United States.
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 :

You are developing a RESTful application by using ASP.NET MVC. The application is a pet management system and implements the following method in a controller for retrieving pet data.


The method must only accept JSON data using the standard MIME type.
You need to implement a controller that saves pet data and return a properly formatted
HTTP/1.1 protocol response.
You have the following code:

Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 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 :

You are developing an ASP.NET MVC Web API application.
The methods of the Web API must return details about the result of the operation.
You need to create methods to update and delete products.
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 :

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 :

You are developing an Internet-based ASP.NET Web API application that manages pet data.
You install an SSL certificate on the web server to encrypt calls to the API. You create a class named PetAuthorization, which inherits from a type named AuthorizeAttribute, and implements the OnAuthorization() method.
You need to implement basic authentication for the API.
What should you do? (To answer, drag the appropriate words to the correct targets in the answer area. Words 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 :

You are developing an ASP.NET MVC application. The application is an order processing system that uses the ADO.NET Entity Framework against a SQL Server database. It has a controller that loads a page that displays all orders along with customer information. Lazy loading has been disabled.
The Order class is shown below.


You need to return the orders and customer information in a single round trip to the database.
Which code segment should you use?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D


Answer : A

You are developing an order processing application that uses the ADO.NET Entity
Framework against a SQL Server database. Lazy loading has been disabled. The application displays orders and their associated order details. Order details are filtered based on the category of the product in each order.
The Order class is shown below.


The OrderDetail class is shown below.

The Product class is shown below.

The Category class is shown below.

You need to return orders with their filtered list of order details included in a single round trip to the database.
Which code segment should you use?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D


Answer : B

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 :

You are developing a WCF service application.
The application must meet the following requirements:
-> Operations must have 30 second timeouts.
-> The service must have a transaction scope.
-> Transactions must flow from the client to the server.
You need to write a transactional service contract and implementation class to meet the requirements.
You have the following code:


Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 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 :

Page:    1 / 8   
Total 113 questions