QUESTION 16You are designing a distributed application that runs on the Windows Azure platform.The application must store a small amount of insecure global information 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.)

Answer: BDExplanation:SQL Database provides a relational database management system for Windows Azure and is based on SQL Server technology. With a SQL Database instance, you can easily provision and deploy relational database solutions to the cloud, and take advantage of a distributed data center that provides enterprise-class availability, scalability, and security with the benefits of built-in data protection and self-healing.Session States in Windows Azure.If you are a Web developer, you are probably very familiar with managing user state-that is you are familiar with tracking user activity and actions across several request-response exchanges that occur in Web applications. Since HTTP is a stateless protocol, developers over the years have developed all sorts of means to manage state. You’ll even find an MSDN page providing alternatives and recommendations for state management here. Cookies, hidden fields, and query strings are some client-side options to tracking user state. When it comes to managing that state on the server-side, most Web developers rely on session objects.

QUESTION 17You are developing an ASP.NET MVC application.You need to authenticate clients by using NT LAN Manager (NTLM).Which authentication method should you implement?

A. BasicB. WindowsC. FormsD. Kerberos

Answer: B

QUESTION 18Drag and Drop QuestionYou are developing an ASP.NET MVC application that has pages for users who browse the site with Windows Phone 7.The pages for Windows Phone 7 include the following files:– _Layout.WP7.cshtml– Index.WP7.cshtmlYou need to update the application so that it renders the customized files correctly to Windows Phone 7 users.How should you update the Application_Start method? (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.)Answer:

QUESTION 19You are developing an ASP.NET MVC application.The application must allow users to enter JavaScript in a feedback text box only.You need to disable request validation.What should you do?

A. Apply and set the CausesClientSideValidation attribute on the text box to FALSE.B. Apply and set the ValidateInput attribute on the text box to FALSE.C. Use the HttpRequest.Unvalidated property to read the unvalidated form value.D. Use the HttpRequest.Form property to read the unvalidated form value.

Answer: C

QUESTION 20You are developing an ASP.NET MVC web application for viewing a list of contacts.The application is designed for devices that support changes in orientation, such as tablets and smartphones.The application displays a grid of contact tiles in portrait mode.When the orientation changes to landscape, each tile in the grid expands to include each contact’s details.The HTML that creates the tiled interface resembles the following markup.The CSS used to style the tiles in landscape mode is as follows.If this CSS is omitted, the existing CSS displays the tiles in portrait mode.You need to update the landscape-mode CSS to apply only to screens with a width greater than or equal to 500 pixels.Which code segment should you use?

QUESTION 21Drag and Drop QuestionYou are developing an ASP.NET MVC application in Visual Studio 2012.The application contains sensitive bank account data.The application contains a helper class named SensitiveData.Helpers.CustomEncryptor.The application must not display AccountNumber in clear text in any URL.You need to build the view for the GetAccounts action.How should you build the view? (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.)Answer:

QUESTION 22You 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 decodableYou need to encrypt the passwords that are stored in the web.config file.Which command-line tool should you use?

A. Aspnet_regiis.exeB. Ngen.exeC. Aspnet_merge.exeD. EdmGen.exe

Answer: A

QUESTION 23You are developing an ASP.NET MVC application in Visual Studio 2012.The application supports multiple cultures.The application contains three resource files in the Resources directory:– ProductDictionary.resx– ProductDictionary.es.resx– ProductDictionary.fr.resxEach file contains a public resource named Currency with the localized currency symbol.The application is configured to set the culture based on the client browser settings.The application contains a controller with the action defined in the following code segment.(Line numbers are included for reference only.)You need to set ViewBag.LocalizedCurrency to the localized currency contained in the resource files.Which code segment should you add to the action at line 03?

QUESTION 24You are designing a distributed application.The application must store a small amount of insecure global information 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.)

QUESTION 25Hotspot QuestionYou 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:

QUESTION 26Drag and Drop QuestionYou are developing an ASP.NET MVC application that authenticates a user by using claims-based authentication.The application must:– Use Windows Identity Foundation 4.5.– Support the Windows Azure Access Control Service.You need to implement authentication.How should you build the class constructor? (To answer, drag the appropriate code segment 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.)Answer:

QUESTION 27You are developing an ASP.NET MVC web application that includes the following method.You need to test the GoldMined method.Which unit test should you use?

A. Option AB. Option BC. Option CD. Option D

Answer: D

QUESTION 28You are developing an ASP.NET MVC application.You need to authenticate clients by using an ASP.NET membership database.Which authentication method should you implement?

A. KerberosB. FormsC. BasicD. Windows

Answer: B

QUESTION 29You 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.Click Commands tab and select Debug.

Answer: A

Case Study 1 – Video Transcoding Service (QUESTION 30 – QUESTION 40)BackgroundYou are developing a video transcoding service.This service is used by customers to upload video files, convert video to other formats, and view the converted files. This service is used by customers all over the world.Business RequirementsThe user-facing portion of the application is an ASP.NET MVC application.It provides an interface for administrators to upload video and schedule transcoding.It also enables administrators and users to download the transcoded videos.When videos are uploaded, they are populated with metadata used to identify the video.The video metadata is gathered by only one system when the video upload is complete. Customers require support for Microsoft Internet Explorer 7 and later.The application contains a header that is visible on every page.If the logged-on user is an administrator, then the header will contain links to administrative functions. This information is read from a cookie that is set on the server.The administrative links must not be present if an error condition is present.Technical RequirementsUser Experience:– The front-end web application enables a user to view a list of videos.– The main view of the application is the web page that displays the list of videos.– HTML elements other than the list of videos are changed with every request requiring the page to reload.Compatibility:– Some customers use browsers that do not support the HTTP DELETE verb.– These browsers send a POST request with an HTTP header of X-Delete when the intended action is to delete.Transcoding:– The video transcoding occurs on a set of Windows Azure worker roles.The transcoding is performed by a third-party command line tool named transcode.exe. When the tool is installed, an Environment variable named transcode contains the path to the utility.– A variable named license contains the license key. The license for the transcoding utility requires that it be unregistered when it is not in use.– The transcoding utility requires a significant amount of resources. A maximum of 10 instances of the utility can be running at any one time. If an instance of the role cannot process an additional video, it must not prevent any other roles from processing that video.– The utility logs errors to a Logs directory under the utilities path.– A local Azure directory resource named perf is used to capture performance data.Development:– Developers must use Microsoft Remote Desktop Protocol (RDP) to view errors generated by the transcode.exe utility.– An x509 certificate has been created and distributed to the developers for this purpose.– Developers must be able to use only RDP and not any other administrative functions.Application StructureTranscodeWorkerRole.es

QUESTION 30You need to ensure that developers can connect to a Windows Azure role by using RDP.What should you do?

A. Export a certificate with a private key.Upload the .pfx file to the Management Certificates section on the Azure Management Portal.B. Export a certificate without a private key.Upload the .cer 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 serviceon the Azure Management Portal.D. Export a certificate with a private key.Upload the .pfx file to the Certificates section under the TranscodeWorkerRole hosted serviceon the Azure Management Portal.