Microsoft 70-492 - Upgrade your MCPD: Web Developer 4 to MCSD: Web Applications Exam

Question #11 (Topic: Topic 1)
You 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.resx
Each 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.)
[Microsoft-70-492-6.0/Microsoft-70-492-14_2.png]
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?
A. ViewBag.LocaIizedCurrency = Resources.ProductDictionary.Currency; B. VievBag.LocalizedCurrency = HttpContext.GetGlobalResourceObject("ProductDictionary", "Currency", new System.Globalization.CultureInfo(Men")); C. VievBag.LocalizedCurrency = HttpContext.GetLocalResourceObject("ProductDictionary", "Currency"); D. ViewBag.LocalizedCurrency = HttpContext.GetGlobalResourceObject("ProductDictionary", "Currency");
Answer: A
Question #12 (Topic: Topic 1)
You are developing an ASP.NET MVC application. The application is deployed in a web
farm and is accessed by many users.
The application must handle web server failures gracefully. The servers in the farm must
share the state information.
You need to persist the application state during the session.
What should you implement?
A. A state server B. Cookieless sessions C. A web garden on the web servers D. An InProc session
Answer: A
Question #13 (Topic: Topic 1)
You are developing an ASP.NET MVC application that uses forms authentication. The user
database contains a user named OrderAdmin.
You have the following requirements:
? You must allow all users to access the GetOrders method.
? You must restrict access to the EditOrder method to the user named OrderAdmin.
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.)
[Microsoft-70-492-6.0/Microsoft-70-492-15_2.png]
[Microsoft-70-492-6.0/Microsoft-70-492-16_2.png]
[Microsoft-70-492-6.0/Microsoft-70-492-16_3.png]
[Microsoft-70-492-6.0/Microsoft-70-492-17_2.png]
A. Option A B. Option B C. Option C D. Option D
Answer: A,B
Question #14 (Topic: Topic 1)
You 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.)
A. Application state B. Session state C. Database support D. Profile properties
Answer: A,C
Question #15 (Topic: Topic 1)
You 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, select the appropriate option from
the drop-down list in the answer area.)
[Microsoft-70-492-6.0/Microsoft-70-492-18_2.png]
[Microsoft-70-492-6.0/Microsoft-70-492-19_2.png]
Answer: [Microsoft-70-492-6.0/Microsoft-70-492-20_2.png]
Download Exam
Page: 3 / 26
Total 129 questions