Latest MCPD 70-519 Dumps Real Exam Download 1-10

Ensurepass

QUESTION 1

You are designing an ASP.NET Web application.

The Web application uses a Menu control to display either a menu of public and private pages to

authorized users or a menu of only public pages to visitors.

You need to ensure that the menu options and URLs of the private pages are not available to unauthorized users.

Which approach should you recommend?

 

A. Use the Page_Init method to add to the Menu control only pages that the user is authorized to view.

B. Use the Page_Load method to add to the Menu control only pages that the user is authorized to view.

C. Use a JavaScript window.onload event handler to hide the private pages from the list of pages shown on the menu.

D. Use a JavaScript document.ready event handler to hide the private pages from the list of pages shown on the menu.

 

Correct Answer: B

Explanation/Reference:

 

 

QUESTION 2

You are designing an ASP.NET Web application for online image editing.

Users can upload images to the Web application and edit those images by using utilities provided by the application.

Some utilities are processor intensive and should be offloaded to a Graphics Processing Unit (GPU).

Other utilities require the use of proprietary algorithms that must be performed on the server.

You need to design a solution for minimizing bandwidth usage and Web server response times during image processing, while providing a responsive application.

Which two approaches should you recommend?

(Each correct answer presents part of the solution. Choose two.)

 

A. Perform server-side image processing on the Web server.

B. Perform server-side image processing on a dedicated server.

C. Perform client-side image processing by using ASP.NET AJAX.

D. Perform client-side image processing by using Microsoft Silverlight.

 

Correct Answer: BD

Explanation/Reference:

Perform tasks that require access to the client computer, such as saving files using JavaScript or

accessing the graphical processing unit (GPU) with Silverlight.

Flash and Silverlight are capable of complex, interactive animations, high-definition video, and games.

They can also directly access some aspects of the computer that are not accessible to JavaScript, such as

the video adapter’s graphical processing unit (GPU), which is useful for accelerating graphics displays and

performing some computations.

 

 

clip_image002

Explanation/Reference:

Out of proc – A good next step, this moves session out to a Windows Service. You can run one per Web Farm (meaning, you’ve got multiple machines but one instance of this service) and your session data will survive process recycles, but not system reboots. This is useful for both Web-Gardening and Web-Farming.

Folks usually forget to mark their objects as [Serializable] which basically gives your objects “permission” to leave their process space and be stored in memory in the State Service. If you’ve got a high-traffic site you might want to avoid storing complex objects and object graphs as you’ll pay for it on the serialization.

Of course, with all things, measure everything! You’ll get best performance if you stick with basic types like strings, ints, etc.

 

 

QUESTION 4

You are designing an ASP.NET Web application to manage and display sensitive information stored in a Microsoft SQL Server database.

The database also provides authorization information for users.

All Web pages that display sensitive information require an authenticated login.

There is no visitor access to these pages. You have the following requirements:

-Separate authorization logic from the application.

-Prevent the application from directly accessing the database server. You need to design a data access and authorization solution. Which approach should you recommend?

 

A. Use a WCF service.

B. Use a separate library.

C. Use SQL XML Services.

D. Use stored procedures.

 

Correct Answer: A

Explanation/Reference:

WCF is far more powerful and flexible than ASP.NET web services. With WCF, the developers can offer a variety of bindings and support transactions, queuing, and additional security.

WCF data services are useful when you need to create a data access layer for applications connecting across the Internet. You can create a WCF data services data access layer in only a few minutes.

 

 

QUESTION 5

You are designing an ASP.NET Web application. You have the following requirements:

-Perform rapid development.

-Maintain cross-browser compatibility.

-Do not require client-side installations. You need to recommend a client-side technology that meets the requirements. Which two technologies could you recommend? (Each correct answer presents a complete solution.Choose two.)

 

A. jQuery

B. ASP.NET AJAX

C. Microsoft Silverlight

D. Microsoft Visual Basic Scripting Edition (VBScript)

 

Correct Answer: AB

Explanation/Reference:

Microsoft Silverlight do not allowed because required client installation, VBScript do not supported cross-browser compatibility.

