Microsoft Developing Microsoft Azure and Web Services - 070-487 FREE EXAM DUMPS QUESTIONS & ANSWERS

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

Explanation
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 all orders along with customer information. Lazy loading has been disabled.
The Order class is shown below.

You need to return the orders and customer information in a single round trip to the database.
Which code segment should you use?
Correct Answer: B Vote an answer
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: Enter the user-level credentials that you configured when you created the Web App.
Does the solution meet the goal?
Correct Answer: A Vote an answer
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.
Correct Answer:

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 WCF service in Visual Studio 2013 that integrates with the Microsoft Azure service bus
relay.
The Azure service bus namespace is named RestaurantServiceBus
You need to obtain the issuer name and secret.
What should you do? (To answer, select the appropriate option in the answer area.)
Correct Answer:

Explanation
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.
Correct Answer: C Vote an answer
You need to load flight information provided by Consolidated Messenger.
Which should you use?
Correct Answer: A Vote an answer
You have table named Employee that has two columns named firstName and lastName.
You need to insert synchronously the first and last name of an employee into the Employee table.
Which five code segments should you use? Develop the solution by selecting and arranging the required code
segments in the correct order.
NOTE: You will not need all of the code segments.
Correct Answer:

Explanation
You are maintaining a ASP.NET Core web application that uses Entity Framework Core for data access. The
application contains a model class named Student.
You must add a field named FirstName to the class. The field has following requirements:
* Use a non-nullable field named FName to store data in a Microsoft SQL Server database.
* The data length must be between 2 and 50 characters.
The application user interface must display an error message if the maximum or minimum length requirements
are not met.
You need to implement the FirstName field.
How should you complete the code? To answer, select the appropriate code segments to use in the answer
area.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation

References:
https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/validation?view=aspnetcore-2.2
You have the following code.

File.xml contains the following XML markup.

You need to write code to display Item1 in the console output.
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 need all of the code blocks.
Correct Answer:

Explanation
You are developing a library to support multiple ASP.NET MVC web applications on a shared server. The
library provides implementations of security algorithms.
If a problem with any of the security algorithms is discovered, a new version of the library must be created and
deployed. Application downtime during the update must be minimized.
You need to ensure that the new version of the library will be used by all applications as soon as possible.
What should you do?
Correct Answer: C Vote an answer
You are developing an ASP.NET MVC application. The application has a page that updates an image stored in
a database. Members of the EntityClient namespace are used to access an ADO.NET Entity Framework data
model. Images and associated metadata are stored in a single database table.
You need to run a single query that updates an image and associated metadata in the database while returning
only the number of affected rows.
Which method of the EntityCommand type should you use?
Correct Answer: D Vote an answer
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 are developing a RESTful API that uses ASP.NET Core. You plan to host the API in Azure App
Services. You provision a development environment in the application service.
Developers must be able to deploy the API to the development environment. You must not share the Azure
account credentials with developers.
You need to ensure that developers can deploy the API to the development environment.
Solution: Add the developers to the same Azure Active Directory (Azure AD) as the Azure subscription in
which the App Service is provisioned. Use XCopy to deploy to the App Service.
Does the solution meet the goal?
Correct Answer: A Vote an answer
Explanation: Only visible for FreeCram members. You can sign-up / login (it's free).
You are developing a web application by using Microsoft ASP.NET MVC.
The web application will show a list of cars and their associated prices. The list can be filtered by car model by
using a drop-down list. Access to the web application will be anonymous.
The car model list is stored as an .xml file on the application server. The car prices list is stored on a SQL
Server server.
You need to recommend a caching strategy for each scenario:
* If a user selects a car model from the drop-down list, and then closes the browser, the same model must
be selected automatically when the user reopens the web application from the same browser.
* If the car model list is updated, the drop-down list must be refreshed upon the next page reload.
* If the car prices list is updated, the prices list must be refreshed upon the next page reload.
What should you recommend? To answer, drag the appropriate caching strategies to the correct scenarios.
Each caching strategy 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

Box 1: outputCache
outputCache declaratively controls the output caching policies of an ASP.NET page or a user control
contained in a page.
Box 2: CacheDependency
CacheDependency establishes a dependency relationship between an item stored in an ASP.NET application's
Cache object and a file, cache key, an array of either, or another CacheDependency object. The
CacheDependency class monitors the dependency relationships so that when any of them changes, the cached
item will be automatically removed.
Box 3: SqlCacheDependency
SQL cache dependency enables you to cache pages that are dependent on data from SQL Server tables. You
can configure SQL Server and ASP.NET tocache page requests, reducing server workload, until the data on
which the page depends has been updated in SQL Server. SQL cache dependency is useful for data such as
product catalogs or customer registration information that remains comparatively static.
outputCache CacheDependency
References:
https://msdn.microsoft.com/en-us/library/system.web.caching.cachedependency(v=vs.110).aspx
0
0
0
10