Recertification for MCSD: Web Applications
Question No: 91 – (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?
Azure In-Role Cache
Azure Redis Cache
Azure Managed Cache Service
Reference: How to Use Azure Redis Cache
Question No: 92 HOTSPOT – (Topic 4)
You are developing an ASP.NET MVC 4 application. You are using IntelliTrace to debug the application. You configure IntelliTrace as shown in the screenshot below.
To answer, make the appropriate selections in the answer area.
Configure IntelliTrace event collection Box 2:
Question No: 93 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.
Target2: enableClientBasedCulture Target3: uiCulture
When the EnableClientBasedCulture property is enabled, the Culture and UICulture properties are based on the AcceptLanguage header field value that is sent by the client browser. If the AcceptLanguage header value cannot be mapped to a specific culture, the Culture and UICulture values are used. The default value is false.
The following combination of attributes is used in the globalization section: culture=quot;autoquot;, uiCulture=quot;autoquot;, enableClientBasedCulture=quot;truequot;, e.g.:
lt;globalization uiCulture=quot;autoquot; culture=quot;autoquot; enableClientBasedCulture=quot;truequot;gt;
Question No: 94 – (Topic 4)
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 state server
A web garden on the web servers
An InProc session
Question No: 95 – (Topic 4)
You are developing an ASP.NET MVC application that uses forms authentication to verify that the user is logged in.
Authentication credentials must be encrypted and secure so no user identity is exposed. You need to ensure that user credentials are persisted after users log on.
Where should you store the credentials? (Each correct answer presents a complete solution. Choose all that apply.)
In Session on the server
In a cookie stored in the browser
In ViewData in the application
In TempData on the server
Question No: 96 DRAG DROP – (Topic 4)
You are developing an ASP.NET MVC application that allows users to log on by using a third-party authenticator.
You need to configure Microsoft Azure Access Control Services and the application.
Which five actions should you perform in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
Box 1: Create a service namespace
Box 2: Register the application as a relaying partner.
Box 3: Add a Security Token Service (STS) reference in Visuall Studio 2012. Box 4: Add the third-party as the identity provider.
Box 5: Generate provider rules for claims
Question No: 97 DRAG DROP – (Topic 4)
You are developing an ASP.NET MVC web application that requires HTML elements to take on new behaviors. These should be implemented with a behavior script in a page that is only for Microsoft Internet Explorer users.
The colorchange.js script uses the Microsoft CSS vendor-specific Behavior extension. You need to apply the script with CSS.
You need to use the script to change the color of text. You have the following markup:
Which styles should you include in Target 1 and Target 2 to complete the markup? (To answer, drag the appropriate styles to the correct targets. Each style 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.)
Question No: 98 DRAG DROP – (Topic 4)
You are developing an ASP.NET MVC application in Visual Studio 2012. The application processes data for a bakery and contains a controller named BagelController.es that has several actions. The GetBagel action is defined in the following code segment.
The GetBagel action is the only action that should be accessed via a URL pattern. Routes to the other actions in the controller must be suppressed.
The default route must map to HomeController and the Index action. You need to build the routes.
Which three code segments should you use in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
Question No: 99 – (Topic 4)
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:
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.)
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?
ViewBag.LocaIizedCurrency = Resources.ProductDictionary.Currency;
VievBag.LocalizedCurrency = HttpContext.GetGlobalResourceObject(quot;ProductDictionaryquot;, quot;Currencyquot;, new System.Globalization.CultureInfo(Menquot;));
VievBag.LocalizedCurrency = HttpContext.GetLocalResourceObject(quot;ProductDictionaryquot;, quot;Currencyquot;);
ViewBag.LocalizedCurrency = HttpContext.GetGlobalResourceObject(quot;ProductDictionaryquot;, quot;Currencyquot;);
Question No: 100 – (Topic 4)
You are developing an ASP.NET MVC application that enables you to edit and save a student object.
The application must not retrieve student objects on an HTTP POST request. You need to implement the controller.
Which code segment should you use? (Each correct answer presents a complete solution. Choose all that apply.)
|Lowest Price Guarantee||Yes||No||No|
|Free VCE Simulator||Yes||No||No|