Ensurepass

QUESTION 31

You are creating a new authentication system that uses an HTTP header value. The existing authentication system must continue to operate normally. You need to implement the custom authentication. What should you do? (Each correct answer presents a complete solution. Choose all that apply.)

 

A.

Create a class derived from ActionResult and check for a valid HTTP header value in the ExecuteResult method. Change all actions to return this new class.

B.

Create an HttpHandler to check for a valid HTTP header value in the ProcessRequest method.

C.

Create an HttpModule and check for a valid HTTP header value in the AuthenticateRequest event.

D.

Create a class derived from AuthorizeAttribute and check for a valid HTTP header value in the AuthorizeCore method. Change usages of the existing AuthorizeAttribute to use the new class.

 

Correct Answer: CD

 

 

QUESTION 32

HOTSPOT

The designer for the website gave you the following image as the design for the page.

 

image057

 

The normal color for the tab is *2da4c2, and the color when the mouse is over the tab is #ffd800.

 

The HTML that implements the navigation tab is as follows.

 

image058

 

You need to implement the design.

 

What should you do? (To answer, select the appropriate options in the answer area.)

 

image059

image061

 

Correct Answer:

image063

QUESTION 33

You need to maximize performance of video delivery. Which code segment should you use as the body of the GetVideoStream function in the Video-Controller class?

 

image065

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: D

 

 

 

QUESTION 34

The transcode.exe utility activates its license online when it is installed. You need to ensure that the registration of the transcode utility is handled as specified in its license. Which method should you add to the TranscodeWorkerRole class?

 

image067

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: D

 

 

QUESTION 35

DRAG DROP

You need to ensure that the transcode.exe utility is installed before the worker role starts. How should you implement the startup task? (To answer, drag the appropriate values to the correct element or attribute. Each value 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.)

 

image069

 

Correct Answer:

image071

 

 

 

QUESTION 36

You need to ensure that all customers can delete videos regardless of their browser capability. Which code segment should you use as the body of the SendAsync method in the DeleteHandler class?

 

image073

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: B

 

 

QUESTION 37

You are developing an ASP.NET MVC application that uses forms authentication. The user database contains a user named LibraryAdmin.

 

You have the following requirements:

 

image075You must allow all users to access the GetBook method.

image075[1]You must restrict access to the EditBook method to the user named LibraryAdmin.

 

You need to implement the controller to meet the requirements.

 

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

 

image077

 

image079

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: AC

 

 

QUESTION 38

DRAG DROP

You are developing an ASP.NET MVC application that takes customer orders. Orders are restricted to customers with IP addresses based in the United States. You need to implement a custom route handler. How should you implement the route handler? (To answer, drag the appropriate line of code to the correct location or locations. Each line of code 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.)

 

image081

 

Correct Answer:

image083

 

 

QUESTION 39

You are designing an HTML5 website. You need to design the interface to make the content of the web page viewable in all types of browsers, including voice recognition software, screen readers, and reading pens. What should you do? (Each correct answer presents a complete solution. Choose all that apply.)

 

A.

Annotate HTML5 content elements with Accessible Rich Internet Application (ARIA) attributes.

B.

Convert HTML5 forms to XForms.

C.

Ensure that HTML5 content elements have valid and descriptive names.

D.

Use HTML5 semantic markup elements to enhance the pages.

E.

Use Resource Description Framework (RDF) to describe content elements throughout the entire page.

 

Correct Answer: AD

 

 

QUESTION 40

DRAG DROP

You are developing an ASP.NET MVC web application in Visual Studio 2012. The application has a model named ReservationLocation that contains properties named City and State. The view that displays reservations has a single text box named loc for entering the location information. The location is entered as city, state. There are action methods that have ReservationLocation as a parameter type. You need to ensure that the City and State properties are correctly populated. How should you implement model binding for the ReservationLocation type? (To answer, drag the appropriate code segment to the correct location or locations. 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.)

 

image085

 

Correct Answer:

image087

 

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

Try Microsoft 70-486 Free Demo