70-494 200 Q&S Recertification for MCSD: Web Applications

How should you build the host?

DRAG DROP
You are developing a self-hosted WCF service that returns stock market information.
The service must be discoverable by any client application.
You need to build the service host.
How should you build the host? (To answer, drag the appropriate code segments 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.)
Select and Place:



Answer Clike
Which isolation level should you use?

You are developing an ASP.NET MVC application that reads and writes data from a SQL Server database.
You need to prevent the application from reading data that is locked by other transactions. You also need to prevent exclusive range locks.
Which isolation level should you use?
A. ReadCommitted
B. Serializable
C. Repeatable
D. ReadUncommitted


Answer Clike
What should you do?

DRAG DROP
You are developing a Windows Azure based web application that provides users the ability to rent training videos. The application is deployed to hosted services in Asia and Europe.
The web application must meet the following requirements:
Video files are large and must be able to be streamed.
Streaming videos requires low latency network connections.
Rental data contains structured information about the user and the video.
Rental permissions are checked every five seconds during video playback.
You need to recommend a storage architecture for the application.
What should you do? (To answer, drag the appropriate technologies to the correct location or locations in the answer area. Each technology 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.)
Select and Place:



Answer Clike
How should you build the expression?

You are developing an application in Visual Studio 2012 to display student information. The application contains the following Entity Framework model.

The application contains a WCF data service named DirectoryService.svc.
You need to create a query expression to display all of the grades for students whose first name is "John"
How should you build the expression?
A. http://localhost:54946/DirectoryService.svc/Students?$filter=FirstName eq ‘John’ &$expand=Grades
B. http://localhost:54946/DirectoryService.svc/Students?$filter=FirstName eq ‘John’/Grades
C. http://localhost:54946/DirectoryService.svc/Students?$filter=FirstName = ‘John’ &$expand=Grades
D. http://localhost:54946/DirectoryService.svc/Grades/Students?$filter=FirstName eq ‘John’


Answer Clike
How should you build the method?

DRAG DROP
You are developing a WCF Data Services service in Visual Studio 2012 to display movie information from a SQL Server database that changes every 24 hours. The service is defined in the following class.

The application contains the following Entity Framework model.

The service must only return data for movies that are currently in theaters.
You need to add a method to the MovieService class to filter the data.
How should you build the method? (To answer, drag the appropriate code segments 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.)
Select and Place:



Answer Clike
What should you do?

You are developing a library to support multiple ASP.NET MVC web applications on a shared server. The library provides implementations of security algorithms.
If a problem with any of the security algorithms is discovered, a new version of the library must be created and deployed. Application downtime during the update must be minimized.
You need to ensure that the new version of the library will be used by all applications as soon as possible.
What should you do?
A. Build the web applications and include the security assembly as an embedded resource. When an update is needed, copy the new assembly to the bin directory for the application.
B. Sign all assemblies in each application with the same key used to sign the security assembly.
When an update is needed, create a new key pair and re-sign all assemblies.
C. Build the security assembly as a netmodule in a shared location.
Use the assembly linker to merge the netmodule into the assemblies for the application.
When an update is needed, update the netmodule in the shared location.
D. Install the security assembly in the Global Assembly Cache (GAC).
When an update is needed, update the assembly in the GAC.


Answer Clike
What should you do?

You develop an ASP.NET MVC application that is secured by using SSL. You are ready to deploy the application to production.
The deployment package must include the installation of the SSL certificate.
You need to configure the deployment package to meet the requirement.
What should you do?
A. Create a web publish pipeline target file with a custom web deploy target.
B. In the Package/Publish settings of the project, select the All Files in this project option.
C. Extend the CopyAllFilesToSingleFolder target in the project file.
D. In the Build Events settings of the project, configure a pre-build event to include the SSL certificate.


Answer Clike
Which tool should you use?

You are developing an ASP.NET MVC application.
Applications can be deployed to remote servers only by administrators who have elevated privileges. The administrators do not have access to Visual Studio 2012.
You need to select a deployment tool to deploy the application to remote servers for testing.
Which tool should you use?
A. Copy Web Site Tool
B. One-Click Publish
C. Publish Web Site Tool
D. Web Deployment Package


Answer Clike
What should you do?

You are preparing to develop a set of libraries for a company.
The libraries must be shared across the company.
You need to create a remote NuGet feed that exposes the libraries.
What should you do? (Each answer presents part of the solution. Choose all that apply.)
A. Install the NuGet.Feed Package.
B. Install the NuGet.Server Package.
C. Configure the Packages folder located in the system.webserver section of the web application’s Web.config.
D. Create a new Empty Web Site in Visual Studio 2012.
E. Configure the Packages folder located in the appSettings section of the web application’s Web.config.
F. Add packages to the Packages folder.
G. Create a new Empty Web Application in Visual Studio 2012.


Answer Clike
Which tool should you use?

You are planning to migrate websites from IIS 6 to IIS 7.5.
You do not have access to SSH or a VPN.
You need to select a deployment tool to securely migrate the websites.
Which tool should you use?
A. RoboCopy
B. Web Deploy
C. Microsoft command-line FTP
D. xCopy


Answer Clike
What should you do?

DRAG DROP
You are developing an ASP.NET MVC Web API image management application.
The application must meet the following requirements:
It must send or receive image data without the use of a buffer.
It must allow up to 4 MB of image data to be received.
It must allow up to 3 MB of image data to be sent.
You need to complete the code to meet the requirements.
What should you do? (To answer, drag the appropriate code segments 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.)
Select and Place:



Answer Clike
Which script segment should you use?

You are developing an ASP.NET MVC web application that contains the following HTML.
<table id= "customer" ></table>
You also have an ASP.NET Web API application that contains a call for retrieving customers.
You must send and retrieve the data in the most compact format possible.
You need to update the HTML for the customers table to contain data from the Web API application.
Which script segment should you use?

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


Answer Clike
What should you do?

DRAG DROP
You are developing an ASP.NET MVC Web API application.
The method names of the Web API must match naming guidelines for RESTful services.
You need to create methods to support standard insert, select, update, and delete operations in an HTTP service.
What should you do? (To answer, drag the appropriate HTTP methods to the correct row in the table in the answer area. Each HTTP method 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.)
Select and Place:



Answer Clike
Which HTTP verb should you use?

You are designing an ASP.NET Web API application.
You need to select an HTTP verb to allow blog administrators to moderate a comment.
Which HTTP verb should you use?
A. GET
B. POST
C. DELETE
D. PUT


Answer Clike
What should you do?

DRAG DROP
You are developing an ASP.NET Web API application that will be consumed by a web browser via a composite application that is served from another web domain.
You need to configure the Web API.
What should you do? (To answer, drag the appropriate XML elements to the correct location or locations in the answer area. Each XML element 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.)
Select and Place:



Answer Clike
Which method should you use?

You need to implement the Get() method in the bookstore Web API application to be able to find books by using an ad hoc query.
Which method should you use?

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


Answer Clike
Which code segments should you include in Target 1, Target 2, Target 3, Target 4 and Target 5 to complete the code?

DRAG DROP
You need to update the GetBook() method to retrieve book data by using ADO.NET.
You have the following code:

Which code segments should you include in Target 1, Target 2, Target 3, Target 4 and Target 5 to complete the code? (To answer, drag the appropriate code segments to the correct targets 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.)
Select and Place:



Answer Clike
Which query expression should you use?

You need to create an OData query expression to return the ten books with the largest number of sales.

Which query expression should you use?
A. Option A
B. Option B
C. Option C
D. Option D


