Home » [Free] Get all latest Microsoft 70-492 Actual Tests 21-30

[Free] Get all latest Microsoft 70-492 Actual Tests 21-30

Ensurepass

QUESTION 21

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

 

 

QUESTION 22

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

 

 

QUESTION 23

HOTSPOT

You are developing an ASP.NET MVC application. You need to store membership information in a Microsoft SQL Server database. How should you configure the membership provider? (To answer, select the appropriate options in the answer area.)

 

clip_image002

 

clip_image004

 

Correct Answer:

clip_image006

 

 

QUESTION 24

You are designing a distributed application. The application must store a small amount of insecure global information that does not change frequently. You need to configure the application to meet the requirements. Which server-side state management option should you use? (Each correct answer presents a complete solution. Choose all that apply.)

 

A.

Application state

B.

Session state

C.

Database support

D.

Profile properties

 

Correct Answer: AC

 

 

QUESTION 25

You are developing an ASP.NET MVC application in Visual Studio 2012. The application supports multiple cultures.

 

The application contains three resource files in the Resources directory:

 

clip_image008ProductDictionary.resx

clip_image008[1]ProductDictionary.es.resx

clip_image008[2]ProductDictionary.fr.resx

 

Each file contains a public resource named Currency with the localized currency symbol. The application is configured to set the culture based on the client browser settings.

 

The application contains a controller with the action defined in the following code segment.

(Line numbers are included for reference only.)

 

clip_image010

 

You need to set ViewBag.LocalizedCurrency to the localized currency contained in the resource files. Which code segment should you add to the action at line 03?

 

A.

ViewBag.LocaIizedCurrency = Resources.ProductDictionary.Currency;

B.

VievBag.LocalizedCurrency =

HttpContext.GetGlobalResourceObject(“ProductDictionary”, “Currency”, new System.Globalization.CultureInfo(Men”));

C.

VievBag.LocalizedCurrency =

HttpContext.GetLocalResourceObject(“ProductDictionary”, “Currency”);

D.

ViewBag.LocalizedCurrency =

HttpContext.GetGlobalResourceObject(“ProductDictionary”, “Currency”);

 

Correct Answer: A

 

 

QUESTION 26

You are developing an ASP.NET MVC application. You need to authenticate clients by using an ASP.NET membership database. Which authentication method should you implement?

 

A.

Kerberos

B.

Forms

C.

Basic

D.

Windows

 

Correct Answer: B

 

 

QUESTION 27

DRAG DROP

You are developing an ASP.NET MVC application that authenticates a user by using claims-based authentication.

 

The application must:

 

clip_image008[3]Use Windows Identity Foundation 4.5.

clip_image008[4]Support the Windows Azure Access Control Service.

 

You need to implement authentication. How should you build the class constructor? (To answer, drag the appropriate code segment to the correct location or locations 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.)

 

clip_image012

 

Correct Answer:

clip_image014

 

 

QUESTION 28

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

 

clip_image016

 

You need to test the GoldMined method. Which unit test should you use?

 

clip_image018

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: D

 

 

QUESTION 29

You are developing an ASP.NET MVC application by using Visual Studio 2012. The application throws and handles exceptions when it runs. You need to examine the state of the application when exceptions are thrown. What should you do?

 

A.

From the Debug menu in Visual Studio 2012, select Exceptions. Enable the Thrown check box for Common Language Runtime Exceptions.

B.

From the DEBUG menu in Visual Studio 2012, select Attach to Process. Select the IIS process.

C.

From the Debug menu in Visual Studio 2012, select Exceptions. Disable the User- unhandled check box for Common Language Runtime Exceptions.

D.

From the TOOLS menu in Visual Studio 2012, click Customize. Click Commands tab and select Debug.

 

Correct Answer: A

 

 

QUESTION 30

DRAG DROP

You are developing a WCF Data Services service in Visual Studio 2012 to display movie information from a SQL Server database that changes every 24 hours. The service is defined in the following class.

 

clip_image020

 

The application contains the following Entity Framework model.

 

clip_image021

 

The service must only return data for movies that are currently in theaters. You need to add a method to the MovieService class to filter the data. How should you build the method? (To answer, drag the appropriate code segments to the correct location or locations 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.)

 

clip_image023

 

Correct Answer:

clip_image025

 

Instant Access to Download Testing Software & PDF File for Microsoft 70-492 Real Exam

Instant Access to Try Microsoft 70-492 Free Demo

HOT EXAM!

Name of author

Name: admin