Only jQuery and Asp.net Ajax allowed.

 

 

QUESTION 6

You need to design a solution for calling a server-side method of the code-behind file from JavaScript. Which approach should you recommend?

 

A. Use PageMethods.

B. Use an UpdatePanel control.

C. Use an UpdateProgress control.

D. Configure the server-side method to return a JsonResult.

 

Correct Answer: A

Explanation/Reference:

If you prefer not to reload the page, you can use one of these techniques to allow clientside code to call server-side methods and process the results: Page methods Mark the static method you want to expose with the WebMethod attribute, add a ScriptManager server control, and set ScriptManager.EnablePageMethods to true. Then you can use the PageMethods object within JavaScript to call server-side methods and process the results.

 

 

QUESTION 7

You are designing an ASP.NET Web application. You have the following requirements:

-The application must be usable in partially connected scenarios.

-Data that is entered into the application offline must be synchronized with the server the next time the application is online. You need to design the application to meet the requirements. What should you use?

 

A. jQuery

B. ASP.NET AJAX

C. WCF Data Services

D. Microsoft Silverlight

 

Correct Answer: D

Explanation/Reference:

WCF Data Service: Service layer exposes “raw” data sources http://jack.ukleja.com/wcf-data-services-vs-wcf-ria-services/

The Silverlight application can also run offline but only if your code works in such a way that this is allowed. By that I mean you can work with IsolatedStorage to save some information local and use network detection to check for a network. If your application relies on services or files that are online you can disable working in offline mode (but still enable out of browser). http://blogs.msdn.com/b/katriend/archive/2009/07/10/silverlight-3-out-of-browser-applications.aspx

 

 

QUESTION 8

You need to design a solution for programmatically adding reusable user-interface code to views and allowing the user-interface code to be rendered from the server side. Which approach should you recommend.

 

A. Create a jQuery library plug-in.

B. Create an HtmlHelper extension method.

C. Create a controller that returns an ActionResult.

D. Create a WebForm server control that stores values in ViewState.

 

Correct Answer: BExplanation/Reference:

HtmlHelpers provide an easy way to add HTML controls to MVC views. You can create custom HtmlHelper extensions for HTML elements that are not provided with the builtin HtmlHelpers. Use HtmlHelper extensions to add custom HTML elements to MVC views.

 

 

QUESTION 9

You are designing an ASP.NET Web Forms application.

You expect the application to have high traffic.

You plan to use a Web farm to balance the application load across several Web servers.

You have the following requirements:

-Use round-robin load balancing.

-Do not use persistent storage for session data. You need to ensure that your design meets the requirements. Which configuration should you recommend?

 

A. Use cookieless session state.

B. Use the InProc session state mode.

C. Use the SQLServer session state mode.

D. Use the StateServer session state mode.

 

Correct Answer: B

Explanation/Reference:Round-robin DNS The easiest, least expensive, and most common load-balancing mechanism. Simply specify multiple IP addresses for the web server hostname, and browsers will connect to any of the listed IP addresses. If the first IP address a browser attempts to connect to does not respond, the browser will try the next IP address in the list until a server responds. Therefore, round-robin DNS also provides for failover if a single server fails. Round-robin DNS provides server affinity automatically. InProc The default, this setting stores session state in the server’s memory. Session state is not shared between different web servers, and it is lost if the web server is restarted.

 

 

QUESTION 10

You are designing a RESTful ASP.NET Web application. You have the following requirements:

-Retain state between requests.

-Associate a request with a session.

-Do not require the use of cookies. You need to ensure that your design meets the requirements. Which approach should you recommend?

 

A. Disable ViewState by using the @ Page directive.

B. Configure the application to use cookieless session state.

C. Configure the application to use the InProc session state mode.

D. Register a custom PageAdapter class that provides a SessionStatePagePersister.

 

Correct Answer: B

Explanation/Reference:

By default, ASP.NET uses cookies to identify clients with a specific session. If clients do not support cookies, you can choose cookieless sessions instead. However, cookieless sessions add the session ID to the page URL, which can cause a variety of issues.

 

Download Latest MCPD 70-519 Real Free Tests , help you to pass exam 100%.