Question No: 81 DRAG DROP – (Topic 4)

The application contains an area that is defined as shown in the following graphic.

The ActionLink method must invoke the GetOrders() action in ExternalOrderController. You need to configure the parameters of the ActionLink method.

You have the following markup.

Which markup segments should you include in Target 1, Target 2 and Target 3 to complete the markup? To answer, drag the appropriate markup segment to the correct targets. Each markup 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.

Answer:

Explanation:

Target 1: “GetOrders”,

Target 2: “ExternalOrderController”,

Target 3: External,

Target 1: the action is getOrders

Target 2: the controller is ExternalOrderController Target 3: The area is External

Question No: 82 DRAG DROP – (Topic 4)

You are developing an ASP.NET MVC application in a web farm. The application has a page that uploads a customer#39;s photo, resizes it, and then redirects the browser to a page where the new image is displayed along with the final dimensions.

The final dimensions should be available only to the page where the new image is displayed.

You need to store state and configure the application.

What should you do? (To answer, drag the appropriate item to the correct location. Each item 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.)

Answer:

Question No: 83 DRAG DROP – (Topic 4)

You are developing an ASP.NET MVC application in a web farm. The application has a page that accepts a customer’s order, processes it, and then redirects the browser to a page where the order is displayed along with the shipping information.

The order information should be available only to the page where the order is displayed. You need to store state and configure the application.

What should you do? To answer, drag the appropriate item to the correct location. Each item 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.

Answer:

Explanation:

Target 1: InProc

Target 2: ViewData

* InProc mode, which stores session state in memory on the Web server. This is the default.

Question No: 84 HOTSPOT – (Topic 4)

You are developing an ASP.NET MVC application.

You need to store membership information in a Microsoft SQL Server database.

How should you configure the membership provider? (To answer, select the appropriate options in the answer area.)

Question No: 87 – (Topic 4)

You are designing a distributed application that runs on the Microsoft Azure platform.

The application must store a small amount of insecure global information for all users that does not change frequently.

You need to configure the application to meet the requirements.

Which server-side state management option should you use? Each correct answer presents a complete solution. Choose all that apply.

profile properties of the Microsoft Azure application

Microsoft Azure session state

SQL Database

Microsoft Azure application state

Answer: A

Explanation: In many applications, you want to store and use information that is unique to a user. When a user visits your site, you can use the information you have stored to present the user with a personalized version of your Web application. Personalizing an application requires a number of elements: you must store the information using a unique user identifier, be able to recognize users when they visit again, and then fetch the user information as needed. To simplify your applications, you can use the ASP.NET profile feature, which can perform all of these tasks for you.

Question No: 88 DRAG DROP – (Topic 4)

You are developing an ASP.NET MVC application.

Before an action is executed, information about the action must be written to a log. After results are returned, information about the results also must be written to the log.

You need to log the actions and results. You have the following code:

Which code segments should you include in Target 1, Target 2 and Target 3 to implement the LogActionFilter class? (To answer, drag the appropriate code segments to the correct targets. 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.)

Answer:

Question No: 89 – (Topic 4)

You are developing an ASP.NET MVC application.

The application provides a RESTful API for third-party applications. This API updates the information for a contact by embedding the information in the URL of an HTTP POST.

You need to save the Contact type when third-party applications use the EditContact method.

Which code segment should you use? {Each correct answer presents a complete solution. Choose all that apply.)

Option A

Option B

Option C

Option D

Answer: B,D

Explanation: Basics of RESTful services:

REST stands for Representational State Transfer, it is a simple stateless architecture that runs over HTTP where each unique URL is representation of some resource. There are four basic design principles which should be followed when creating RESTful service:

* Use HTTP methods (verbs) explicitly and in consistent way to interact with resources

(Uniform Interface), i.e. to retrieve a resource use GET, to create a resource use POST, to update a resource use PUT/PATCH, and to remove a resource use DELETE.

Etc.

Question No: 90 HOTSPOT – (Topic 4)

You are developing an ASP.NET MVC 4 application. You are using IntelliTrace to debug the application. You configure IntelliTrace as shown in the screenshot below.