QUESTION 61

DRAG DROP

You are developing an ASP.NET web application that uses health monitoring to log events to the Windows Event Log. The application contains a custom event that is defined in the following code segment. Line numbers are included for reference only.

 

clip_image002

 

You need to ensure that the event is correctly added to the Windows event log.

 

How should you complete the relevant code?

 

To answer, drag the appropriate code segment to the correct location or 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.

 

clip_image004

 

Correct Answer:

clip_image006

 

 

QUESTION 62

DRAG DROP

You are developing an ASP.NET MVC application that allows users to log on by using a third-party authenticator.

 

You need to configure Microsoft Azure Access Control Services and the application.

 

Which five actions should you perform in sequence?

 

To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

 

clip_image007

 

Correct Answer:

clip_image008

 

 

QUESTION 63

You are developing an ASP.NET MVC application that displays stock market information.

 

The stock market information updates frequently and must be displayed in real-time.

 

You need to eliminate unnecessary header data, minimize latency, and transmit data over a full-duplex connection.

 

What should you do?

 

A.

Implement long-running HTTP requests.

B.

Instantiate a MessageChannel object on the client.

C.

Implement WebSockets protocol on the client and the server.

D.

Configure polling from the browser.

 

Correct Answer: C

 

 

QUESTION 64

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?

 

A.

Aspnet_regiis.exe

B.

Aspnet_regbrowsers.exe

C.

Aspnet_setreg.exe

D.

Aspnet_compiler.exe

 

Correct Answer: A

 

 

 

 

QUESTION 65

You are designing an MVC web application.

 

The view must be as simple as possible for designers who do not have a technical background.

 

You need to combine two existing models to meet the requirement.

 

Which component of the MVC framework should you use?

 

A.

View

B.

View Model

C.

Controller

D.

Model

 

Correct Answer: B

 

 

QUESTION 66

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?

 

A.

Aspnet_regiis.exe

B.

Ngen.exe

C.

Aspnet_merge.exe

D.

EdmGen.exe

 

Correct Answer: A

Explanation:

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

 

 

QUESTION 67

You are developing an ASP.NET MVC application.

 

The application must allow users to enter JavaScript in a feedback text box only.

 

You need to disable request validation.

 

What should you do?

 

A.

Apply and set the CausesClientSideValidation attribute on the text box to FALSE.

B.

Apply and set the ValidateInput attribute on the text box to FALSE.

C.

Use the HttpRequest.Unvalidated property to read the unvalidated form value.

D.

Use the HttpRequest.Form property to read the unvalidated form value.

 

Correct Answer: C

Explanation:

Provides access to HTTP request values without triggering request validation.

http://msdn.microsoft.com/en-us/library/system.web.httprequest.unvalidated.aspx

 

 

QUESTION 68

You are developing an ASP.NET MVC application that uses forms authentication. The application uses SQL queries that display customer order data.

 

You need to prevent all SQL injection attacks against the application.

 

How should you secure the queries?

 

A.

Implement parameterization.

B.

Pattern check the input.

C.

Filter out prohibited words in the input.

D.

Escape single quotes on string-based input parameters.

 

Correct Answer: A

Explanation:

With most development platforms, parameterized statements that work with parameters can be used (sometimes called placeholders or bind variables) instead of embedding user input in the statement. A placeholder can only store a value of the given type and not an arbitrary SQL fragment. Hence the SQL injection would simply be
treated as a strange (and probably invalid) parameter value.

 

Reference: https://en.wikipedia.org/wiki/SQL_injection#Parameterized_statements

 

 

QUESTION 69

You are developing an ASP.NET MVC web application in Visual Studio 2012. The application requires several thousand content files. All content is hosted on the same IIS instance as the application.

 

You detect performance issues when the application starts.

 

You need to resolve the performance issues.

 

What should you do?

 

A.

Enable compression in IIS.

B.

Move the content to a second server.

C.

Combine the content files by using ASP.NET MVC bundling.

D.

Implement HTTP caching in IIS.

 

Correct Answer: C

 

 

QUESTION 70

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?

 

A.

A state server

B.

Cookieless sessions

C.

A web garden on the web servers

D.

An InProc session

 

Correct Answer: A

 

Free VCE & PDF File for Microsoft 70-494 Real Exam

Instant Access to Free VCE Files: MCSE|MCSA|MCITP…
Instant Access to Free PDF Files: MCSE|MCSA|MCITP…