Answer Clike
Which Entity Data Model tool can you use?

You are building an ADO.NET Entity Framework application.
You need to validate the conceptual schema definition language (CSDL), store schema definition language (SSDL), and mapping specification language (MSL) files.
Which Entity Data Model tool can you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. EDM Generator (EdmGen.exe)
B. ADO.NET Entity Data Model Designer
C. Entity Data Model Wizard
D. Update Model Wizard


Answer Clike
What should you do?

DRAG DROP
You are developing an ASP.NET Web API action method.
The action method must return the following JSON in the message body.
{" Name ":" Fabrikam", "Vendor Id": 9823, "Items": ["Apples", "Oranges"] }
You need to return an anonymous object that is serialized to JSON.
What should you do? (To answer, drag the appropriate code segments 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.
Select and Place:



Answer Clike
Which code segment should you use?

The PurchaseOrders.xml file contains all of the purchase orders for the day.
You need to query the XML file for all of the billing addresses.
Which code segment should you use?

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


Answer Clike
Which filter statement should you use?

You need to create an OData filter expression that returns books that match the following characteristics:
Published after 1/1/2000
Have "Science" as the first word
Which filter statement should you use?

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


Answer Clike
Which code segment should you use?

You need to update the ImportBooks() method to use database transactions.
Which code segment should you use?
A. SqlConnection.BeginTransaction(IsolationLevel.RepeatableRead);
B. SqlConnection.BeginTransaction(IsolationLeve.ReadUnconvnited);
C. SqlConneetion.BeginTransaction(IsolationLevel.Serializable);
D. SqlConnection.BeginTransaction(IsolationLevel.Snapshot);


Answer Clike
Which data access technology should you choose?

You need to choose the appropriate data access technology for the cookbook area of the web application.
Which data access technology should you choose?
A. WCF Data Services
B. LINQ to SQL
C. Entity Framework
D. ADO.NET


Answer Clike
What should you do?

You are preparing to write the data access code for the children’s book area of the web site.
You need to review the requirements and identify the appropriate data access technology.
What should you do?
A. Use ADO.NET Entity Framework.
B. Use a Web Service.
C. Use the WCF Data Services.
D. Use LINQ to SQL.


Answer Clike
Which code segments should you include in Target 1, Target 2 and Target 3 to complete the code?

DRAG DROP
An XML file must be produced by the SaveFeaturedBooks() method of the Book class. The schema of the resulting XML file must be identical to the FeaturedBooks.xml file.
You need to write the code to produce the file.
You have the following code:

Which code segments should you include in Target 1, Target 2 and Target 3 to complete the code? (To answer, drag the appropriate code segments to the correct targets 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)
Select and Place:



Answer Clike
Which data access technology should you implement?

You need to choose the appropriate data access strategy for the college textbook area of the web application.
Which data access technology should you implement?
A. ADO.NET
B. Entity Data Model (EDM)
C. WCF Data Services
D. LINQ to SQL


Answer Clike
Which code segment should you use?

You need to configure the server to self-host the bookstore’s Web API application.
Which code segment should you use?

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


Answer Clike
Which type should you use to retrieve the data?

You need to return the list of the top 100 books for the GetTopBooks() method.
Which type should you use to retrieve the data?
A. SqlDataReader
B. DataSet
C. DataTable
D. Data View


Answer Clike
Which code segment should you use?

You need to update the CreateMonthlyTotalsReports() method to use database transactions.
Which code segment should you use?
A. SqlConnection.BeginTransaction(IsolationLevel.ReadCommitted);
B. SqlConnection.BeginTransaction(IsolationLevel.ReadUnconwited);
C. SqlConnection.BeginTransaction(IsolationLevel.Chaos);
D. SqlConnection.BeginTransaction(IsolationLevel.Serializable);


Answer Clike
Which code segment should you use?

The PurchaseOrders.xml file contains all of the purchase orders for the day.
You need to query the XML file for all of the shipping addresses.
Which code segment should you use?

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


Answer Clike
Which data access technology should you choose?

You need to choose the appropriate data access technology for the children’s book area of the web application.
Which data access technology should you choose?
A. Web Service
B. LINQ to SQL
C. ADO.NET Entity Framework
D. WCF Data Services


Answer Clike
What should you do?

DRAG DROP
The UploadOrder() method in the UploadCallbackService service is not implementing the callback behavior defined in the IUploadCallBackService interface.
You need to modify the class to implement the required callback behavior.
What should you do? (To answer, drag the appropriate code segments to the correct location or locations in the answer area. Each code segments 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.)
Select and Place:



Answer Clike
What should you do?

The QueueDetail entity type must inherit from the InboundQueue entity type in the ExternalQueue service project using table-per-type inheritance.
You need to modify the entities in the designer.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Remove the OrderNum property in InboundQueue.
B. Remove the OrderNum property in QueueDetail.
C. Set the QueueDetail BaseType to InboundQueue.
D. Remove the association between the entities.
E. Right-click the entities and validate the table mapping.
F. Set the InboundQueue BaseType to QueueDetail.


Answer Clike
Which code segment can you insert at line EQ45 to achieve this goal?

The DeleteExternalOrder() method in the ExternalQueueService service is not throwing a FaultException exception as defined by the FaultContractAttribute attribute in the IExternatQueueService.cs file.
You need to throw the FaultException exception.
Which code segment can you insert at line EQ45 to achieve this goal? (Each correct answer presents a complete solution. Chose all that apply.)

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


Answer Clike
Which code segment should you use?

DRAG DROP
You need to modify the ExecuteCommandProcedure() method to meet the technical requirements.
Which code segment should you use?
Select and Place:



Answer Clike
Which code segment can you use?

The GetVendors() action in the ProcessedOrderController controller is querying the database each time it is run. The GetVendors() action must query the database only if the cache is null.
You need to add code to the action at line PC33 to cache the data.
Which code segment can you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. cache.Set(new CacheItem("vendorKey", vendors), GetVendorPolicy());
B. cache.Add("vendors", vendors, new CacheItemPolicy());
C. cache.Add(new CacheItem("vendorKey", vendors) , GetVendorPolicy());
D. cache.AddOrGetExisting("vendorKey", context, new CacheItemPolicy());


Answer Clike
Which command should you use?

You need to regenerate the service proxies to include task-based asynchronous method signatures.
Which command should you use?
A. aspnet_regiis.exe /t:code http://localhost:62965/UploadCallbackService.svc
B. svcutil.exe /t:code http://localhost:62965/UploadCallbackService.svc
C. aspnet_compiler.exe /t:code http://localhost:62965/UploadCallbackService.svc
D. aspnet_regiis.exe /t:code http://localhost:62965/UploadService.svc
E. svcutil.exe /t:code http://localhost:62965/UploadService.svc


Answer Clike
Which code segment should you replace line EQ64?

The GetExternalOrder() method in the ExternalQueueService service is throwing a runtime error. The method must query the database for a record that matches the orderNum parameter passed to the method.
You need to modify the queryString string to retrieve the record.
With which code segment should you replace line EQ64?

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


Answer Clike
Which code segments can you insert at line EQ45 to achieve this goal?

The DeleteExternalOrder() method in the ExternalQueueService service is not throwing a FaultException exception as defined by the FaultContractAttribute attribute in the IExternalQueueService.cs file.
You need to throw the FaultException exception.
Which code segments can you insert at line EQ45 to achieve this goal? (Each correct answer presents a complete solution. Chose all that apply)

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


Answer Clike
What should you do?

DRAG DROP
The GetExternalOrders() method must use members of the EntityClient namespace to query the database for all records in the InboundQueue entity.
You need to modify the GetExternalOrders() method to return the correct data.
What should you do? (To answer, drag the appropriate code segments 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.)
Select and Place:



Answer Clike
What should you do?

DRAG DROP
The GetQueueItems() action in the InboundQueueController controller is not populating the view with data. The action must populate the view with data by calling the GetExternalOrders() method in the ExternalQueueService service using the ChannelFactory class.
You need to modify the action to populate the view with data.
What should you do? (To answer, drag the appropriate code segments 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.)
Select and Place:



Answer Clike
What should you do?

DRAG DROP
You need to complete the GetProcessedOrders() action in the ProcessedOrderController controller to meet the requirements.
What should you do? (To answer, drag the appropriate code segments 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.)
Select and Place:



Answer Clike
Which code segment should you use?

You need to modify the ExecuteCommandProcedure() method to meet the technical requirements.
Which code segment should you use?

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


Answer Clike
What should you do?

DRAG DROP
You need to create the ShippingContext class in the ShippingAddress.es file to meet the requirements.
What should you do? (To answer, drag the appropriate code segments 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.)
Select and Place:



Answer Clike
Which code segment should you use as the body of the SaveChanges() method in the FlightInfoContext.es file?

Errors occasionally occur when saving data using the FlightInfoContext ADO.NET Entity Framework context. Updates to the data are being lost when an error occurs.
You need to ensure that data is still saved when an error occurs by retrying the operation. No more than five retries should be performed.
With which code segment should you replace the body of the SaveChanges() method in the FlightInfoContext.es file?

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


Answer Clike
How should you build the method?

DRAG DROP
The GetVendorPolicy() private method in the ProcessedOrderController controller is returning a CacheItemPolicy object with default values. The returned policy must expire if the external file located at C:TriggersVendorTrigger.txt has been modified or the timeout outlined in the technical requirements is reached.
You need to return the policy.
How should you build the method? (To answer, drag the appropriate code segments 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.)
Select and Place:



Answer Clike
Which code segment should you replace line EQ64?

The GetExternalOrder() method in the ExternalQueueService service is throwing a runtime error. The method must query the database for a record that matches the orderNum parameter passed to the method.
You need to modify the queryString string to retrieve the record.
With which code segment should you replace line EQ64?

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


Answer Clike
What should you do?

DRAG DROP
You add a class named ShippingInfo.
You need to modify the IShippingService interface and the ShippingInfo class to meet the technical requirements.
What should you do? (To answer, drag the appropriate code segments 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.)
Select and Place:



Answer Clike
Which code segment should you use as the body of the StreamHistoricalFlights() method in the HistoricalDataLoader.es file?

Transformed historical flight information provided by the RemoteDataStream() method must be written to the response stream as a series of XML elements named Flight within a root element named Flights. Each Flight element has a child element named FlightName that contains the flight name that starts with the two-letter airline prefix.
You need to implement the StreamHistoricalFlights() method so that it minimizes the amount of memory allocated.
Which code segment should you use as the body of the StreamHistoricalFlights() method in the HistoricalDataLoader.es file?

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


Answer Clike
Which code segment should you use?

You are adding a new REST service endpoint to the FlightDataController controller that returns the total number of seats for each airline.
You need to write a LINQ to Entities query to extract the required data.
Which code segment should you use?

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


Answer Clike
What should you use?

You need to load flight information provided by Consolidated Messenger.
What should you use?
A. Office Open XML
B. COM interop
C. OleDbConnection and OleDbDataReader
D. EntityConnection and EntityDataReader


Answer Clike
What should you do?

Historical flight information data will be stored in Windows Azure Table Storage using the FlightInfo class as the table entity.
There are millions of entries in the table. Queries for historical flight information specify a set of airlines to search and whether the query should return only late flights. Results should be ordered by flight name.
You need to specify which properties of the FlightInfo class should be used at the partition and row keys to ensure that query results are returned as quickly as possible.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Use the WasLate property as the row key.
B. Use the Airline property as the row key.
C. Use the WasLate property as the partition key
D. Use the Arrival property as the row key.
E. Use the Airline property as the partition key.
F. Use the Flight property as the row key.


Answer Clike
Which should you use?

You need to load flight information provided by Consolidated Messenger.
Which should you use?
A. SQL Server Data Transformation Services (DTS)
B. EntityTransaction and EntityCommand
C. Office Open XML
D. OleDbConnection and OleDbDataReader


Answer Clike
What should you do?

DRAG DROP
You need to parse flight information from Blue Yonder Airlines. The content of the XML file is shown below.

Some airlines do not specify the timezone of the arrival time. If the timezone is not specified, then it should be interpreted per the business requirements.
You need to implement the LoadFlights() and Parse() methods of the BlueYonderLoader class.
What should you do? (To answer, drag the appropriate code segments to the correct location in the answer area. Each 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.)
Select and Place:



Answer Clike
What should you do?

Data provided by Consolidated Messenger is cached in the HttpContext.Cache object.
You need to ensure that the cache is correctly updated when new data arrives.
What should you do?
A. Ensure that the EffectivePrivateBytesLimit value is greater than the size of the database file.
B. Change the sliding expiration of the cache item to 12 hours.
C. Use the SqlCacheDependency type configured with a connection string to the database file.
D. Use the CacheDependency type configured to monitor the SFTP target folder.


Answer Clike
Which code segment should you use as the body of the SaveChanges() method in the FlightInfoContext.es file?

Errors occasionally occur when saving data using the FlightInfoContext ADO.NET Entity Framework context. Updates to the data are being lost when an error occurs.
You need to ensure that data is still saved when an error occurs by retrying the operation. No more than five retries should be performed.
Which code segment should you use as the body of the SaveChanges() method in the FlightInfoContext.es file?


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


Answer Clike
Which code segment should you use?

You are adding a new REST service endpoint to the FlightDataController controller. It returns flights from the consolidated data sources only for flights that are late.
You need to write a LINQ to Entities query to extract the required data.
Which code segment should you use?

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


Answer Clike
Which configuration setting should you add to the web.config?

DRAG DROP
The service has been deployed to Windows Azure.
Trey Research has provided version 1.3.0.0 of the assembly to support a change in the serialization format. The service must remain available during the transition to the new serialization format.
You need to ensure that the service is using the new assembly.
Which configuration setting should you add to the web.config? (To answer, drag the appropriate configuration elements to the correct location or locations in the answer area. Each configuration element 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.)
Select and Place:



Answer Clike
What should you do?

DRAG DROP
Historical flight information data will be stored in Windows Azure Table Storage using the FlightInfo class as the table entity.
There are millions of entries in the table. Queries for historical flight information specify a set of airlines to search and whether the query should return only late flights. Results should be ordered by flight name.
You need to specify which properties of the FlightInfo class should be used at the partition and row keys to ensure that query results are returned as quickly as possible.
What should you do? (To answer, drag the appropriate properties to the correct location or locations in the answer area. Each property 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.)
Select and Place:



Answer Clike
What should you do?

DRAG DROP
Flight information data provided by Margie’s Travel is updated both locally and remotely. When the data is synced, all changes need to be merged together without causing any data loss or corruption.
You need to implement the Sync() method in the MargiesTravelSync.es file.
What should you do? (To answer, drag the appropriate code segments 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.)
Select and Place:




Answer Clike
Which data access technology should you recommend?

You need to recommend a data access technology to the contractor to retrieve data from the new data source.
Which data access technology should you recommend?
A. LINQ to XML
B. ADO.NET Entity Framework
C. ADO.NET DataSets
D. WCF Data Services


Answer Clike
What should you do?

HOTSPOT
You need to deploy the application to the Windows Azure production environment to meet the business requirements.
What should you do? (To answer, select the appropriate button in the answer area.)
Hot Area:



Answer Clike
What should you do?

DRAG DROP
You need to configure the Windows Azure service definition to enable Consolidated Messenger to upload files.
What should you do? (To answer, drag the appropriate configuration items to the correct location or locations. Each configuration 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.)
Select and Place:



Answer Clike
Which caching solution should you choose?

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 Clike
HOTSPOT

HOTSPOT
You develop a new ASP.NET MVC web application. The application is hosted in an Azure Web Role. It includes the following code. Line numbers are included for reference only.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:



Answer Clike
Which server-side state management option should you use?

You are designing a distributed application that runs on the Microsoft Azure platform.
The application must store a small amount of insecure global information for all users 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. profile properties of the Microsoft Azure application
B. Microsoft Azure session state
C. SQL Database
D. Microsoft Azure application state


Answer Clike
What should you do?

DRAG DROP
You are developing an ASP.NET MVC application in a web farm. The application has a page that accepts a customer’s order, processes it, and then redirects the browser to a page where the order is displayed along with the shipping information.
The order information should be available only to the page where the order 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.
Select and Place:



Answer Clike
Which code segment should you use?

You are developing an ASP.NET MVC application that uses forms authentication against an Oracle 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 Clike
How should you secure the queries?

You are developing an ASP.NET MVC application that uses forms authentication. The application uses SQL queries that display customer order data.
You need to prevent all SQL injection attacks against the application.
How should you secure the queries?
A. Implement parameterization.
B. Pattern check the input.
C. Filter out prohibited words in the input.
D. Escape single quotes on string-based input parameters.


Answer Clike
Which code segments should you include in Target 1, Target 2 and Target 3 to build the view?

DRAG DROP
You are developing an ASP.NET MVC application in Visual Studio. The application contains sensitive bank account data.
The application contains a helper class named SensitiveData.Helpers.CustomEncryptor.

The application contains a controller named BankAccountController with two actions.

The application contains a model named BankAccount, which is defined in the following code segment.

The application must not display AccountNumber in clear text in any URL.
You need to build the view for the GetAccounts action.
You have the following code:

Which code segments should you include in Target 1, Target 2 and Target 3 to build the view? To answer, drag the appropriate code segment to the correct targets. 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.
Select and Place:



Answer Clike
Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 to build the class constructor?

DRAG DROP
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.
You have the following code:

Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 to build the class constructor? To answer, drag the appropriate code segment to the correct targets 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.
Select and Place:



Answer Clike
Which markup segments should you include in Target 1, Target 2 and Target 3 to complete markup?

DRAG DROP
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.
Select and Place:



Answer Clike
How should you complete the relevant code?

HOTSPOT
You develop an ASP.NET MVC application. The application includes a feature that allows users to reset their passwords. The feature is enabled by a ForgotPassword controller method and a corresponding Razor view.
You need to prevent Cross-Site Request Forgery (CSRF) attacks.
How should you complete the relevant code? To answer, select the appropriate code segment from each list in the answer area.
Hot Area:



Answer Clike
What should you do?

You are developing an application that uses many small images.
When the images load, the application runs slowly.
You need to improve the performance of the application.
What should you do?
A. Preload all the images when the application starts to ensure that the images are cached.
B. Convert the images to ICO file format and stream all images on a single connection.
C. Host all images on a Microsoft Azure web role with multiple instances.
D. Combine all the images into a single image and use CSS to create sprites.


Answer Clike
HOTSPOT

HOTSPOT
You are developing an ASP.NET MVC application. The application includes the following code. Line numbers are included for reference only.

You add the following markup to the system.web section of the web.config file:

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:



Answer Clike
Which code segments should you include in Target 1, Target 2 and Target 3 to implement the ExecuteResult method?

HOTSPOT
You are developing an ASP.NET MVC web application that enables users to open Microsoft Excel files.
The current implementation of the ExcelResult class is as follows.

You need to enable users to open Excel files.
You have the following code:

Which code segments should you include in Target 1, Target 2 and Target 3 to implement the ExecuteResult method? To answer, select the appropriate option or options in the answer area.
Hot Area:



Answer Clike
Which code segments should you include in Target 1, Target 2 and Target 3 to implement the LogActionFilter class?

HOTSPOT
You are developing an ASP.NET MVC application.
Before an action is executed, information about the action must be written to a log. After results are returned, information about the results also must be written to the log.
You need to log the actions and results.
You have the following code:

Which code segments should you include in Target 1, Target 2 and Target 3 to implement the LogActionFilter class? (To answer, select the appropriate option from the drop-down list in the answer area.)
Hot Area:



Answer Clike
Which markup segments should you include in Target 1, Target 2 and Target 3 to complete the markup?

DRAG DROP
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.
Select and Place:



Answer Clike
Which code segment should you use?

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

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


Answer Clike
HOTSPOT

HOTSPOT
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.
Hot Area:



Answer Clike
What should you do?

You are developing an ASP.NET MVC application by using Visual Studio.
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. Add the following code to the web.config file of the application.
<customErrors mode="On" >
<error statusCode="404" redirect="CustomErrors.html" />
</customErrors>
B. From the Debug menu in Visual Studio, select Exceptions. Disable the User-unhandled check box for Common Language Runtime Exceptions.
C. Add the following code to the web.config file of the application.
<customErrors mode="On" >
<error statusCode="500" redirect="CustomErrors.html" />
</customErrors>
D. From the Debug menu in Visual Studio, select Exceptions. Enable the Thrown check box for Common Language Runtime Exceptions.


Answer Clike
Which two code segments will achieve the goal?

You develop an ASP.NET MVC application. The application has a controller named PeopleController.cs. The controller has an action method that returns a parent view. The parent view includes the following code. Line numbers are included for the reference only.

The application also contains a partial view named People. The parent view must display the partial view.
You need to add code at line 09 to display the partial view within the parent view.
Which two code segments will achieve the goal? Each correct answer presents a complete solution.
A. @{ Html.RenderPartial("People", Model);}
B. @Html.Partial("People", Model)
C. @Html.Display("People", Model)
D. @Html.Raw("People")


Answer Clike
Which data source should you use?

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 Clike
From which two locations can you download the crash dump?

You are developing an Azure worker role. You enable crash dump collection for the role.
When the role starts, an external application stops responding.
You need to download the crash dump to determine why the application stops responding.
From which two locations can you download the crash dump? Each correct answer presents a complete solution.
A. Azure Blob storage
B. the temp folder on the virtual machine that is running the role instance
C. Azure file storage
D. the DiagnosticStore local resource folder on the virtual machine that is running the role instance


Answer Clike
How should you complete the relevant code?

DRAG DROP
You are developing an ASP.NET web application that uses health monitoring to log events to the Windows Event Log. The application contains a custom event that is defined in the following code segment. Line numbers are included for reference only.

You need to ensure that the event is correctly added to the Windows event log.
How should you complete the relevant code? 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.
Select and Place:



Answer Clike
How should you complete the relevant code?

HOTSPOT
You are developing an ASP.NET MVC application. The layout page of the application references the jQuery library. You develop a view that uses the layout page. The view includes the following markup:

The application includes the following class:

When a user clicks the button, an AJAX call must retrieve the partial view and append it to the newBooks div element.
You need to implement the AJAX request.
How should you complete the relevant code? To answer, select the appropriate code segment from each list in the answer area.
Hot Area:



Answer Clike
Which three actions should you perform?

You need to enable client-side validation for an ASP.NET MVC application.
Which three actions should you perform? Each correct answer presents part of the solution.
A. Attach a custom validation attribute to the model properties that the view uses.
B. Reference the jquery, jquery.validate and jquery.validate.unobtrusive script files in the view.
C. Open the web.config file at the project root, and set the values of the ClientValidationEnabled and UnobtrusiveJavaScriptEnabled keys to True.
D. For each form element, use the Validator.element() method to validate each item.
E. Add data annotations to the model properties that the view uses.


Answer Clike
How should you implement this feature?

You are designing a localized ASP.NET application to support multiple cultures.
You need to ensure that the application can be displayed in several languages.
How should you implement this feature?
A. Use a resource (.resx) file.
B. Include language-specific content in the assembly manifest.
C. Use Systems.Collections.Generics.Dictionary to store alternative translations.
D. Ensure that all strings are marked internal.


Answer Clike
Which code segment should you use?

You are implementing a website redesign of an existing website that provides historical weather condition maps. The current layout resembles the following graphic.

Year selection is implemented as a set of links, which causes the page to reload when the user changes the year. The year selection HTML is contained in a div with an id of "year-changer".
You need to modify the page so that the user can change the year without the page reloading. You also need to ensure that there is minimal change to the design of the page.
Which code segment should you use?

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


Answer Clike
Which data store should you use?

You are designing a distributed application.
The application must store secure information that is specific to an individual user. The data must be automatically purged when the user logs off.
You need to save transient information in a secure data store.
Which data store should you use?
A. Session state
B. Database storage
C. Profile properties
D. Application state


Answer Clike
What should you do?

DRAG DROP
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.)
Select and Place:



