Ensurepass

QUESTION 61

You are developing an ASP.NET MVC application that will be deployed to servers on multiple networks. The application must be compatible with multiple browsers. You must track the page number that the user is viewing in search results. You need to program the location for storing state information. Where should you persist state information?

 

A.

Session

B.

QueryString

C.

Application

D.

TempData

 

Correct Answer: B

 

 

QUESTION 62

HOTSPOT

You are developing an ASP.NET MVC web application that enables users to open Microsoft Excel files.

 

The current implementation of the ExcelResult class is as follows.

 

image119

 

You need to enable users to open Excel files.

 

How should you implement the ExecuteResult method? (To answer, select the appropriate options in the answer area.)

 

image121

image123

 

Correct Answer:

image125

 

 

QUESTION 63

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 64

You are designing an HTML5 website. You need to design the interface such that the content is viewable in all types of browsers, including screen readers. What should you do? (Each correct answer presents a complete solution. Choose all that apply.)

 

A.

Ensure that content elements have valid and descriptive names.

B.

Use Resource Description Framework (RDF) to describe content elements.

C.

Convert HTML forms to XForms.

D.

Use HTML5 semantic markup elements.

E.

Annotate content elements with Accessible Rich Internet Application (ARIA) attributes.

 

Correct Answer: DE

QUESTION 65

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:

 

image075ProductDictionary.resx

image075[1]ProductDictionary.es.resx

image075[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.)

 

image127

 

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 66

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 67

DRAG DROP

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

 

The application must:

 

image075[3]Use Windows Identity Foundation 4.5.

image075[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.)

 

image129

 

Correct Answer:

image131

 

 

QUESTION 68

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 69

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

 

image133

 

You need to test the GoldMined method.

 

Which unit test should you use?

 

image135

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: D

 

 

QUESTION 70

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. C!ic< tie Commands tab and select Debug.

 

Correct Answer: A

 

Instant Access to Download Latest Complete Collection of Microsoft 70-486 Real Exam

Try Microsoft 70-486 Free Demo