070-487試験無料問題集「Microsoft Developing Microsoft Azure and Web Services 認定」

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?

解説: (GoShiken メンバーにのみ表示されます)
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?

解説: (GoShiken メンバーにのみ表示されます)
You have an application that uses an Entity Framework context. Lazy loading is disabled for the context. The
application uses an Azure SQL Database named Students.
You need to retrieve the courses of a student who has an ID of 100. The solution must use lazy loading.
Which five code blocks should you use? Develop the solution by selecting and arranging the required code
blocks in the correct order.
NOTE: You will not need all of the code blocks.
正解:

Explanation

References:
http://www.entityframeworktutorial.net/Querying-with-EDM.aspx
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?

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 develop a REST API that uses Node.js. The API will store data in Azure Cosmos DB. You plan to deploy
the API to a new Azure App Services Web App. You create a new Web App by using the Azure portal.
The API must be deployed by using SFTP.
You need to provide the proper deployment credentials to deploy the API.
Solution: Use your Azure Cosmos DB master key and resource token.
Does the solution meet the goal?

解説: (GoShiken メンバーにのみ表示されます)
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.)
正解:

Explanation
You have a Windows Communication Foundation (WCF) service. The service will be consumed by following
clients:
* a Windows Store application
* an ASP.NET Core web application
* a Java application developed and hosted by an external vendor
You need to generate proxies for each of these clients to that they can consume the WCF service.
What should you implement? To answer, drag the most appropriate implementation options to the correct
application type. Each option 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.
正解:

Explanation

Box 1: WSDL endpoint
If you have any clients who are not .NET (like Java or PHP, for example), ChannelFactory won't work for
them as that is specific to .NET and WCF. In that case, you'll either have to publish the metadata or send the
client a WSDL endpoint so they can create the proxy via whatever means their language of choice uses.
Box 2: SVCUtil.exe and ChannelFactory
The use of the following classes is supported for Windows Store Applications:
ChannelFactory
DuplexChannelFactory<TChannel>
CallbackBehaviorAttribute
Svcutil.exe can be used to generate the proxy class file. This tool generates the proxy class file and the
App.config file.
Box 3: Connected Services
In Asp.Net core you will notice that, we don't have the option "Add Service Reference like in the older .Net
Framework. The solution for this is WCFConectedService.
Service reference
The Asp.Net core web app can use service references to create service contracts
Box 4: Service reference
The Windows Forms app can use service references to create service contracts
WCF Connected services
The UploadOrder() method in the UploadCallbackService service is not implementing the callback behavior
defined in the IUploadCallBackService interface.
You need to modify the class to implement the required callback behavior.
What should you do? (To answer, drag the appropriate code segments to the correct location or locations in the
answer area. Each code segments 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