Answer Clike
Which three code segments should you use in sequence?

DRAG DROP
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.)
Select and Place:



Answer Clike
Which code segment should you use?

You are implementing a website redesign of an existing website that provides historical weather condition maps.
The current layout resembles the graphic in the exhibit. (Click the Exhibit button.)

Year selection is implemented as a set of links, which causes the page to reload when the user changes the year. The year selection HTML is contained in a div with an id of "year-selector".
You need to modify the page so that the user can change the year without the page reloading.
You also need to ensure that there is minimal change to the design of the page.
Which code segment should you use?

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


Answer Clike
How should you implement this feature?

You are designing a localized ASP.NET MVC online shopping application that will be deployed to customers in the United States, China, France, and Brazil. The application must support multiple cultures so that content in the appropriate language is available in each area.
You need to ensure that the content can be viewed in several languages.
How should you implement this feature?
A. Use a resource (.resx) file to provide translations.
B. Use Systems.Collections.Generics.Dictionary to store alternative translations.
C. Ensure that all strings are marked internal to avoid conflict with internal literals.
D. Include language-specific content in the assembly manifest and use .NET culture libraries.


Answer Clike
Which authorizations should you redesign?

You are designing an enterprise-level Windows Communication Foundation (WCF) application. User accounts will migrate from the existing system. The new system must be able to scale to accommodate the increasing load.
The new servers are experiencing significant stress under load of large-scale role changes.
You need to ensure that the application can handle the stress.
Which authorizations should you redesign? (Each correct answer presents a complete solution. Choose all that apply.)
A. Role-based approach
B. Identity-based approach
C. Resource-based trusted subsystem model
D. Resource-based impersonation/delegation model


