QUESTION 11

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 12

You are designing an enterprise-level Windows Communication Foundation (WCF) application. User accounts will migrate from the existing system. The new system must be able to scale to accommodate the increasing load.

 

The new servers are experiencing significant stress under load of large-scale role changes.

 

You need to ensure that the application can handle the stress.

 

Which authorizations should you redesign? (Each correct answer presents a complete solution. Choose all that apply.)

 

A.

Role-based approach

B.

Identity-based approach

C.

Resource-based trusted subsystem model

D.

Resource-based impersonation/delegation model

 

Correct Answer: AC

 

 

QUESTION 13

You are authoring unit tests.

 

The unit tests must test code that consumes sealed classes.

 

You need to create, maintain, and inject dependencies in the unit tests.

 

Which isolation method should you use?

 

A.

T4 text templates and code generation

B.

Stub types

C.

Shim types

D.

Hard-coded implementation

 

Correct Answer: C

Explanation:

http://msdn.microsoft.com/en-us/library/hh549176.aspx

 

Shim types are one of two technologies that the Microsoft Fakes Framework uses to let you easily isolate components under test from the environment. Shims divert calls to specific methods to code that you write as part of your test. Many methods return different results dependent on external conditions, but a shim is under the control of your test and can return consistent results at every call. This makes your tests much easier to write.

 

 

QUESTION 14

You are designing a distributed application.

 

The application must store secure information that is specific to an individual user. The data must be automatically purged when the user logs off.

< p class="MsoNormal" style="cursor: auto; margin: 0cm 0cm 0pt; line-height: normal; text-autospace: ; mso-layout-grid-align: none" align="left"> 

You need to save transient information in a secure data store.

 

Which data store should you use?

 

A.

Session state

B.

Database storage

C.

Profile properties

D.

Application state

 

Correct Answer: B

 

 

 

 

 

 

QUESTION 15

You are developing an application that uses many small images for various aspects of the interface.

 

The application responds slowly when additional resources are being accessed.

 

You need to improve the performance of the application.

 

What should you do?

 

A.

Preload all the images when the client connects to ensure that the images are cached.

B.

Combine all the images into a single image and use CSS to create sprites.

C.

Host all images on an alternate server and provide a CDN.

D.

Convert the images to .png file format and stream all images on a single connection.

 

Correct Answer: C

 

 

QUESTION 16

DRAG DROP

You are developing an ASP.NET MVC application in Visual Studio. The application contains sensitive bank account data.

 

The application contains a helper class named SensitiveData.Helpers.CustomEncryptor.

 

clip_image002

 

The application contains a controller named BankAccountController with two actions.

 

clip_image004

 

The application contains a model named BankAccount, which is defined in the following code segment.

 

clip_image006

 

The application must not display AccountNumber in clear text in any URL.

 

You need to build the view for the GetAccounts action.

 

You have the following code:

 

clip_image008

 

Which code segments should you include in Target 1, Target 2 and Target 3 to build the view?

 

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

 

Correct Answer:

clip_image010

 

 

QUESTION 17

DRAG DROP

You are developing an ASP.NET MVC application in Visual Studio 2012. The application will be viewed with browsers on desktop devices and mobile devices. The application uses the Razor View Engine to display data.

 

The application contains two layouts located in the /Views/Shared directory.

 

These layouts are named:

 

_Layout.cshmtl

_MobleLayoutcshtml

 

The application must detect if the user is browsing from a mobile device. If the user is browsing from a mobile device, the application must use the _MobileLayout.cshtml file. If the user is browsing from a desktop device, the application must use .Layout, cs html.

 

You need to ensure that the application renders the layout that is appropriate for the browser.

 

You have the following code:

 

clip_image012

 

Which code segments should you include in Target 1, Target 2 and Target 3 to complete the code of the ViewStart.cshtml file?

 

To answer, drag the appropriate code segments to the correct targets. 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_image014

 

Correct Answer:

clip_image016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

&nb
sp;

QUESTION 18

HOTSPOT

You develop a new ASP.NET MVC web application. The application is hosted in an Azure Web Role. It includes the following code. Line numbers are included for reference only.

 

clip_image017

 

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

 

clip_image019

 

Correct Answer:

clip_image021

 

 

QUESTION 19

You are developing a controller for an ASP.NET MVC application that manages message board postings.

 

The security protection built in to ASP.NET is preventing users from saving their HTML.

 

You need to enable users to ed
it and save their HTML while maintaining existing security protection measures.

 

Which code segment should you use?

 

clip_image023

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: B

 

 

 

 

 

 

 

 

 

QUESTION 20

DRAG DROP

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

 

The application must:

 

clip_image025Use Windows Identity Foundation 4.5.

clip_image025[1]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_image027

 

Correct Answer:

clip_image029

 

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…