Lead2pass provides the guaranteed preparation material to boost up your confidence in 70-487 exam. Successful candidates have provided their reviews about our guaranteed 70-487 preparation material, you can come to realize the real worth of our featured products through overviewing the reviews and testimonials.
QUESTION 81
Drag and Drop Question
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:
QUESTION 82
Drag and Drop Question
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:
QUESTION 83
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
QUESTION 84
Drag and Drop Question
You are developing a self-hosted WCF service to display data about books.
The solution contains a service named BookService that implements the IBookService interface.
You need to expose the metadata in the service host programmatically.
You have the following code:
Which code segments should you include in Target 1, Target 2, Target 3, Target 4 and Target 5 to build the service host? (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:
QUESTION 85
You are developing an ASP.NET MVC application.
The application is a loan 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 loans along with rate information.
Lazy loading has been disabled.
The Loan class is shown below.
You need to return the loans and rate 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: C
QUESTION 86
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.
QUESTION 87
Hotspot Question
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:
QUESTION 88
You are developing a Microsoft Azure web application.
The application will be deployed to 10 web role instances.
A minimum of 8 running instances is needed to meet scaling requirements.
You need to configure the application so that upgrades are performed as quickly as possible, but do not violate scaling requirements.
How many upgrade domains should you use?
A. 1
B. 2
C. 5
D. 10
Answer: C
QUESTION 89
Hotspot Question
You are supporting an application that uses the ADO.NET Entity Framework to query and access data.
The latest version of a tool will add new templates and wizards that will enhance developer productivity.
You need to update the tool.
Which Visual Studio 2012 menu item should you choose? (To answer, select the appropriate menu item in the answer area.)
Answer:
QUESTION 90
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: B
QUESTION 91
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
QUESTION 92
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
QUESTION 93
Drag and Drop Question
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:
QUESTION 94
Drag and Drop Question
You are developing a WCF service.
You need to configure the web.config file to ensure that metadata is exposed only via the MEX protocol.
You have the following markup:
Which XML elements should you include in Target 1, Target 2, Target 3 and Target 4 to complete the markup? (To answer, drag the appropriate XML elements to the correct targets 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:
QUESTION 95
Hotspot Question
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:
QUESTION 96
Drag and Drop Question
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 a method to add 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:
QUESTION 97
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: A
QUESTION 98
Drag and Drop Question
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:
QUESTION 99
Hotspot Question
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:
QUESTION 100
Drag and Drop Question
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:
If you want to get more 70-487 exam preparation material,you can download the free demos in PDF files on Lead2pass. They are all updated. Wish you pass the exam successfully.