Answer Clike
Which markup segments should you include in Target 1, Target 2 and Target 3 to complete the markup?

HOTSPOT
You are developing an ASP.NET MVC application in Visual Studio 2012. 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 the markup? (To answer, select the appropriate options in the answer area.)
Hot Area:



Answer Clike
Which code segment should you use?

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

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


Answer Clike
What should you do?

You are developing an application that uses many small images for various aspects of the interface.
The application responds slowly when additional resources are being accessed.
You need to improve the performance of the application.
What should you do?
A. Preload all the images when the client connects to ensure that the images are cached.
B. Combine all the images into a single image and use CSS to create sprites.
C. Host all images on an alternate server and provide a CDN.
D. Convert the images to .png file format and stream all images on a single connection.


Answer Clike
Which component of the MVC framework should you use?

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 Clike
What should you do?

HOTSPOT
You are using the features of the IIS SEO Toolkit to configure the website.
You need to exclude search engines from indexing parts of website.
What should you do? (To answer, select the appropriate option from the drop-down list in the answer area.)
Hot Area:



Answer Clike
Which code segment should you use?

You are developing a controller for an ASP.NET MVC application that manages message board postings.
The security protection built in to ASP.NET is preventing users from saving their HTML.
You need to enable users to edit and save their HTML while maintaining existing security protection measures.
Which code segment should you use?

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


