70-487 無料問題集「Microsoft Developing Microsoft Azure and Web Services」
You create the following Windows Communication Foundation (WCF) service.

The
service is accessible at the URL of http://Service1/EmployeeService.svc.
You need to add the endpoint for the WCF service to the Web.config file.
How should you complete the markup? To answer, select the appropriate options in the answer area.


The
service is accessible at the URL of http://Service1/EmployeeService.svc.
You need to add the endpoint for the WCF service to the Web.config file.
How should you complete the markup? To answer, select the appropriate options in the answer area.

正解:

Explanation

Box 1: address
Box 2: "http://Service1/EmployeeService.svc"
In WCF, an EndpointAddress models an endpoint reference (EPR) as defined in the WS-Addressing standard.
The address URI for most transports has four parts. For example, this URI, "
http://www.fabrikam.com:322/mathservice.svc/secureEndpoint" has the following four parts:
Scheme: http:
Machine: www.fabrikam.com
(Optional) Port: 322
Path: /mathservice.svc/secureEndpoint
Box 3:
The names and namespaces of the .NET types in the definition of contracts and operations are significant
when contracts are converted into WSDL and when contract messages are created and sent. Therefore, it is
strongly recommended that service contract names and namespaces are explicitly set using the Name and
Namespace properties of all supporting contract attributes such as the ServiceContractAttribute,
OperationContractAttribute, DataContractAttribute, DataMemberAttribute, and other contract attributes.
References: https://docs.microsoft.com/en-us/dotnet/framework/wcf/specifying-an-endpoint-address
https://docs.microsoft.com/en-us/dotnet/framework/wcf/designing-service-contracts
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?

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?

正解:D
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
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.)

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

正解:

Explanation

You deploy a RESTful ASP.NET Web API to manage order processing.
You are developing an Azure App Services Web App to consume the API and allow customers to order
products. You use the HttpClient object to process order entries. The API throws SocketException errors when
the Web App experiences a high volume of concurrent users.
You need to resolve the errors.
What should you do?
You are developing an Azure App Services Web App to consume the API and allow customers to order
products. You use the HttpClient object to process order entries. The API throws SocketException errors when
the Web App experiences a high volume of concurrent users.
You need to resolve the errors.
What should you do?
正解:A
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
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.)

正解:

Explanation

You are developing a new ASP.NET MVC application that does not have an existing database.
The requirements for the application are not complete, and the SQL data model will likely change.
You need to choose an approach to visually manage a data model.
Which approach should you use?
The requirements for the application are not complete, and the SQL data model will likely change.
You need to choose an approach to visually manage a data model.
Which approach should you use?
正解:A
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
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.)

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

正解:

Explanation

You are developing a Web API by using ASP.NET Core. You plan to deploy the Web API to a 5-node Service
Fabric cluster that is hosted in Azure.
You identify the following requirements:
* You must be able to debug the Web API on a local Service Fabric instance before deploying to Azure.
* The Web API must run on every node in the Service Fabric cluster when deployed to Azure.
* The Service Fabric configuration must support scaling of additional nodes.
You need to configure the Web API for local and Azure deployment.
How should you configure the environments? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Fabric cluster that is hosted in Azure.
You identify the following requirements:
* You must be able to debug the Web API on a local Service Fabric instance before deploying to Azure.
* The Web API must run on every node in the Service Fabric cluster when deployed to Azure.
* The Service Fabric configuration must support scaling of additional nodes.
You need to configure the Web API for local and Azure deployment.
How should you configure the environments? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

正解:

Explanation

InstanceCount Default value is -1 which means that DnsService is running on every node. OneBox needs this
to be set to 1 since DnsService uses well known port 53, so it cannot have multiple instances on the same
machine.
References:
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-fabric-settings
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.)
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.)
正解:B、C
解答を投票する
You are developing an ASP.NET MVC application that reads and writes data from a SQL Server database.
You need to maintain data integrity including retrieving identical sets across reads in all situations that use
transactions.
Which isolation level should you use?
You need to maintain data integrity including retrieving identical sets across reads in all situations that use
transactions.
Which isolation level should you use?
正解:B
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
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.)

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

正解:

Explanation

Errors occasionally occur when saving data using the FlightInfoContext ADO.NET Entity Framework context.
Updates to the data are being lost when an error occurs.
You need to ensure that data is still saved when an error occurs by retrying the operation. No more than five
retries should be performed.
Which code segment should you use as the body of the SaveChanges() method in the FlightInfoContext.es
file?


Updates to the data are being lost when an error occurs.
You need to ensure that data is still saved when an error occurs by retrying the operation. No more than five
retries should be performed.
Which code segment should you use as the body of the SaveChanges() method in the FlightInfoContext.es
file?


正解:D
解答を投票する
You manage an ASP.NET Core E-Commerce application that is deployed to Azure App Service. You plan to
use Application Insights for collecting telemetry data.
You must prepare a report that describes utilization patterns of uses. The report must include the following
information:
* the Country or Region from which users access the application
* how often and for how long users browse the catalog
* how many Canadian customers visited the offers page
* how much time Premium customers spend on the support page
* the percentage of users that added items to a shopping cart and completed purchases
You need to collect the required data.
Which tool should you use? To answer, drag the appropriate tools to the correct requirements. Each tool may
be used once, more than once, or mot 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.

use Application Insights for collecting telemetry data.
You must prepare a report that describes utilization patterns of uses. The report must include the following
information:
* the Country or Region from which users access the application
* how often and for how long users browse the catalog
* how many Canadian customers visited the offers page
* how much time Premium customers spend on the support page
* the percentage of users that added items to a shopping cart and completed purchases
You need to collect the required data.
Which tool should you use? To answer, drag the appropriate tools to the correct requirements. Each tool may
be used once, more than once, or mot 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.

正解:

Explanation

Box 1 Geography: Users
"the Country or Region from which users access the application"
The Users panel allows you to understand important details about your users in a variety of ways. You can use
this panel to understand such information as where your users are connecting from, details of their client, and
what areas of your application they're accessing.
Box 2: Feature usage: Session
" how often and for how long users browse the catalog"
The Sessions panel is similar to the Users panel. Where Users helps you understand details about the users
accessing your application, Sessions helps you understand how those users used your application.
Box 3 Canada Offers: Cohorts
" how many Canadian customers visited the offers page"
A Cohort is a set of users grouped on similar characteristics. You can use cohorts to filter data in other panels
allowing you to analyze particular groups of users. For example, you might want to analyze only users who
completed a purchase, or users from Canada.
Box 4 Premium support: Cohorts
"how much time Premium customers spend on the support page"
A Cohort is a set of users grouped on similar characteristics. You can use cohorts to filter data in other panels
allowing you to analyze particular groups of users. For example, you might want to analyze only users who
completed a purchase, or users from Canada.
Box 5: Buyer behavior: Funnels
"the percentage of users that added items to a shopping cart and completed purchases"
Funnels focus on what you want users to do. A funnel represents a set of steps in your application and the
percentage of users who move between steps. For example, you could create a funnel that measures the
percentage of users who connect to your application who search product. You can then see the percentage of
users who add that product to a shopping cart, and then the percentage of those who complete a purchase.
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?

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?

正解:C
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)