[Free] Get all latest Microsoft 70-492 Actual Tests 91-100

Ensurepass

QUESTION 91

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?

 

clip_image002

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: C

 

 

QUESTION 92

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

 

 

QUESTION 93

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.)

 

clip_image004

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: AD

 

 

QUESTION 94

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?

 

clip_image006

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: A

 

 

QUESTION 95

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

 

 

QUESTION 96

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

 

 

QUESTION 97

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

 

clip_image008

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: B

 

 

QUESTION 98

HOTSPOT

You need to implement the mobile device support requirements. How should you build the ProcessRequest method? (To answer, select the appropriate options in the answer area.)

 

clip_image010

 

y

 

clip_image012

 

Correct Answer:

clip_image014

 

 

 

 

Case Study 4, ASP.NET MVC application in Visual Studio 2012

 

Background

You are developing an ASP.NET MVC application in Visual Studio 2012 that will be used to process orders.

 

Business Requirements

The application contains the following three pages:

clip_image016A page that queries an external database for orders that are ready to be processed. The user can then process the order.

clip_image016[1]A page to view processed orders.

clip_image016[2]A page to view vendor information.

 

The application consumes three WCF services to retrieve external data.

 

Technical Requirements

 

Visual Studio Solution:

The solution contains the following four projects.

 

clip_image016[3]ExternalQueue: A WCF service project used to communicate with the external order database.

clip_image016[4]OrderProcessor: An ASP.NET MVC project used for order processing and logging order metadata.

clip_image016[5]OrderUpload: A WCF service project used to submit order data to an external data source.

clip_image016[6]Shipping: A WCF service project used to acquire shipping information.

 

ExternalQueue Project:

Entity Framework is used for data access. The entities are defined in the ExternalOrders.edmx file as shown in the following diagram.

 

clip_image017

 

The project contains two services defined in the following files.

 

clip_image016[7]IExternalQueueService.es

clip_image016[8]ExternalQueueService.svc.

 

The ExternalQueue.Helpers namespace contains a definition for a class named OrderNotFoundException.

 

OrderProcessor Project:

Entity Framework is used for data access. The entities are defined in the ProcessedOrders.edmx file as shown in the following diagram.

 

clip_image018

 

The classes are contained in the OrderProcessor.Entities namespace. The project contains the following two controllers.

 

clip_image016[9]InboundQueueController.es

clip_image016[10]ProcessedOrderController.es

 

WCF service proxies to the ExternalQueue, Shipping and OrderUpload services have been generated by using the command prompt. The ExecuteCommandProcedure() method in the

ExternalQueueService.svc file must run asynchronously.

 

The ProcessedOrderController controller has the following requirements:

 

clip_image016[11]The GetVendorPolicy() method must enforce a 10 minute absolute cache expiration policy.

clip_image016[12]The GetProcessedOrders() method must return a view of the 10 most recently processed orders.

 

OrderUpload Project:

The project contains two services defined in the following files.

 

clip_image016[13]IUploadCallbackService.es

clip_image016[14]UploadCallbackService.svc

 

Data Access is maintained in a file named UploadOrder.es.

 

Shipping Project:

Entity Framework is used for data access. The entities are defined in the ExternalOrders.edmx file as shown in the following diagram.

 

clip_image019

 

The Custom Tool property for ExternalOrders.edmx has been removed.

POCO classes for the Entity Model are located in the ShippingAddress.es file. The POCO entity must be loaded by using lazy loading.

The project contains two services defined in the following files.

 

clip_image016[15]IShippingService.es

clip_image016[16]ShippingService.svc.

 

The IShippingService contract must contain an operation that receives an order number as a parameter. The operation must return a class named ShippingInfo that inherits from a class named State.

 

Application Structure

clip_image020

 

clip_image022

 

clip_image024

clip_image026

 

clip_image028

clip_image029

clip_image030

 

clip_image031

 

 

QUESTION 99

DRAG DROP

The GetQueueItems() action in the InboundQueueController controller is not populating the view with data. The action must populate the view with data by calling the

GetExternalOrders() method in the ExternalQueueService service using the ChannelFactory class. You need to modify the action to populate the view with data. What should you do? (To answer, drag the appropriate code segments to the correct location or locations in the answer area. Each code segment 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_image033

 

Correct Answer:

clip_image035

 

 

QUESTION 100

DRAG DROP

You add a class named ShippingInfo. You need to modify the IShippingService interface and the ShippingInfo class to meet the technical requirements. What should you do? (To answer, drag the appropriate code segments to the correct location or locations in the answer area. Each code segment 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_image037

 

Correct Answer:

clip_image039

 

Instant Access to Download Testing Software & PDF File for Microsoft 70-492 Real Exam

Instant Access to Try Microsoft 70-492 Free Demo

This entry was posted in 70-492 Actual Tests and tagged , , , , , . Bookmark the permalink.