Microsoft Developing Microsoft Azure and Web Services - 070-487 Exam Practice Test

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.
Correct Answer:

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 need to configure the WebJob.
What should you do?
Correct Answer: D Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
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?
Correct Answer: A Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
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 Azure Event Hubs Capture to deliver data to Azure File Service.
Does the solution meet the goal?
Correct Answer: A Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
You are preparing to develop a set of libraries for a company.
The libraries must be shared across the company.
You need to create a remote NuGet feed that exposes the libraries.
What should you do? (Each answer presents part of the solution. Choose all that apply.)
Correct Answer: A,B,C,G Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
You need to compile CarBusinesLogic.dll by using Microsoft Visual Studio.
Which attribute should you add before you compile the dynamic-link library (DLL)?
Correct Answer: A Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
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.)
Correct Answer:

Explanation
The QueueDetail entity type must inherit from the InboundQueue entity type in the ExternalQueue service
project using table-per-type inheritance.
You need to modify the entities in the designer.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
Correct Answer: B,D,E,F Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
You need to modify the ExecuteCommandProcedure() method to meet the technical requirements.
Which code segment should you use?
Correct Answer:

Explanation
You are developing a Microsoft ASP.NET Web API.
You need to create a method to answer to the following raw HTML request.

How should you complete code? To answer, drag the appropriate code segments to the correct locations. 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.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation

References:
https://docs.microsoft.com/en-us/aspnet/web-api/overview/getting-started-with-aspnet-web-api/action-results
https://docs.microsoft.com/en-us/aspnet/web-api/overview/formats-and-model-binding/parameter-binding-in-asp
https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-2.2&tabs=visual-studio#ad
You are developing an application that reads and writes data from a SQL Server database.
You need to ensure transactional data integrity.
Which isolation level should you use?
Correct Answer: C Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
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.)
Correct Answer:

Explanation
Data provided by Consolidated Messenger is cached in the HttpContext.Cache object.
You need to ensure that the cache is correctly updated when new data arrives.
What should you do?
Correct Answer: B Vote an answer