Home » Latest MCSD 70-486 Real Exam Download Case Study:Shopping Web Application

Latest MCSD 70-486 Real Exam Download Case Study:Shopping Web Application

Ensurepass

Case Study: 2 – Shopping Web Application

clip_image002Scenario 2 Background:

You are developing an online shopping web application.

clip_image002[1]Business Requirements:

clip_image004A user is not required to provide an email address. If a user enters an email address, it must be verified to be a valid email address.

clip_image004[1]Information about the first product on the product page must fade out over time to encourage the user to continue browsing the catalog.

clip_image004[2]Administrators must be able to edit information about existing customers.

clip_image004[3]Administrators also must be able to specify a default product on the product page.

clip_image002[2]Technical Requirements General:

The web store application is in a load-balanced web farm. The load balancer is not configured to use server affinity.

The web store application is an ASP.NET MVC application written in Visual Studio 2012.

Products:

clip_image004[4]The value of the productId property must always be greater than 0.

clip_image004[5]The Products page for mobile devices must display to mobile users. The Products page for desktop devices must display to desktop users.

Storage:

clip_image004[6]The data must be stored in a serialized XML data format.

clip_image004[7]Serialized objects must be schema-independent.

Exception handling:

clip_image004[8]Exceptions originating from IIS must display a page with support contact information.

clip_image004[10]Some page links expire, and users who access these links encounter 404 errors.

clip_image004[9]Exceptions must be logged by using the WriteLog method of the Utility class.

Browser and device support:

clip_image004[11]The application must support image format conversions from .bmp to .jpeg for mobile devices.

clip_image004[12]The application must support image format conversions from .bmp to .png for desktop devices.

clip_image002[3]Application Structure:

clip_image005

clip_image008


QUESTION 1

You need to ensure that new customers enter a valid email address. Which code should you use? (Each correct answer presents part of the solution. Choose all that apply.)

A. clip_image009

B. clip_image010

C. clip_image011

D.clip_image012

Correct Answer: BD

Explanation/Reference:


QUESTION 2

You are designing a Windows Communication Foundation (WCF) service that uses the Product class. You need to update the class to meet the storage requirement. What should you do? (Each correct answer presents part of the solution. Choose all that apply.)

A. Mark the Product class with the DataContract attribute.

B. Mark the public members of the Product class with the DataContractFormat attribute.

C. Mark the Product class with the CollectionDataContract attribute.

D. Mark the public members of the Product class with the DataMember attribute.

Correct Answer: AD

Explanation/Reference:


QUESTION 3

You need to implement the requirements for handling IIS errors. What should you do?

A. clip_image013

B. clip_image014

C. clip_image015

D.clip_image016

Correct Answer: A

Explanation/Reference:


QUESTION 4

You need to add a method to the ProductController class to meet the exception handling requirements for logging. Which code segment should you use?

A. clip_image017

B. clip_image018

C. clip_image019

D. clip_image020

Correct Answer: A

Explanation/Reference:


QUESTION 5

An advertising campaign was recently launched. Some of the ads contain a link to products that no longer exist or have IDs that have changed. You need to ensure that all product links display a product. Which code segment should you use to configure the route?

A. clip_image021

B. clip_image022

C. clip_image023

D.clip_image024

Correct Answer: A

Explanation/Reference:


QUESTION 6

You need to modify the application to meet the productId requirement. What should you do?

A. Modify the RegisterGlobalFilters method of the Global.asax.es file as follows.

Contract.Assume<ArgumentException>(productId != 0);

B. Modify the GetDealPrice method of ProductController as follows.

Contract.Requires<ArgumentException>(productId > 0);

C. Modify the RegisterGlobalFilters method of the Global.asax.es file as follows.

Contract.Requires<ArgumentException>(productId > 0);

D. Modify the GetDealPrice method of ProductController as follows.

Contract.Assume<ArgumentException>(productId > 0);

Correct Answer: B

Explanation/Reference:


QUESTION 7

You need to implement the business requirements for managing customer data. What should you do? (Each correct answer presents part of the solution. Choose all that apply.)

A. Add a class named Customer-Controller to the Controllers folder. Then add a method named Edit to the class.

B. Create a new controller named Administration in the Controllers folder. Add an action named EditCustomer to the controller.

C. Add a folder named Customer to the Views folder. Then create a view inside this folder named Edit. aspx.

D. Create a new folder named EditCustomer to the Views folder. In the new folder, create a new file named Administration.aspx.

Correct Answer: AC

Explanation/Reference:


QUESTION 8

When users attempt to retrieve a product from the product page, a run-time exception occurs if the product does not exist. You need to route the exception to the CustomException.aspx page. Which method should you add to MvcApplication?

A. clip_image025

B. clip_image026

C. clip_image027

D. clip_image028

Correct Answer: B

Explanation/Reference:


QUESTION 9

You updated the web.config file with the HTTP run-time value required to display an alternative version of the site. You need to ensure that the correct page displays to the users. Which code segment should you

use to update the controller?

A. If (Request.IsTabletDevice)

B. If (Request.Browser.IsBrowser("Mobile"))

C. If (Request.UserAgent["Tablet"])

D. If (Request.Browser.IsMobileDevice)

Correct Answer: D

Explanation/Reference:


QUESTION 10

You need to implement client-side animations according to the business requirements. Which line of code should you use? (Each correct answer presents a complete solution. Choose all that apply.)

A. $("body h1:nth-child(1)").fadeIn(1000);

B. $("body h1:nth-child(1)").fadeOut(1000);

C. $("body h2:nth-child(1)").animate({ opacity: 0 });

D. $("body h1:nth-child(1)").animate({ opacity: 1 });

Correct Answer: BC

Explanation/Reference:


QUESTION 11

You need to implement client-side animations according to the business requirements. Which line of code should you use? (Each correct answer presents a complete solution. Choose all that apply.)

A. $ ("h1: first") .animate ({ opacity: 0 });

B. $("h1:first").fadeIn(1000);

C. $("h1:first").animate({ opacity: 1 });

D. $("h1:first").fadeOut(1000);

Correct Answer: AD

Explanation/Reference:


QUESTION 12

You need to configure session storage in the web.config file to meet the technical requirements for scalability. Which SessionState mode should you use? (Each correct answer presents a complete solution. Choose all that apply.)

A. StateServer

B. InProc

C. AutoDetect

D. SqlServer

Correct Answer: AD

Explanation/Reference:


QUESTION 13

You need to update the routes to ensure that a product is always displayed on the product page. Which code segment should you use?

A. clip_image029

B. clip_image030

C. clip_image031

D. clip_image032

Correct Answer: B

Explanation/Reference:


QUESTION 14

The GetDealPrice method must be called by using Ajax. You need to get the price of a product by using the GetDealPrice method of the ProductController. Which code segment should you use? (Each correct answer presents a complete solution. Choose all that apply.)

A.clip_image033

B. clip_image034

C. clip_image035

D.clip_image036

Correct Answer: CD

Explanation/Reference:

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

HOT EXAM!
Latest MCSD 70-486 Real Exam Download Case Study:Video Transcoding Service
Latest MCSD 70-486 Real Exam Download Case Study: Olympic Marathon Runners

Name of author

Name: admin