Answer Clike
Which five actions should you perform in sequence?

DRAG DROP
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.)
Select and Place:



Answer Clike
What should you do?

You are developing an ASP.NET MVC application to be used on the Internet. The environment uses Active Directory with delegation to access secure resources.
Users must be able to log on to the application to maintain their personal preferences.
You need to use the least amount of development effort to enable users to log on.
What should you do?
A. Enable Forms authentication
B. Enable Windows authentication
C. Generate server SSL certificates and install them in IIS
D. Enable Digest authentication


Answer Clike
How should you secure the queries?

You are developing an ASP.NET MVC application that uses forms authentication. The application uses SQL queries that display customer order data.
Logs show there have been several malicious attacks against the servers.
You need to prevent all SQL injection attacks from malicious users against the application.
How should you secure the queries?
A. Check the input against patterns seen in the logs and other records.
B. Escape single quotes and apostrophes on all string-based input parameters.
C. Implement parameterization of all input strings.
D. Filter out prohibited words in the input submitted by the users.


Answer Clike
Which code segment should you use?

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 Clike
What should you use for authorization?

You are designing an enterprise-level Windows Communication Foundation (WCF) application. User accounts will migrate from the existing system. The new system must be able to scale to accommodate the increasing load.
You need to ensure that the application can handle large-scale role changes.
What should you use for authorization? (Each correct answer presents a complete solution. Choose all that apply.)
A. Resource-based trusted subsystem model
B. Identity-based approach
C. Role-based approach
D. Resource-based impersonation/delegation model


Answer Clike
Which markup segments should you include in Target 1, Target 2 and Target 3 to complete the markup?

DRAG DROP
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.)
Select and Place:



Answer Clike
Which styles should you include in Target 1 and Target 2 to complete the markup?

DRAG DROP
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.)
Select and Place:



Answer Clike
Which code segments should you include in Target 1, Target 2 and Target 3 to complete the code of the ViewStart.cshtml file?

DRAG DROP
You are developing an ASP.NET MVC application in Visual Studio 2012. The application will be viewed with browsers on desktop devices and mobile devices. The application uses the Razor View Engine to display data.
The application contains two layouts located in the /Views/Shared directory.
These layouts are named:
_Layout.cshmtl
_MobleLayoutcshtml
The application must detect if the user is browsing from a mobile device. If the user is browsing from a mobile device, the application must use the _MobileLayout.cshtml file. If the user is browsing from a desktop device, the application must use .Layout, cs html.
You need to ensure that the application renders the layout that is appropriate for the browser.
You have the following code:

Which code segments should you include in Target 1, Target 2 and Target 3 to complete the code of the ViewStart.cshtml file? (To answer, drag the appropriate code segments to the correct targets. 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.)
Select and Place:



Answer Clike
Where should you store the credentials?

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.)
A. In Session on the server
B. In a cookie stored in the browser
C. In ViewData in the application
D. In TempData on the server


