Q51. DRAG DROP - (Topic 1) 

You need to ensure that only valid parameters are passed to the EditLog action. 

How should you build the route? (To answer, drag the appropriate code segments 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.) 

Answer: 


Q52. HOTSPOT - (Topic 4) 

You are developing an ASP.NET MVC web application that enables users to open Microsoft Excel files. 

The current implementation of the ExcelResult class is as follows. 

You need to enable users to open Excel files. 

How should you implement the ExecuteResult method? (To answer, select the appropriate options in the answer area.) 

Answer: 


Q53. - (Topic 2) 

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. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Q54. - (Topic 4) 

You are developing an ASP.NET MVC news aggregation application that will be deployed to servers on multiple networks. 

The application must be compatible with multiple browsers. A user can search the website for news articles. You must track the page number that the user is viewing in search results. 

You need to program the location for storing state information about the user's search. 

What should you do? 

A. Store search results and page index in Session. 

B. Use Application state to store search terms and page index. 

C. Use QueryString to store search terms and page index. 

D. Store search results and page index in TempData 

Answer:


Q55. HOTSPOT - (Topic 4) 

You are developing an ASP.NET MVC application. The application includes the following code. Line numbers are included for reference only. 

You add the following markup to the system.web section of the web.config file: 

For each of the following statements, select Yes if the statement is true. Otherwise, select No. 

Answer: 


Q56. - (Topic 4) 

You are developing an ASP.NET MVC application that will be deployed to servers on multiple networks. 

The application must be compatible with multiple browsers. You must track the page number that the user is viewing in search results. 

You need to program the location for storing state information. 

Where should you persist state information? 

A. Session 

B. QueryString 

C. Application 

D. TempData 

Answer:


Q57. - (Topic 3) 

You need to ensure that developers can connect to a Windows Azure role by using RDP. 

What should you do? 

A. Export a certificate without a private key. Upload the .cer file to the Management Certificates section on the Azure Management Portal. 

B. Export a certificate with a private key. Upload the .pfx file to the Management Certificates section on the Azure Management Portal. 

C. Export a certificate without a private key. Upload the .cer file to the Certificates section under the TranscodeWorkerRole hosted service on the Azure Management Portal. 

D. Export a certificate with a private key. Upload the .pfx file to the Certificates section under the TranscodeWorkerRole hosted service on the Azure Management Portal. 

Answer:


Q58. - (Topic 4) 

You are designing a distributed banking application that handles multiple customers. A user may log on to the site to perform activities such as checking balances, performing transactions, and other activities that must be done securely. 

The application must store secure information that is specific to an individual user. The data must be automatically and securely purged when the user logs off. 

You need to save transient information in a secure data store. 

Which data store should you use? 

A. NET session state 

B. NET profile properties 

C. NET application state 

D. Shared database 

Answer:


Q59. - (Topic 4) 

You are authoring unit tests. 

The unit tests must test code that consumes sealed classes. 

You need to create, maintain, and inject dependencies in the unit tests. 

Which isolation method should you use? 

A. T4 text templates and code generation 

B. Stub types 

C. Shim types 

D. Hard-coded implementation 

Answer:

Explanation: http://msdn.microsoft.com/en-us/library/hh549176.aspx 

Shim types are one of two technologies that the Microsoft Fakes Framework uses to let you easily isolate components under test from the environment. Shims divert calls to specific methods to code that you write as part of your test. Many methods return different results dependent on external conditions, but a shim is under the control of your test and can return consistent results at every call. This makes your tests much easier to write. 


Q60. - (Topic 2) 

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. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: C,D

 

26. - (Topic 2) 

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. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: