最新的Microsoft Developing Microsoft Azure and Web Services - 70-487免費考試真題
問題1
The GetVendors() action in the ProcessedOrderController controller is querying the database each time it is
run. The GetVendors() action must query the database only if the cache is null.
You need to add code to the action at line PC33 to cache the data.
Which code segment can you use? (Each correct answer presents a complete solution. Choose all that apply.)
The GetVendors() action in the ProcessedOrderController controller is querying the database each time it is
run. The GetVendors() action must query the database only if the cache is null.
You need to add code to the action at line PC33 to cache the data.
Which code segment can you use? (Each correct answer presents a complete solution. Choose all that apply.)
正確答案: C,D
問題2
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.
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.
正確答案: D
問題3
You need to configure the Windows Azure service definition to enable Consolidated Messenger to upload
files.
What should you do? (To answer, drag the appropriate configuration items to the correct location or locations.
Each configuration item 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.)

You need to configure the Windows Azure service definition to enable Consolidated Messenger to upload
files.
What should you do? (To answer, drag the appropriate configuration items to the correct location or locations.
Each configuration item 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.)

正確答案:

Explanation

問題4
You need to update the ImportBooks() method to use database transactions.
Which code segment should you use?
You need to update the ImportBooks() method to use database transactions.
Which code segment should you use?
正確答案: B
說明:(僅 PDFExamDumps 成員可見)
問題5
You are configuring a web application for deployment.
You need to create a SetParameters.xml file to configure the IIS application pool.
You have the following markup:

Which configuration values should you include in Target 1 and Target 2 to complete the markup? (To answer,
drag the appropriate configuration values to the correct targets in the answer area. Each configuration value
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.)

You are configuring a web application for deployment.
You need to create a SetParameters.xml file to configure the IIS application pool.
You have the following markup:

Which configuration values should you include in Target 1 and Target 2 to complete the markup? (To answer,
drag the appropriate configuration values to the correct targets in the answer area. Each configuration value
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.)

正確答案:

Explanation

問題6
You need to build the connection from ReportApp to read the search data. The solution must minimize
development effort.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of
actions to the answer area and arrange them in the correct order.

You need to build the connection from ReportApp to read the search data. The solution must minimize
development effort.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of
actions to the answer area and arrange them in the correct order.

正確答案:

Explanation

References:
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-dotnet-get-started-with-queues
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-queues-topics-subscriptions
問題7
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).

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

正確答案:

Explanation

問題8
You are developing a WCF Data Services service in Visual Studio 2012 to display movie information from a
SQL Server database that changes every 24 hours. The service is defined in the following class.

The application contains the following Entity Framework model.

The service must only return data for movies that are currently in theaters.
You need to add a method to the MovieService class to filter the data.
How should you build the method? (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.)

You are developing a WCF Data Services service in Visual Studio 2012 to display movie information from a
SQL Server database that changes every 24 hours. The service is defined in the following class.

The application contains the following Entity Framework model.

The service must only return data for movies that are currently in theaters.
You need to add a method to the MovieService class to filter the data.
How should you build the method? (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.)

正確答案:

Explanation

問題9
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.)

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

正確答案:

Explanation

問題10
ReportApp will shut down every night. However, data from the searches performed during the night must still
be collected.
Based on the security requirements, which line of code should you insert into the WebApiConfig file? To
answer, select the appropriate options in the answer area.

ReportApp will shut down every night. However, data from the searches performed during the night must still
be collected.
Based on the security requirements, which line of code should you insert into the WebApiConfig file? To
answer, select the appropriate options in the answer area.

正確答案:

Explanation

Scenario: The Web API must only accept one data format.
The MVC front-end layer and the Web API will communicate by using JSON.
The most common approach to support JSON only is to clear other formatters and leave only
JsonMediaTypeFormatter around.
Given an instance of HttpConfiguration you'd simply clear all and re-add JsonMediaTypeFormatter:
configuration.Formatters.Clear();
configuration.Formatters.Add(new JsonMediaTypeFormatter());
References:
http://www.strathweb.com/2013/06/supporting-only-json-in-asp-net-web-api-the-right-way/
問題11
Note: This question is part of a series of questions that present the same scenario. Each question in the series
contains a unique solution that might meet the stated goals. Some question sets might have more than one
correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions
will not appear in the review screen.
You deploy an ASP.NET Core web application to Azure App Services. You are using Azure Event Hubs to
collect the telemetry data for the application.
You need to configure Event Hubs to automatically deliver the telemetry data stream to a persistent data store.
Solution: Configure Event Hubs Capture to deliver data to Azure Blob storage.
Does the solution meet the goal?
Note: This question is part of a series of questions that present the same scenario. Each question in the series
contains a unique solution that might meet the stated goals. Some question sets might have more than one
correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions
will not appear in the review screen.
You deploy an ASP.NET Core web application to Azure App Services. You are using Azure Event Hubs to
collect the telemetry data for the application.
You need to configure Event Hubs to automatically deliver the telemetry data stream to a persistent data store.
Solution: Configure Event Hubs Capture to deliver data to Azure Blob storage.
Does the solution meet the goal?
正確答案: B
說明:(僅 PDFExamDumps 成員可見)
問題12
You are deploying an ASP.NET Core API application to an Azure App Services Docker container instance.
When customers access the application, secret keys are generated so that users can access to the data that they
need. Security keys must expire after one hour. All key usage must be logged.
You need to store the customer secret keys.
Which storage option should you use?
NOTE: Each correct selection is worth one point.
You are deploying an ASP.NET Core API application to an Azure App Services Docker container instance.
When customers access the application, secret keys are generated so that users can access to the data that they
need. Security keys must expire after one hour. All key usage must be logged.
You need to store the customer secret keys.
Which storage option should you use?
NOTE: Each correct selection is worth one point.
正確答案: C
說明:(僅 PDFExamDumps 成員可見)
問題13
You are supporting an application that uses the ADO.NET Entity Framework to query and access data.
The latest version of Entity Framework contains bug fixes that will improve performance.
You need to update Entity Framework.
Which Visual Studio 2012 menu item should you choose? (To answer, select the appropriate menu item in the
answer area.)

You are supporting an application that uses the ADO.NET Entity Framework to query and access data.
The latest version of Entity Framework contains bug fixes that will improve performance.
You need to update Entity Framework.
Which Visual Studio 2012 menu item should you choose? (To answer, select the appropriate menu item in the
answer area.)

正確答案:

Explanation

問題14
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?
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?
正確答案: B
說明:(僅 PDFExamDumps 成員可見)