Answer Clike
What should you do?

You are developing an ASP.NET MVC application that provides instant messaging capabilities to customers.
You have the following requirements:
Messages must be able to be sent and received simultaneously.
Latency and unnecessary header data must be eliminated.
The application must comply with HTML5 standards.
You need to design the application to meet the requirements.
What should you do?
A. Configure polling from the browser.
B. Implement long-running HTTP requests.
C. Implement WebSockets protocol on the client and the server.
D. Instantiate a MessageChannel object on the client.


Answer Clike
Which ADO.NET data access strategy should you use?

You are designing a data-oriented application that features a variety of storage schemas.
The application object model must be mapped to the various storage schemas.
You need to enable developers to manipulate the data.
Which ADO.NET data access strategy should you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. LINQ to SQL
B. Entity Framework
C. DataAdapter
D. DataReader


Answer Clike
Which code segments should you include in Target 1, Target 2 and Target 3 to implement the LogActionFilter class?

DRAG DROP
You are developing an ASP.NET MVC application.
Before an action is executed, information about the action must be written to a log. After results are returned, information about the results also must be written to the log.
You need to log the actions and results.
You have the following code:

Which code segments should you include in Target 1, Target 2 and Target 3 to implement the LogActionFilter class? (To answer, drag the appropriate code segments to the correct targets. 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.)
Select and Place:



Answer Clike
Which code segment should you use?

You are developing an ASP.NET MVC application.
The application provides a RESTful API for third-party applications. This API updates the information for a contact by embedding the information in the URL of an HTTP POST.
You need to save the Contact type when third-party applications use the EditContact method.
Which code segment should you use? {Each correct answer presents a complete solution. Choose all that apply.)

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


Answer Clike
What should you do?

HOTSPOT
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.)
Hot Area:



Answer Clike
Which command-line tool should you use?

You are preparing for the deployment of an ASP.NET MVC application. You need to generate a deployment manifest.
Which command-line tool should you use?
A. Mage.exe
B. Ngen.exe
C. ALexe
D. Resgen.exe


Answer Clike
What should you do?

DRAG DROP
You are developing an ASP.NET MVC application. The application has a view that displays a list of orders in a multi-select list box.
You need to enable users to select multiple orders and submit them for processing.
What should you do? (To answer, drag the appropriate words to the correct targets. Each word 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.)
Select and Place:



Answer Clike
Which tool should you use?

You are developing an ASP.NET MVC application that supports multiple cultures and multiple languages. The application will be sold to international customers.
The ASP.NET MVC application must store localized content in satellite assemblies for multiple languages.
You need to generate the satellite assemblies during an automated build.
Which tool should you use?
A. Gacutil.exe
B. Al.exe
C. Ildasm.exe
D. nasm.exe


Answer Clike
Which data store should you use?

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 Clike
What should you do?

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 Clike
How should you update the Application_Start method?

HOTSPOT
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, select the appropriate option from the drop-down list in the answer area.)
Hot Area:



Answer Clike
Which code segment should you use?

You are developing an ASP.NET MVC web application for viewing a photo album. The application is designed for devices that support changes in orientation, such as tablets and smartphones. The application displays a grid of photos in portrait mode.
When the orientation changes to landscape, each tile in the grid expands to include a description. The HTML that creates the gallery interface resembles the following markup.

If this CSS is omitted, the existing CSS displays the tiles in landscape mode.
You need to update the portrait mode CSS to apply only to screens with a width less than 500 pixels.
Which code segment should you use?
A. @media resolution(max-width: 500px) {
. . .
}
B. @media screen(min-width: Opx, max-width: 500px) {
. . .
}
C. @media screen and (width <= 500px) {
. . .
}
D. @media screen and (max-width: 500px) {
. . .
}


Answer Clike
Which authentication method should you implement?

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


Answer Clike
How should you build the class constructor?

DRAG DROP
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, 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.)
Select and Place:



Answer Clike
Which command-line tool should you use?

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 Clike
Which unit test should you use?

You 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 A
B. Option B
C. Option C
D. Option D


Answer Clike
What should you do?

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 Clike
Which code segment should you add to the action at line 03?

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

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 Clike
What should you do?

You are designing an HTML5 website.
You need to design the interface such that the content is viewable in all types of browsers, including screen readers.
What should you do? (Each correct answer presents a complete solution. Choose all that apply.)
A. Ensure that content elements have valid and descriptive names.
B. Use Resource Description Framework (RDF) to describe content elements.
C. Convert HTML forms to XForms.
D. Use HTML5 semantic markup elements.
E. Annotate content elements with Accessible Rich Internet Application (ARIA) attributes.


Answer Clike
What should you do?

You are developing an ASP.NET MVC web application in Visual Studio 2012. The application requires several thousand content files. All content is hosted on the same IIS instance as the application.
You detect performance issues when the application starts.
You need to resolve the performance issues.
What should you do?
A. Enable compression in IIS.
B. Move the content to a second server.
C. Combine the content files by using ASP.NET MVC bundling.
D. Implement HTTP caching in IIS.


Answer Clike
How should you build the class constructor?

HOTSPOT
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.)
Hot Area:



Answer Clike
How should you configure the membership provider?

HOTSPOT
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.)
Hot Area:



Answer Clike
Which server-side state management option should you use?

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 Clike
What should you implement?

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 short-term state information.
You need to persist the application state during the session.
What should you implement?
A. ASP.NET session state
B. A local database
C. A state server
D. Profile properties


Answer Clike
Where should you persist state information?

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 Clike
How should you implement the ExecuteResult method?

HOTSPOT
You are developing an ASP.NET MVC web application that enables users to open Microsoft Excel files.
The current implementation of the ExcelResult class is as follows.

You need to enable users to open Excel files.
How should you implement the ExecuteResult method? (To answer, select the appropriate options in the answer area.)
Hot Area:



Answer Clike
Which command-line tool should you use?

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 Clike
Which authentication method should you implement?

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 Clike
How should you build the view?

DRAG DROP
You 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.)
Select and Place:



Answer Clike
What should you do?

You 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 Clike
Which server-side state management option should you use?

You 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.)
A. Windows Azure application state
B. SQL Azure
C. Profile properties of the Windows Azure application
D. Windows Azure session state


Answer Clike
How should you update the Application_Start method?

DRAG DROP
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.)
Select and Place:



Answer Clike
Which code segment should you use?

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 Clike
What should you implement?

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 Clike
What should you do?

You are developing an ASP.NET MVC application that displays stock market information.
The stock market information updates frequently and must be displayed in real-time.
You need to eliminate unnecessary header data, minimize latency, and transmit data over a full-duplex connection.
What should you do?
A. Implement long-running HTTP requests.
B. Instantiate a MessageChannel object on the client.
C. Implement WebSockets protocol on the client and the server.
D. Configure polling from the browser.


Answer Clike
What should you do?

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 Clike
What should you do?

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 Exceptions. Disable the User-unhandled check box for Common Language Runtime Exceptions.
C. Add the following code to the web.config file of the application.
<customErrors mode="On" >
<error statusCode="500" redirect="CustomErrors.html" />
</customErrors>
D. Add the following code to the web.config file of the application.
<customErrors mode="On" >
<error statusCode="404" redirect="CustomErrors.html" />
</customErrors>


