最新的Microsoft Developing Microsoft Azure and Web Services - 070-487免費考試真題
You are developing an application.
The application must be deployed from Team Foundation Server after a successful build is completed. The
Process tab of the Build Definition screen is shown in the exhibit. (Click the Exhibit button.)

You need to configure the automated deployment.
In which section should you define the parameters for the automated deployment? (To answer, select the
appropriate section in the answer area.)

The application must be deployed from Team Foundation Server after a successful build is completed. The
Process tab of the Build Definition screen is shown in the exhibit. (Click the Exhibit button.)

You need to configure the automated deployment.
In which section should you define the parameters for the automated deployment? (To answer, select the
appropriate section in the answer area.)

正確答案:

Explanation

You develop an ASP.NET MVC application that is secured by using SSL. You are ready to deploy the
application to production.
The deployment package must include the installation of the SSL certificate.
You need to configure the deployment package to meet the requirement.
What should you do?
application to production.
The deployment package must include the installation of the SSL certificate.
You need to configure the deployment package to meet the requirement.
What should you do?
正確答案: C
說明:(僅 Fast2test 成員可見)
You are developing an ASP.NET Web API application that will be consumed by a web browser via 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.)

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

正確答案:

Explanation

You are supporting a WCF data contract that returns a price calculation that can be expanded to add new data
members.
Clients using the old version of the data contract must be supported.
You need to define the data contract so that the data serializer can put unknown data members into a property
bag.
You have the following code:

Which code segments should you include in Target 1 and Target 2 to complete the data contract? (To answer,
drag the appropriate code elements to the correct targets 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.)

members.
Clients using the old version of the data contract must be supported.
You need to define the data contract so that the data serializer can put unknown data members into a property
bag.
You have the following code:

Which code segments should you include in Target 1 and Target 2 to complete the data contract? (To answer,
drag the appropriate code elements to the correct targets 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.)

正確答案:

Explanation

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 have a web application in a Docker container image. You set the tag for the image as myapp. You plan to
deploy the application to Azure Container Services.
You run the following commands. All commands complete successfully.

You need to ensure that the image can be run on an Azure Container Service cluster.
Solution: You run the following commands:

Does the solution meet the goal?
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 have a web application in a Docker container image. You set the tag for the image as myapp. You plan to
deploy the application to Azure Container Services.
You run the following commands. All commands complete successfully.

You need to ensure that the image can be run on an Azure Container Service cluster.
Solution: You run the following commands:

Does the solution meet the goal?
正確答案: B
說明:(僅 Fast2test 成員可見)
You are developing a Windows Communication Foundation (WCF) service named WCF1.
WCF1 will use a certificate to secure the communication channel.
You need to ensure that the WCF service uses a certificate to secure the communication channel.
How should you complete the code? To answer, drag the appropriate code blocks to the correct locations. Each
code block 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.

WCF1 will use a certificate to secure the communication channel.
You need to ensure that the WCF service uses a certificate to secure the communication channel.
How should you complete the code? To answer, drag the appropriate code blocks to the correct locations. Each
code block 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

Target 1: ClientCredentialType
Target 2: MessageCredentialType.Certificate
Set the ClientCredential property to an appropriate value. The following code sets the property to Certificate.
WSHttpBinding b = new WSHttpBinding();
b.Security.Mode = SecurityMode.Message;
b.Security.Message.ClientCredentialType = MessageCredentialType.Certificate;
Target 3: SetCertificate
On the client class, set the ClientCredentials property of the ClientBase<TChannel> class to an appropriate
value.
Example: // Set the certificate for the client.
cc.ClientCredentials.ClientCertificate.SetCertificate(
StoreLocation.LocalMachine,
StoreName.My,
X509FindType.FindBySubjectName,
"cohowinery.com");
References: https://docs.microsoft.com/en-us/dotnet/framework/wcf/how-to-set-the-security-mode
https://docs.microsoft.com/en-us/dotnet/framework/wcf/how-to-specify-client-credential-values
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 need to maintain data integrity in all situations that use transactions.
正確答案: C
You add a class named ShippingInfo.
You need to modify the IShippingService interface and the ShippingInfo class to meet the technical
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.)

You need to modify the IShippingService interface and the ShippingInfo class to meet the technical
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

http://msdn.microsoft.com/en-us/library/system.servicemodel.servicecontractattribute.aspx
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 have developed a .NET Standard Library.
You need to produce a NuGet package.
Solution: Run the msbuild command with the publish target specified.
Does the solution meet the goal?
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 have developed a .NET Standard Library.
You need to produce a NuGet package.
Solution: Run the msbuild command with the publish target specified.
Does the solution meet the goal?
正確答案: A
說明:(僅 Fast2test 成員可見)
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.
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
說明:(僅 Fast2test 成員可見)