Q21. - (Topic 1) 

You need to add an action to RunLogController to validate the users' passwords. Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Q22. DRAG DROP - (Topic 4) 

You are developing an ASP.NET MVC application in Visual Studio. The application supports multiple cultures. 

To set the culture, the application must use the AcceptLanguage header field value sent by the client browser. 

You need to ensure that the application can set the culture. 

You have the following markup in the web.config file: 

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


Q23. DRAG DROP - (Topic 4) 

You are developing an ASP.NET MVC application in Visual Studio. 

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: 


Q24. - (Topic 4) 

You are developing an ASP.NET MVC application by using Visual Studio 2012. 

The application throws and handles exceptions when it runs. 

You need to examine the state of the application when exceptions are thrown. 

What should you do? 

A. From the Debug menu in Visual Studio 2012, select Exceptions. Enable the Thrown check box for Common Language Runtime Exceptions. 

B. From the DEBUG menu in Visual Studio 2012, select Attach to Process. Select the IIS process. 

C. From the Debug menu in Visual Studio 2012, select Exceptions. Disable the User-unhandled check box for Common Language Runtime Exceptions. 

D. From the TOOLS menu in Visual Studio 2012, click Customize. C!ic< tie Commands tab and select Debug. 

Answer:


Q25. - (Topic 4) 

You are developing an ASP.NET MVC application that will be deployed on a web farm. 

Passwords must be stored in the web.config file and must not be readable or in a format 

that is easily decodable. 

You need to encrypt the passwords that are stored in the web.config file. 

Which command-line tool should you use? 

A. Aspnet_regiis.exe 

B. Aspnet_regbrowsers.exe 

C. Aspnet_setreg.exe 

D. Aspnet_compiler.exe 

Answer:


Q26. - (Topic 3) 

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? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Q27. - (Topic 4) 

You are developing an ASP.NET MVC application. 

The application must allow users to enter HTML in a feedback text box only. 

You need to disable request validation. 

What should you do? 

A. Use the HttpRequest.Form property to read the unvalidated form value. 

B. Apply and set the Validatelnput attribute on the controller action to FALSE. 

C. Use the HttpRequest.Unvalidated property to read the unvalidated form value. 

D. Apply and set the CausesValidation attribute on the controller action to FALSE. 

Answer:

Explanation: The HttpRequest.Unvalidated Property provides access to HTTP request values without triggering request validation. 


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

Answer: 


Q29. HOTSPOT - (Topic 2) 

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

Answer: 


Q30. - (Topic 4) 

You are developing a new ASP.NET MVC application that will be hosted on Microsoft Azure. You need to implement caching. 

The caching solution must support the following: 

The cache must be able to store out-of-process ASP.NET session state. 

The cache must be able to store a variety of data types. 

The cache must offer a large amount of space for cached content. 

You must be able to share output cache content across web server instances. 

You need to select a cache solution. 

Which caching solution should you choose? 

A. ASP.NET Caching 

B. Azure In-Role Cache 

C. Azure Redis Cache 

D. Azure Managed Cache Service 

Answer:

Reference: How to Use Azure Redis Cache 

https://azure.microsoft.com/sv-se/documentation/articles/cache-dotnet-how-to-use-azure-redis-cache/