Microsoft Developing Microsoft Azure and Web Services - 70-487 FREE EXAM DUMPS QUESTIONS & ANSWERS
You are developing a web application by using Microsoft ASP.NET MVC.
The application manages company employees and managers.
Each employee is assigned to a manager.
You need to write a LINQ query to retrieve the list of managers and their respective employees.
How should you complete the code? To answer, drag the appropriate keywords to the correct targets. Each
keyword 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.

The application manages company employees and managers.
Each employee is assigned to a manager.
You need to write a LINQ query to retrieve the list of managers and their respective employees.
How should you complete the code? To answer, drag the appropriate keywords to the correct targets. Each
keyword 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.

Correct Answer:

Explanation

References:
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/linq/basic-linq-query-operations
You are preparing to write the data access code for the children's book area of the web site.
You need to review the requirements and identify the appropriate data access technology.
What should you do?
You need to review the requirements and identify the appropriate data access technology.
What should you do?
Correct Answer: B
Vote an answer
You are developing a Windows Communication Foundation (WCF) service for a company. The service will
be used for bidirectional communications between the company's physical offices.
You plan to implement Azure Service Bus.
You need to configure the WCF service.
Which type of binding should you use?
be used for bidirectional communications between the company's physical offices.
You plan to implement Azure Service Bus.
You need to configure the WCF service.
Which type of binding should you use?
Correct Answer: D
Vote an answer
Explanation: Only visible for FreeCram members. You can sign-up / login (it's free).
You need to add code at line SU10 to ensure that event validation can occur.
How should you complete the code? To answer, drag the appropriate code segments to the correct locations.
Each code segment may be used once, more than once, or not at all. You may need to split bar between panes
or scroll to view content.
NOTE: Each correct selection is worth one point.

How should you complete the code? To answer, drag the appropriate code segments to the correct locations.
Each code segment may be used once, more than once, or not at all. You may need to split bar between panes
or scroll to view content.
NOTE: Each correct selection is worth one point.

Correct Answer:

Explanation

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.)

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.)

Correct Answer:

Explanation

You are developing a web application by using Microsoft .NET Framework 4.5.
You are creating a web client for the application. The web client will make REST calls to several web
services.
You need to ensure that the web client meets the following requirements:
* Uses the Task class to perform asynchronous operations
* Reuses recently resolved DNS lookups
Which object should you include in the solution?
You are creating a web client for the application. The web client will make REST calls to several web
services.
You need to ensure that the web client meets the following requirements:
* Uses the Task class to perform asynchronous operations
* Reuses recently resolved DNS lookups
Which object should you include in the solution?
Correct Answer: A
Vote an answer
Explanation: Only visible for FreeCram members. You can sign-up / login (it's free).
You are developing a web application that uses the Entity Framework.
You plan to use the table-per-type mapping strategy to store the following data.

You need to implement a mapping strategy that will store the data.
How should you complete the code? To answer, drag the appropriate methods to the correct locations. Each
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.
NOTE: Each correct selection is worth one point.

You plan to use the table-per-type mapping strategy to store the following data.

You need to implement a mapping strategy that will store the data.
How should you complete the code? To answer, drag the appropriate methods to the correct locations. Each
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.
NOTE: Each correct selection is worth one point.

Correct Answer:

Explanation

Box 1: OnModelCreating
Box 2: Entity
Box 3: ToTable
Mapping an Entity Type to a Specific Table in the Database
Example:
All properties of Department will be mapped to columns in a table called t_ Department.
modelBuilder.Entity<Department>()
ToTable("t_Department");
Box 4: Entity
Box 5: ToTable
Mapping the Table-Per-Type (TPT) Inheritance
In the TPT mapping scenario, all types are mapped to individual tables. Properties that belong solely to a base
type or derived type are stored in a table that maps to that type. Tables that map to derived types also store a
foreign key that joins the derived table with the base table.
modelBuilder.Entity<Course>().ToTable("Course");
modelBuilder.Entity<OnsiteCourse>().ToTable("OnsiteCourse");
References: https://msdn.microsoft.com/en-us/library/jj591617(v=vs.113).aspx
You are developing an ASP.NET MVC Web API application.
The application must meet the following requirements:
* It must send or receive data without the use of a buffer.
* It must allow up to 1 MB of data to be received.
* It must allow up to 2 MB of data to be sent.
You need to complete the code 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.)

The application must meet the following requirements:
* It must send or receive data without the use of a buffer.
* It must allow up to 1 MB of data to be received.
* It must allow up to 2 MB of data to be sent.
You need to complete the code 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.)

Correct Answer:

Explanation

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.)

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.)

Correct Answer:

Explanation
