Recertification for MCSD: Web Applications v8.0 (70-494)

Page:    1 / 17   
Total 249 questions

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 : B

You are developing an ASP.NET MVC application that uses forms authentication against a third-party database.
You need to authenticate the users.
Which code segment should you use?


  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D


Answer : C

Explanation: Class ProviderBase -
The provider model is intended to encapsulate all or part of the functionality of multiple
ASP.NET features, such as membership, profiles, and protected configuration.

You are developing an ASP.NET MVC application in a web farm. The application has a page that uploads a customer's photo, resizes it, and then redirects the browser to a page where the new image is displayed along with the final dimensions.
The final dimensions should be available only to the page where the new image is displayed.
You need to store state and configure the application.
What should you do? (To answer, drag the appropriate item to the correct location. Each item 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 :

You are designing an MVC web application.
The view must be as simple as possible for designers who do not have a technical background.
You need to combine two existing models to meet the requirement.
Which component of the MVC framework should you use?

  • A. View
  • B. View Model
  • C. Controller
  • D. Model


Answer : B

You are designing an HTML5 website.
You need to design the interface to make the content of the web page viewable in all types of browsers, including voice recognition software, screen readers, and reading pens.
What should you do? (Each correct answer presents a complete solution. Choose all that apply.)

  • A. Annotate HTML5 content elements with Accessible Rich Internet Application (ARIA) attributes.
  • B. Convert HTML5 forms to XForms.
  • C. Ensure that HTML5 content elements have valid and descriptive names.
  • D. Use HTML5 semantic markup elements to enhance the pages.
  • E. Use Resource Description Framework (RDF) to describe content elements throughout the entire page.


Answer : A,D

You are building an ASP.NET MVC web application.
The application will be viewed by users on their mobile phones.
You need to ensure that the page fits within the horizontal width of the device screens.
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 segments to the correct targets.
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 :

You are developing an ASP.NET MVC application that will run on Azure.
The application uses Event Tracing for Windows (ETW) for logging operations.
You need to retrieve the ETW data for the application from a deployed Azure instance by using the Azure Diagnostics API.
Which data source should you use?

  • A. Azure Diagnostic infrastructure logs
  • B. Windows event logs
  • C. performance counters
  • D. .NET EventSource


Answer : D

Explanation: Azure Diagnostics 1.2 and 1.3 are Azure extensions that enable you to collect diagnostic telemetry data from a worker role, web role, or virtual machine running in
Azure.
Diagnostics 1.2 and 1.3 enable the collection of ETW and .NET EventSource events.
Example:
EtwProviders>
<EtwEventSourceProviderConfiguration provider="SampleEventSourceWriter" scheduledTransferPeriod="PT5M">
<Event id="1" eventDestination="EnumsTable"/>
<Event id="2" eventDestination="MessageTable"/>
<Event id="3" eventDestination="SetOtherTable"/>
<Event id="4" eventDestination="HighFreqTable"/>
<DefaultEvents eventDestination="DefaultTable" />
</EtwEventSourceProviderConfiguration>
</EtwProviders>
Reference: Enabling Diagnostics in Azure Cloud Services and Virtual Machines https://azure.microsoft.com/sv-se/documentation/articles/cloud-services-dotnet-diagnostics/

You 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?

  • A. @media screen and (width >= 500px) { }
  • B. @media screen and (min-width: 500px) { }
  • C. @media screen(min-width: 500px, max-width: 1000px) { }
  • D. @media resolution(min-width: 500px) { }


Answer : B

Explanation: http://www.javascriptkit.com/dhtmltutors/cssmediaqueries.shtml

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 : C

You are optimizing an Internet-facing website for search engine optimization.
You are reading a Site Analysis Report from the SEO Toolkit. The report returns warnings that indicate the website HTML lacks key information necessary for search engine indexing.
You need to improve the optimization of the site.
What should you do? (To answer, select the appropriate option from the drop-down list in the answer area.)




Answer :

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. Ngen.exe
  • C. Aspnet_merge.exe
  • D. EdmGen.exe


Answer : A

Explanation: http://msdn.microsoft.com/en-us/library/zhhddkxy(v=vs.100).aspx

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 : A

You 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.cshtml
You 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 :

Explanation:

http://techbrij.com/1013/display-mode-mobile-tablet-tv-aspnet-mvc

You 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. Basic
  • B. Windows
  • C. Forms
  • D. Kerberos


Answer : B

Explanation: http://msdn.microsoft.com/en-us/library/aa292114(v=vs.71).aspx

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 : A

Page:    1 / 17   
Total 249 questions