Answer Clike
Which code segment should you add to the action at line 03?

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:
My Dictionary.resx
MyDictionary.es.resx
MyDictionary.fr.resx
Each file contains a public resource named Title with localized translation.
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.Title to the localized title contained in the resource files.
Which code segment should you add to the action at line 03?
A. ViewBag.Title = HttpContext.GetGlobalResourceObuect("MyDictionary", "Title");
B. ViewBag.Title = HttpContext.GetGlobalResourceObject("MyDictionary", "Title", new System.Globalization.CultureInfo("en"));
C. ViewBag.Title = Resources.MyDictionary.Title;
D. ViewBag.Title = HttpContext.GetLocalResourceObject("MyDictionary", "Title");


Answer Clike
Which template should you use?

You are testing an ASP.NET application.
The test plan requires that tests run against the application’s business layer.
You need to use the test project template that meets this requirement.
Which template should you use?
A. Web Test Project
B. Load Test Project
C. Unit Test Project
D. Coded Test Project


Answer Clike
Which isolation method should you use?

You are authoring unit tests.
The unit tests must test code that consumes sealed classes.
You need to create, maintain, and inject dependencies in the unit tests.
Which isolation method should you use?
A. T4 text templates and code generation
B. Stub types
C. Shim types
D. Hard-coded implementation


Answer Clike
Which unit test should you use?

You are developing an ASP.NET MVC web application that includes the following method.

You need to test the AccountBalance method.
Which unit test should you use?

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


Answer Clike
How should you implement model binding for the ReservationLocation type?

DRAG DROP
You are developing an ASP.NET MVC web application in Visual Studio 2012.
The application has a model named ReservationLocation that contains properties named City and State.
The view that displays reservations has a single text box named loc for entering the location information. The location is entered as city, state.
There are action methods that have ReservationLocation as a parameter type.
You need to ensure that the City and State properties are correctly populated.
How should you implement model binding for the ReservationLocation type? (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.)
Select and Place:



Answer Clike
What should you do?

You are developing an ASP.NET MVC web application in Visual Studio 2012. The application requires several thousand content files. All content is hosted on the same IIS instance as the application.
You detect performance issues when the application starts.
You need to resolve the performance issues.
What should you do?
A. Implement HTTP caching in the ASP.NET MVC controllers.
B. Combine the content files by using ASP.NET MVC bundling.
C. Install a second IIS instance.
D. Move the content to a Windows Azure CDN.


Answer Clike
Which code segment should you use?

You are developing an ASP.NET MVC application that uses forms authentication. The user database contains a user named LibraryAdmin.
You have the following requirements:
You must allow all users to access the GetBook method.
You must restrict access to the EditBook method to the user named LibraryAdmin.
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.)


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


Answer Clike
How should you implement the route handler?

DRAG DROP
You are developing an ASP.NET MVC application that takes customer orders.
Orders are restricted to customers with IP addresses based in the United States.
You need to implement a custom route handler.
How should you implement the route handler? (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.)
Select and Place:



Answer Clike
What should you do?

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 Clike
Which code segment should you use as the body of the SendAsync method in the DeleteHandler class?

You need to ensure that all customers can delete videos regardless of their browser capability.
Which code segment should you use as the body of the SendAsync method in the DeleteHandler class?

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


Answer Clike
Which attribute should you add?

Customers download videos by using HTTP clients that support various content encodings.
You need to configure caching on the DownloadVideo action to maximize performance.
Which attribute should you add?

A. Option A
B. Option B
C. Option C
D. Option D
E. Option E


Answer Clike
Which markup segments should you include in Target 1, Target 2, Target 3, Target 4 and Target 5 to implement the startup task?

DRAG DROP
You need to ensure that the transcode.exe utility is installed before the worker role starts.
You have the following markup:

Which markup segments should you include in Target 1, Target 2, Target 3, Target 4 and Target 5 to implement the startup task? To answer, drag the appropriate markup segments to the correct targets. Each markup segments 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.
Select and Place:



Answer Clike
Which code segment should you use as the body for the CreateController method in AdminVerifierFactory.cs?

You need to ensure that all the MVC controllers are secure.
Which code segment should you use as the body for the CreateController method in AdminVerifierFactory.cs?

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


Answer Clike
What should you do?

You need to ensure that developers can connect to a Microsoft Azure role by using RDP.
What should you do?
A. Export a certificate with a private key. Upload the .pfx file to the Certificates section under the TranscodeWorkerRole hosted service on the Azure Management Portal.
B. Export a certificate with a private key. Upload the .pfx 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 Management Certificates section on the Azure Management Portal.
D. Export a certificate without a private key. Upload the .cer file to the Certificates section under the TranscodeWorkerRole hosted service on the Azure Management Portal.


Answer Clike
Which code segment should you use as the body of the GetVideoStream function in the Video-Controller class?

You need to maximize performance of video delivery.
Which code segment should you use as the body of the GetVideoStream function in the Video-Controller class?

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


Answer Clike
Which method should you add to the TranscodeWorkerRole class?

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 Clike
How should you implement the startup task?

DRAG DROP
You need to ensure that the transcode.exe utility is installed before the worker role starts.
How should you implement the startup task? (To answer, drag the appropriate values to the correct element or attribute. Each value 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.)
Select and Place:



Answer Clike
What should you do?

HOTSPOT
The designer for the website gave you the following image as the design for the page.

The normal color for the tab is *2da4c2, and the color when the mouse is over the tab is #ffd800.
The HTML that implements the navigation tab is as follows.

You need to implement the design.
What should you do? (To answer, select the appropriate options in the answer area.)
Hot Area:



Answer Clike
Which code segment should you use as the body for the CreateController method in AdminVerifierFactory.es?

You need to ensure that all the MVC controllers are secure.
Which code segment should you use as the body for the CreateController method in AdminVerifierFactory.es?

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


Answer Clike
What should you do?

You are creating a new authentication system that uses an HTTP header value.
The existing authentication system must continue to operate normally.
You need to implement the custom authentication.
What should you do? (Each correct answer presents a complete solution. Choose all that apply.)
A. Create a class derived from ActionResult and check for a valid HTTP header value in the ExecuteResult method. Change all actions to return this new class.
B. Create an HttpHandler to check for a valid HTTP header value in the ProcessRequest method.
C. Create an HttpModule and check for a valid HTTP header value in the AuthenticateRequest event.
D. Create a class derived from AuthorizeAttribute and check for a valid HTTP header value in the AuthorizeCore method. Change usages of the existing
AuthorizeAttribute to use the new class.


Answer Clike
Which attribute should you add?

Customers download videos by using HTTP clients that support various content encodings.
You need to configure caching on the DownloadVideo action to maximize performance.
Which attribute should you add?

A. Option A
B. Option B
C. Option C
D. Option D
E. Option E


Answer Clike
What should you do?

You need to ensure that developers can connect to a Windows Azure role by using RDP.
What should you do?
A. Export a certificate without a private key. Upload the .cer file to the Management Certificates section on the Azure Management Portal.
B. Export a certificate with a private key. Upload the .pfx 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 service on the Azure Management Portal.
D. Export a certificate with a private key. Upload the .pfx file to the Certificates section under the TranscodeWorkerRole hosted service on the Azure Management Portal.


Answer Clike
How should you build the ProcessRequest method?

HOTSPOT
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.)
Hot Area:



Answer Clike
Which code segment should you use?

You need to modify the application to meet the productId requirement.
Which code segment should you use?

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


Answer Clike
Which code segment should you use?

The GetDealPrice method must be called by using Ajax.
You need to get the price of a product by using the GetDealPrice method of the ProductController.
Which code segment should you use? (Each correct answer presents a complete solution. Choose all that apply.)

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


Answer Clike
Which code segment should you use?

You need to update the routes to ensure that a product is always displayed on the product page.
Which code segment should you use?

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


