[Free] 2017 Ensurepass Lead2Pass Microsoft 70-494 Actual Test 1-10

Ensurepass

Recertification for MCSD: Web Applications

 

QUESTION 1

You are designing a localized ASP.NET MVC online shopping application that will be deployed to customers in the United States, China, France, and Brazil. The application must support multiple cultures so that content in the appropriate language is available in each area.

 

You need to ensure that the content can be viewed in several languages.

 

How should you implement this feature?

 

A.

Use a resource (.resx) file to provide translations.

B.

Use Systems.Collections.Generics.Dictionary to store alternative translations.

C.

Ensure that all strings are marked internal to avoid conflict with internal literals.

D.

Include language-specific content in the assembly manifest and use .NET culture libraries.

&nbsp
;

Correct Answer: A

Explanation:

A resource file is an XML file that contains the strings that you want to translate into different languages or paths to images. The resource file contains key/value pairs. Each pair is an individual resource. Key names are not case sensitive. For example, a resource file might contain a resource with the key Button1 and the value Submit. You create a separate resource file for each language (for example, English and French) or for a language and culture (for example English [U.K.], English [U.S.]). Each localized resource file has the same key/value pairs; the only difference is that a localized resource file can contain fewer resources than the default resource file. The built-in language fallback process then handles loading the neutral or default resource.

 

Reference: SP.NET Web Page Resources Overview

 

 

QUESTION 2

You are designing a distributed banking application that handles multiple customers. A user may log on to the site to perform activities such as checking balances, performing transactions, and other activities that must be done securely.

 

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

 

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

 

Which data store should you use?

 

A.

NET session state

B.

NET profile properties

C.

NET application state

D.

Shared database

 

Correct Answer: A

 

 

QUESTION 3

You are developing an ASP.NET MVC application that uses forms authentication against a third-party database.

 

You need to authenticate the users.

 

Which code segment should you use?

 

clip_image002

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: C

Explanation:

Class ProviderBase

The provider model is intended to encapsulate all or part of the functionality of multiple ASP.NET features, such as membership, profiles, and protected configuration.

 

 

QUESTION 4

Yo
u are developing an ASP.NET MVC web application for viewing a list of contacts. The application is designed for devices that support changes in orientation, such as tablets and smartphones. The application displays a grid of contact tiles in portrait mode.

 

When the orientation changes to landscape, each tile in the grid expands to include each contact’s details. The HTML that creates the tiled interface resembles the following markup.

 

clip_image004

 

The CSS used to style the tiles in landscape mode is as follows.

 

clip_image006

 

If this CSS is omitted, the existing CSS displays the tiles in portrait mode.

 

You need to update the landscape-mode CSS to apply only to screens with a width greater than or equal to 500 pixels.

 

Which code segment should you use?

 

A.

@media screen and (width >= 500px) {

}

B.

@media screen and (min-width: 500px) {

}

C.

@media screen(min-width: 500px, max-width: 1000px) { …

}

D.

@media resolution(min-width: 500px) {

}

 

Correct Answer: B

Explanation:

http://www.javascriptkit.com/dhtmltutors/cssmediaqueries.shtml

 

 

QUESTION 5

DRAG DROP

You are developing an ASP.NET MVC application that takes customer orders.

 

Orders are restricted to customers with IP addresses based in the United States.

 

You need to implement a custom route handler.

 

How should you implement the route handler?

 

To answer, drag the appropriate line of code to the correct location or locations. Each line of code 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_image008

 

Correct Answer:

clip_image010

 

 

QUESTION 6

HOTSPOT

You are developing an ASP.NET MVC application that has pages for users who browse the site with Windows Phone 7.

 

The pages for Windows Phone 7 include the following files:

 

clip_image012_Layout.WP7.cshtml

clip_image012[1]Index.WP7.cshtml

 

You need to update the application so that it renders the customized files correctly to Windows Phone 7 users.

 

How should you update the Application_Start method?

 

To answer, select the appropriate option from the drop-down list in the answer area.

 

clip_image014

 

Correct Answer:

clip_image016

 

 

 

 

 

QUESTION 7

You are developing an Azure worker role. You enable crash dump collection for the role.

 

When the role starts, an external application stops responding.

 

You need to download the crash dump to determine why the application stops responding.

 

From which two locations can you download the crash dump? Each correct answer presents a complete solution.

 

A.

Azure Blob storage

B.

the temp folder on the virtual machine that is running the role instance

C.

Azure file storage

D.

the DiagnosticStore local resource folder on the virtual machine that is running the role instance

 

Correct Answer: AD

Explanation:

When you enable collection of crash dumps, the resulting data is written to the CrashDumps directory in the DiagnosticStore local resource that is automatically configured for your role.

When crash dump data is transferred to persistent storage, it is stored to the wad-crash- dumps Blob container.

 

Reference:

CrashDumps.EnableCollection Method

https://msdn.microsoft.com/library/microsoft.windowsazure.diagnostics.crashdumps.enablecollection.aspx

 

 

QUESTION 8

HOTSPOT

You are developing an ASP.NET MVC application.

 

Before an action is executed, information about the action must be written to a log. After results are returned, information about the results also must be written to the log.

 

You need to log the actions and results.

 

You have the following code:

 

clip_image018

 

Which code segments should you include in Target 1, Target 2 and Target 3 to implement the LogActionFilter class?

To answer, select the appropriate option from the drop-down list in the answer area.

 

clip_image020

 

Correct Answer:

clip_image022

 

QUESTION 9

You are testing an ASP.NET application.

 

The test plan requires that tests run against the application’s business layer.

 

You need to use the test project template that meets this requirement.

 

Which template should you use?

 

A.

Web Test Project

B.

Load Test Project

C.

Unit Test Project

D.

Coded Test Project

 

Correct Answer: C

 

 

QUESTION 10

HOTSPOT

You are using the features of the IIS SEO Toolkit to configure the website.

 

You need to exclude search engines from indexing parts of website.

 

What should you do?

 

To answer, select the appropriate option from the drop-down list in the answer area.

 

clip_image024

 

Correct Answer:

clip_image026

 

Free VCE & PDF File for Microsoft 70-494 Actual Tests

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