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

Page: 1 / 14
Total 231 questions
Question 1

You have two Microsoft Azure subscriptions. One subscription emits logs. You plan to deploy audit tools to the other subscription to allow users to analyze logs that the first subscription emits.

You perform the following anions

* Configure resource diagnostic logs for non-compute resources in the Azure portal.

* Use Event Hubs metrics and set the log category to Operational Logs.

* Set a retention policy of seven days.

Users report that no log files are available

You need to ensure that log files are available for users.



Answer : D


Question 2

You need to configure session storage in the web.config file to meet the technical requirements for scalability.

Which SessionState mode should you use? (Each correct answer presents a complete solution. Choose all that apply.)



Answer : A, D

ASP.NET session state supports several different storage options for session data. Each option is identified by a value in the SessionStateMode enumeration. The following list describes the available session state modes:

* StateServer mode, which stores session state in a separate process called the ASP.NET state service. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm.

* SQLServer mode stores session state in a SQL Server database. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm.

* InProc mode, which stores session state in memory on the Web server. This is the default.

* Custom mode, which enables you to specify a custom storage provider.

* Off mode, which disables session state.

References: https://msdn.microsoft.com/en-us/library/ms178586.aspx


Question 3

You are building an ASP.NET web application.

You must test the web application in multiple browsers at the same time.

You need to ensure that the application can use the Browser Link feature.

Which two actions should you perform? Each correct answer presents part of the solution.



Answer : B, C

Debugging must be enabled in the web.config file.

To enable Browser Link, set debug=true in the <compilation> element in the project's Web.config file.

References: https://www.asp.net/visual-studio/overview/2013/using-browser-link


Question 4

You need to add an action to RunLogController to validate the users' passwords.

Which code segment should you use?



Answer : B


Question 5

You are developing an ASP.NET MVC application. The application is deployed in a web farm and is accessed by many users.

The application must handle web server failures gracefully. The servers in the farm must share the state information.

You need to persist the application state during the session.

What should you implement?



Answer : A

ASP.NET session state service provides a somewhat slower service than the in-process variant as we need to make calls to a remote server. All session data is stored in memory so shutting down the state machine will wipe out all session data as well.

Incorrect:

Not D: The InProc option is particularly dangerous in a web farm environment. For example imagine one farm machine which stores the session state but not the other. Subsequent web requests from the same user may not read the correct session state.

References: https://dotnetcodr.com/2013/07/01/web-farms-in-net-and-iis-part-5-session-state-management/


Question 6

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 a collaborative text editor. Multiple users may simultaneously edit the same document from within the application.

You need to ensure that users can see edits from all users as soon as they are made.

Solution: Implement the application by using ASP.NET Core. Configure the editor Controller action to return JSON data. Use XML HTTP requests for communicating editor changes.

Does the solution meet the goal?



Answer : B


Question 7

You are developing an ASP.NET MVC application that will be deployed on local Internet Information Services (IIS) servers and on an Azure Web Role.

You must log events for the application when it is deployed locally and on Azure. You must not deploy additional services.

You need to implement a logging solution.

Which two technologies can you use? Each correct answer presents a complete solution.



Answer : A, B


Page:    1 / 14   
Total 231 questions