Answer Clike
Which line of code should you use?

You need to implement client-side animations according to the business requirements.
Which line of code should you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. $ ("h1: first") .animate ({ opacity: 0 });
B. $("h1:first").fadeIn(1000);
C. $("h1:first").animate({ opacity: 1 });
D. $("h1:first").fadeOut(1000);


Answer Clike
Which SessionState mode should you use?

You need to configure session storage in the web.config file to meet the technical requirements for scalability.
Which SessionState mode should you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. StateServer
B. InProc
C. AutoDetect
D. SqlServer


Answer Clike
Which method should you add to MvcApplication?

When users attempt to retrieve a product from the product page, a run-time exception occurs if the product does not exist.
You need to route the exception to the CustomException.aspx page.
Which method should you add to MvcApplication?

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


Answer Clike
Which code segment should you use to update the controller?

You updated the web.config file with the HTTP run-time value required to display an alternative version of the site.
You need to ensure that the correct page displays to the users.
Which code segment should you use to update the controller?
A. If (Request.IsTabletDevice)
B. If (Request.Browser.IsBrowser("Mobile"))
C. If (Request.UserAgent["Tablet"])
D. If (Request.Browser.IsMobileDevice)


Answer Clike
Which line of code should you use?

You need to implement client-side animations according to the business requirements.
Which line of code should you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. $("body h1:nth-child(1)").fadeIn(1000);
B. $("body h1:nth-child(1)")-fadeOut(1000);
C. $("body h2:nth-child(1)").animate({ opacity: 0 });
D. $("body h1:nth-child(1)").animate({ opacity: 1 });


Answer Clike
What should you do?

You need to implement the business requirements for managing customer data.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Add a class named Customer-Controller to the Controllers folder. Then add a method named Edit to the class.
B. Create a new controller named Administration in the Controllers folder. Add an action named EditCustomer to the controller.
C. Add a folder named Customer to the Views folder. Then create a view inside this folder named Edit.aspx.
D. Create a new folder named EditCustomer to the Views folder. In the new folder, create a new file named Administration.aspx.


Answer Clike
Which code segment should you use to configure the route?

An advertising campaign was recently launched. Some of the ads contain a link to products that no longer exist or have IDs that have changed.
You need to ensure that all product links display a product.
Which code segment should you use to configure the route?

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


Answer Clike
What should you do?

You need to modify the application to meet the productId requirement.
What should you do?
A. Modify the RegisterGlobalFilters method of the Global.asax.cs file as follows.
Contract.Assume<ArgumentException>(productId != 0);
B. Modify the GetDealPrice method of ProductController as follows.
Contract.Requires<ArgumentException>(productId > 0);
C. Modify the RegisterGlobalFilters method of the Global.asax.cs file as follows. Contract.Requires<ArgumentException>(productId > 0);
D. Modify the GetDealPrice method of ProductController as follows.
Contract.Assume<ArgumentException>(productId > 0);


Answer Clike
Which code segment should you use?

You need to add a method to the ProductController class to meet the exception handling requirements for logging.
Which code segment should you use?

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


Answer Clike
What should you do?

You need to implement the requirements for handling IIS errors.
What should you do?

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


Answer Clike
Which code should you use?

You need to ensure that new customers enter a valid email address.
Which code should you use? (Each correct answer presents part of the solution. Choose all that apply.)

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


Answer Clike
What should you do?

You are designing a Windows Communication Foundation (WCF) service that uses the Product class.
You need to update the class to meet the storage requirement.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Mark the Product class with the DataContract attribute.
B. Mark the public members of the Product class with the DataContractFormat attribute.
C. Mark the Product class with the CollectionDataContract attribute.
D. Mark the public members of the Product class with the DataMember attribute.


Answer Clike
Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 to modify RunLogController?

DRAG DROP
You need to implement security according to the business requirements.
You have the following code:

Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 to modify RunLogController? To answer, drag the appropriate code segment to the correct targets. 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.
Select and Place:



Answer Clike
Which code segment should you use?

The RunLog/Views/InsertLog.cshtml view must display the /Images/stopwatch.png image and the "Insert Run Data" header text below the image. The view should resemble the exhibit. (Click the Exhibit button.)

The application must display the image above the field set.
You need to add the HTML code to /Runlog/Views/InsertLog.cshtml to display the image and header text.
Which code segment should you use?

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


Answer Clike
Which line of code should you use to replace line GL21?

You need to display the "miles" unit description after the distance in the GetLog view.
Which line of code should you use to replace line GL21? (Each correct answer presents a complete solution. Choose all that apply.)
A. @log.Distance miles
B. @Htrml.DisplayFor(model => log.Distance) miles
C. @log.Distance.ToString() @Html.TextArea("miles")
D. @Html.DisplayFor(model => log.Distance.ToString() + " miles")


Answer Clike
Which code segment should you use?

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 Clike
Which code segment should you use?

You need to make all of the rows in the table bold in the Views/RunLog/GetLog.cshtml view.
Which code segment should you use?
A. Table > th:last-child { font-weight: bold; }
B. Table+first-child{ font-weight: bold; }
C. Table>tr>th:nth-child{2){font-weight: bold; }
D. Table > tr {font-weight: bold;}


Answer Clike
Which code segment should you add?

If the canvas element is supported by the client browser, the application must display "London 2012" in the footer as text formatted by JavaScript at the end of the _Layout.cshtml file.
You need to modify the layout to ensure that "London 2012" is displayed as either formatted text or as plain text, depending on what the client browser supports.
Which code segment should you add?
A. <canvas id="myFooter">
@(Request,Browser.JavaApplets ? new HtmlString("London 2012") : null)
</canvas>
B. <canvas id="myFooter">London 2012</canvas>
C. <canvas id="myCanvas">London 2012</canvas>
D. <canvas id="myCanvas"></canvas>
<p>London 2012</p>


Answer Clike
Which code segment should you use?

You need to extend the edit functionality of RunLogController.
Which code segment should you use?

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


Answer Clike
How should you build the video viewer?

HOTSPOT
You need to implement the map of the runners’ paths.
How should you build the video viewer? (To answer, select the appropriate options in the answer area.)
Hot Area:



Answer Clike
How should you build the route?

HOTSPOT
You need to ensure that only valid parameters are passed to the EditLog action.
How should you build the route? (To answer, select the appropriate options in the answer area.)
Hot Area:



Answer Clike
How should you modify the web.config file?

DRAG DROP
You need to ensure that the application uses RunLogRoleProvider custom role provider.
How should you modify the web.config file? (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.)
Select and Place:



Answer Clike
How should you build the route?

DRAG DROP
You need to ensure that only valid parameters are passed to the EditLog action.
How should you build the route? (To answer, drag the appropriate code segments 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.)
Select and Place:



Answer Clike
How should you modify RunLogController?

DRAG DROP
You need to implement security according to the business requirements.
How should you modify RunLogController? (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.)
Select and Place:



Answer Clike
Which code segment should you use?

You need to make the "Distance" header of the table bold in the Views/RunLog/GetLog.cshtml view.
Which code segment should you use?
A. table>tr{ font-weight: bold; }
B. table>th:last-child{ font-weight: bold; }
C. table+first-child{ font-weight: bold; }
D. table>tr>th:nth-child (2) { font-weight: bold; }


Answer Clike
How should you implement the view?

DRAG DROP
You need to implement the ViewsRunLog_CalculatePace.cshtml partial view from ViewsRunlog GetLog.cshtml to display the runner’s average mile pace.
How should you implement the view? (To answer, drag the appropriate code segments 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.)
Select and Place:



Answer Clike