Microsoft Developing ASP.NET MVC 4 Web Applications 70-486 Exam Questions

Page: 1 / 14
Total 231 questions
Question 1

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 an ASP.NET Core MVC web application.

The application must be exposed to external users over ports 80 and 443 and must meet the following requirements:

* Handle more than 1024 simultaneous connections.

* Support Windows authentication.

* Support HTTP/2 over TLS.

* Include response caching.

* Protect against denial-of-service attacks.

You need to deploy the application to an on-premises web server.

Solution: You deploy the application to a standalone Kestrel server.

Does the solution meet the goal?



Answer : B


Question 2

You are developing an ASP.NET MVC web application that includes the following method.

You need to test the AccountBalance method.

Which unit test should you use?



Answer : C

All unit tests require the [TestMethod] attribute.

The Assert.AreEqual method verifies that specified values are equal.

Incorrect:

Not D: All unit tests require the [TestMethod] attribute.

References:

http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.assert.areequal(v=vs.110).aspx


Question 3

You are developing an ASP.NET MVC application that will be deployed on a web farm.

Passwords must be stored in the web.config file and must not be readable or in a format that is easily decodable.

You need to encrypt the passwords that are stored in the web.config file.

Which command-line tool should you use?



Answer : A

References: http://msdn.microsoft.com/en-us/library/zhhddkxy(v=vs.100).aspx


Question 4

You are developing an ASP.NET Core MVC web application that provides assets to external websites including images, JavaScript scripts and text files.

The external websites must be able to make full use of assets provided to them by the web application, including JavaScript asynchronous HTTP requests.

Pages that refer to the images and text files do not load. External websites are unable to use assets.

You need to resolve the issues.

What should you do?



Answer : B

References: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-2.1&tabs=aspnetcore2x


Question 5

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 questions 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 an ASP.NET Core MVC web application.

The application must be exposed to external users over ports 80 and 443 and must meet the following requirements:

Handle more than 1024 simultaneous connections.

Support Windows authentication.

Support HTTP/2 over TLS.

Include response caching.

Protect against denial-of-service attacks.

You need to deploy the application to an on-premises web server.

Solution: You deploy the application to HTTP.sys.

Does the solution meet the goal?



Answer : A


Question 6

You are developing an ASP.NET MVC application that enables you to edit and save a contact.

The application must not save on an HTTP GET request.

You need to implement the controller.

Which two possible code segments should you use? Each correct answer presents a complete solution.



Answer : A, B

A: We retrieve the GET and POST methods through this.HttpContext.Request.RequestType.

B: This is the default MVC implementation of having separate methods for GET and POST via function overloading.

Incorrect:

Not D: We retrieve the GET and POST methods through this.HttpContext.Request.RequestType, not through this.HttpContext.Request['ActionName'].


Question 7

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 questions 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 an ASP.NET web application that is self-hosted using Open Web Interface for .NET (OWIN) in a Microsoft Azure Worker role.

The web application throws exceptions.

You need to resolve the exceptions.

Solution: Change the HTTP Endpoints to use port 80.

Does the solution meet the goal?



Answer : A


Page:    1 / 14   
Total 231 questions