Ensurepass

Background

You are making use of Visual Studio 2012 to create an ASP.NET MVC online retail web application.

 

Business Prerequisites

The entering of user e-mail addresses should not be compulsory. In the event that a user does provide an e-mail address, the validity of the address should be authenticated. To motivate users to keep on browsing the item list, you have to make sure that the first item on the item page gradually disappears.

 

Furthermore, you have to make sure that administrators have the ability to manage current client data, and also identify a default item on the item page.

 

Technical Prerequisites

 

General

A load-balanced web farm, where the load balancer has not been configured to employ server affinity, hosts the application

 

With regards to items, you are informed that the itemId property value should not be less than or equal to 0. Furthermore, the Items page for mobile devices should be presented to mobile users and the Items page for desktop computers should be presented to desktop users

 

Storage

You are informed that information should be saved in a serialized XML data format, and that serialized objects should be independent of the schema.

 

Exception handling

A page showing support contact details should be presented for IIS exceptions. 404 errors resulting from expired links cause exceptions to be thrown. Some page links expire, and users who access these links encounter 404 errors. The WriteLog method of the Utility class should be used to log these exceptions.

 

Browser and device support

The application should allow for .bmp format images to be changed to .jpeg format images for mobile devices, and to .png format images for desktop computers.

 

 

QUESTION 107

You have been tasked with creating a Communication Foundation (WCF) service that makes use of the Item class. You are informed that the Item class should be updated in such a way that it satisfies storage prerequisites. You start by marking the Item class with the DataContract attribute. Which of the following actions should you take NEXT?

 

A.

You should consider making sure that the public members of the Item class is marked with the EnumMember attribute.

B.

You should consider making sure that the private members of the Item class is marked with the DataMember attribute.

C.

You should consider making sure that the private members of the Item class is marked with the EnumMember attribute.

D.

You should consider making sure that the public members of the Item class is marked with the DataMember attribute.

 

Correct Answer: D

 

 

QUESTION 108

You have received instructions to make sure that IIS errors are handled in accordance with the prerequisites. Which of the following actions should you take?

 

A.

You should consider bringing the customErrors attribute in the web.config file up to date.

B.

You should consider bringing the customErrors attribute in the machine.config file up to date.

C.

You should consider bringing the customErrors attribute in the app.config file up to date.

D.

You should consider bringing the customErrors attribute in the client.config file up to date.

 

Correct Answer: A

 

 

QUESTION 109

You have been instructed to write code that creates a method for the ItemController class. The method must satisfy the prerequisites to handle exceptions related to logging. Which of the following actions should you take?

 

A.

You should consider creating an OnResultExecuted method.

B.

You should consider creating an OnAuthorization method.

C.

You should consider creating an OnException method.

D.

You should consider creating an OnActionExecuting method.

 

Correct Answer: C

 

 

QUESTION 110

You have received instructions to make sure that the prerequisites with regards to the ItemId are suitably met. Which of the following actions should you take?

 

A.

You should consider changing a method of ItemController.

B.

You should consider changing a method of ItemProperty.

C.

You should consider changing a method of ItemObject.

D.

You should consider changing a method of ItemAttribute.

 

Correct Answer: A

 

 

QUESTION 111

You are preparing to make sure that the prerequisites for client information management are suitably met. You start by configuring the Controllers folder to include a class, named Client-Controller. Which of the following actions should you take NEXT?

 

A.

You should consider configuring the Client-Controller to include the Edit method.

B.

You should consider configuring the Client-Controller to include the Run method.

C.

You should consider configuring the Client-Controller to include the Client method.

D.

You should consider configuring the Client-Controller to include the Reword method.

 

Correct Answer: A

 

 

QUESTION 112

You are informed that a run-time exception takes place every time a user tries to access a non- existent item from the item page. You are instructed to write code that creates a method that routes the exception to the CustomException.aspx page. Which of the following is the method you should create?

 

A.

The RegisterGlobalFilters method.

B.

The RegisterLocalFilters method.

C.

The JoinGlobalFilters method.

D.

The JoinLocalFilters method.

 

Correct Answer: A

 

 

QUESTION 113

After updating the web.config file to display an alternative version of the site by configuring the necessary HTTP run-time value, you are instructed to make sure that users are presented with appropriate page. Which of the following actions should you take?

 

A.

You should consider inserting and when statement.

B.

You should consider inserting and then statement.

C.

You should consider inserting and why statement.

D.

You should consider inserting and if statement.

 

Correct Answer: D

 

 

QUESTION 114

You have received instructions to apply client-side animations. You want to make sure that the business prerequisites are suitably met. Which of the following should be included in your code?

 

A.

You should consider including the :first-child pseudo-class.

B.

You should consider including the :nth-child pseudo-class.

C.

You should consider including the :nth-last-child(n) pseudo-class.

D.

You should consider including the :last-child pseudo-class.

 

Correct Answer: B

 

 

QUESTION 115

You have been instructed to make sure that the technical prerequisites with regards to scalability are adequately met. To achieve this, it is necessary to access the web.config file to configure session storage. You want to make use of a SessionState mode that stores session state in a process that is separate from the ASP.NET worker process or IIS application pool. Which of the following should you make use of?

 

A.

You should consider making use of the In-process mode.

B.

You should consider making use of the Off mode.

C.

You should consider making use of the SQLServer mode.

D.

You should consider making use of the StateServer mode.

E.

You should consider making use of the Custom mode.

 

Correct Answer: D

 

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

Try Microsoft 70-486 Free Demo