Latest MCPD 70-519 Dumps Real Exam Download 21-30

Ensurepass

 

 

clip_image002[4]

 

 

QUESTION 22

You need to design the application to support the RSS news feeds. Which approach should you recommend?

 

A. Use the FileResult class and return the result as a plain text file.

B. Use the ViewResult class and bind the items to an HTML.TextArea HTML Helper.

C. Use a custom ActionResult class and return the output stream as the return value.

D. Use a custom ActionResult class and bind the items to an HTML.TextArea HTML Helper.

 

Correct Answer: C

Explanation/Reference:

 

 

QUESTION 23

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

-Use an existing data layer built on the Entity Framework.

-Ensure that additional Entity Framework entities can be supported without additional coding.

-You need to design the Web application so that users can add, edit, and delete data. Which approach should you recommend?

 

A. Create an ASP.NET Dynamic Data project.

B. Create an ASP.NET MVC 2 project and use the Entity Framework data layer as your model.

C. Create an ASP.NET Web Forms application and set the DataSourceId for each GridView to an EntityDataSource control.

D. Create an ASP.NET Web Forms application and set the DataSourceId for each GridView to an ObjectDataSource control.

 

Correct Answer: A

Explanation/Reference:

Dynamic Data in the simple way supported add, edit, and delete data.

 

 

QUESTION 24

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

-Type safety must be validated at compile time.

-Code must not require explicit run-time type casting. You need to pass data between the controllers and the views within the Web application. Which approach should you recommend?

 

A. Use the ViewDataDictionary class.

B. Use the TempDataDictionary class.

C. Use strongly typed view model classes.

D. Use dynamic object view model classes.

 

Correct Answer: C

Explanation/Reference:

 

 

QUESTION 25

You have an ASP.NET Web Forms application for processing orders.

Many users of the application submit their order forms multiple times due to incorrectly formatted credit card information.

You need to plan for validation of the length and format of data in the credit card field on the client side prior to processing each transaction.

Which approach should you recommend?

 

A. Use a CustomValidator control in the Page_Load method.

B. Use a CustomValidator control in the OnServerValidate method.

C. Use a RequiredFieldValidator control and a CompareValidator control.

D. Use a RequiredFieldValidator control and a RegularExpressionValidator control.

 

Correct Answer: D

Explanation/Reference:

RequiredFieldValidator used for check is value do not empty RegularExpressionValidator – check value is correct by regular expression

 

 

QUESTION 26

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

-Users must be allowed to save their work in progress on one computer and to continue the work on another computer.

-Data that is submitted for processing must be valid, and invalid data must be rejected.

-Primary key constraints within the database must be enabled at all times.

-The application must store only data that is entered by the user.

You need to design data validation to support the requirements.

Which two approaches should you recommend?

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

 

A. Store temporary form data as XML in a database table.

B. Use validators to verify the data when the user submits a form.

C. Add an is Temporary column to each database table, and set all columns to allow null values.

D. Provide default values for the database columns, and submit the form with user-entered values when the user saves the form.

 

Correct Answer: AB

Explanation/Reference:

 

 

QUESTION 27

You are designing an ASP.NET Web application that allows users to type a value in a text box.

The application must function with JavaScript disabled.

You need to design a method for using a Web service to validate the user-typed value before the form is processed.

Which two actions should you recommend?

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

 

A. Use a CustomValidator control.

B. Use a DynamicValidator control.

C. Use an OnServerValidate method.

D. Use a ClientValidationFunction method.

 

Correct Answer: AC

Explanation/Reference:CustomValidator.OnServerValidate

The ServerValidate event is raised when validation is performed on the server.

Raising an event invokes the event handler through a delegate. For more information, see Events and Delegates.

The OnServerValidate method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnServerValidate in a derived class, be sure to call the base class’s OnServerValidate method so that registered delegates receive the event.

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.customvalidator.onservervalidate.aspx

 

clip_image004[4]

Explanation/Reference:

You can create application domains with a specific trust level and launch components within the application domain. The component will have only the privileges you grant to the trust level. In this scenario, you should configure a custom trust level that grants the component access to create files in the local folder without having other excessive privileges.

 

 

QUESTION 29

You need to design a solution for incorporating NTFS permissions in the Web application.

Which two approaches should you recommend?

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

 

A. Grant the Network Service account only Read permission to the root directory.

B. Grant Read permission and Write permission to the root directory.

C. Grant the Network Service account Full Control permission to the Upload folder.

D. Grant the Network Service account Read permission and Write permission to the Upload folder.

 

Correct Answer: AD

Explanation/Reference:

 

 

QUESTION 30

You need to plan for authentication and authorization of Web application users. Which approach should you recommend?

 

A. Use the Membership API.

B. Use the Personalization API.

C. Use the Local Security Policy.

D. Use the Group Policy Manager.

 

Correct Answer: A

Explanation/Reference:

Introduction to Membership ASP.NET membership gives you a built-in way to validate and store user credentials. ASP.NET membership therefore helps you manage user authentication in your Web sites. You can use ASP.NET membership with ASP.NET forms authentication by using with the ASP.NET login controls to create a complete system for authenticating users. http://msdn.microsoft.com/en-us/library/yh26yfzy.aspx

 

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