70-492 136 Q&S Upgrade your MCPD: Web Developer 4 to MCSD: Web Applications

Which tool should you use?

You are developing an ASP.NET MVC application. Deployment administrators do not have access to Visual Studio 2102, but will have the elevated permissions required to deploy the application to the servers. You need to select a deployment tool for use by the deployment administrators. Which tool should you use?
A. Publish Web Site Tool
B. Web Deployment Package
C. One-Click Publish
D. Deployment Package Editor


Answer Clike
Which code segment should you use?

You are developing an ASP.NET MVC application. The application is an order processing system that uses the ADO.NET Entity Framework against a SQL Server database. It has a controller that loads a page that displays all orders along with customer information. Lazy loading has been disabled. The
Order class is shown below.

You need to return the orders and customer information in a single round trip to the database. Which code segment should you use?
A.

B.

C.

D.



Answer Clike
You are developing an ASP.NET MVC application that reads and writes data from a SQL Server database.

You are developing an ASP.NET MVC application that reads and writes data from a SQL Server database. You need to maintain data integrity in all situations that use transactions.
A. ReadUncommitted
B. Repeatable
C. Serializable
D. ReadCommitted


Answer Clike
Which Visual Studio 2012 menu item should you choose?

HOTSPOT
You are supporting an application that uses the ADO.NET Entity Framework to query and access data. The latest version of Entity Framework contains bug fixes that will improve performance. You need to update Entity Framework. Which Visual Studio 2012 menu item should you choose? (To answer, select the appropriate menu item in the answer area.)

A. Add-In Manager…
B. Library Package Manager
C. Extension Manager…
D. External Tools…


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 remove a comment. Which HTTP verb should you use?
A. PUT
B. DELETE
C. POST
D. GET


Answer Clike
What should you do?

DRAG DROP
You are developing an ASP.NET Web API application for currency conversion that will be consumed by a web browser by using 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
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", "VendorId" :9823, Items": ["Dogs", "Cats"] }
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
What should you do?

DRAG DROP
You are developing an ASP.NET MVC Web API application. The application must meet the following requirements:
· It must send or receive data without the use of a buffer.
· It must allow up to 1 MB of data to be received.
· It must allow up to 2 MB of 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 configuration values should you use?

DRAG DROP
You are developing a WCF service. You need to implement transport security by using NTLM authentication and NetTcpBindings. Which configuration values should you use? (To answer, drag the appropriate configuration values to the correct location or locations in the answer area. Each configuration 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
How should you modify the file?

DRAG DROP
You are creating a WCF service. The service endpoints must be exposed to the Windows Azure Service Bus. The service bus has a namespace named RestaurantSB. The key provider is "owner". You need to modify the web.config file to expose the endpoints. How should you modify the file? (To answer, drag the appropriate attributes to the correct location or locations in the answer area. Each attribute 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 instancing mode should you use?

You are developing a WCF service. A new service instance must be created for each client request. You need to choose an instancing mode. Which instancing mode should you use?
A. Single
B. PerRequest
C. PerCall
D. Multiple
E. PerSession


Answer Clike
What should you do?

DRAG DROP
You are developing a WCF service. The WCF service requires implementations of the new data contracts to validate against the old schema. You need to develop a new data contract without breaking current functionality. 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 are developing a WCF service. The service will stream messages to clients on the internal network. You must use Windows Authentication, and all messages must be binary encoded. You need to configure the service. What should you do? (To answer, drag the appropriate elements to the correct location or locations in the answer area. Each 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 message pattern should you choose?

You are developing a WCF service that compares several data sources. The service takes a long time to complete. The service must meet the following requirements:
· The client must be able to continue processing while the service is running.
· The service must initiate communication with the client application when processing is complete.
You need to choose a message pattern to meet the requirements. Which message pattern should you choose?
A. One Way
B. Streaming
C. Duplex
D. Request/Reply


Answer Clike
Which configuration values should you use?

DRAG DROP
You are developing a WCF service. You need to implement transport security by using NTLM authentication and NetTcpBindings. Which configuration values should you use? (To answer, drag the appropriate configuration values to the correct location or locations in the answer area. Each configuration 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
Which instance mode should you use?

You are developing a WCF service. A new service instance must be created for each client session. You need to choose an instancing mode. Which instance mode should you use?
A. PerCall
B. Single
C. Multiple
D. PerSession
E. PerRequest


Answer Clike
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
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 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 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
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
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
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
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 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
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
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 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.

B.

C.

D.



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

B.

C.

D.



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

B.

C.

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.

B.

C.

D.



Answer Clike
What should you do?

DRAG DROP
You need to create the ShippingContext class in the ShippingAddress.cs 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
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 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.

B.

C.

D.



Answer Clike
How should you build the method?

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 use as the body of the StreamHistoricalFlights() method in the HistoricalDataLoader.cs 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.cs file?
A.

B.

C.

D.



Answer Clike
With which code segment should you replace the body of the SaveChanges() method in the FlightInfoContext.cs file?

Errors occasionally occur when saving data using the FlightlnfoContext 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.cs file?
A.

B.

C.

D.



Answer Clike
What should you do?

The assemblies provided by Trey Research must be merged into a single assembly. You need to merge the assemblies provided by Trey Research and meet the application specification. What should you do?
A. Use the ILMerge.exe tool to merge the Trey Research assemblies without stipulating a key pair.
B. In the post-build event, use the Assembly Linker (al.exe) tool to sign the application’s primary output assembly with the Trey.snk key pair.
C. Use the sn.exe tool to generate a key pair file named TreyVendor.snk. Use the ILMerge.exe tool to merge the assemblies provided by Trey Research. Use the Assembly Linker (al.exe) tool to sign the application’s primary output assembly with the TreyVendor.snk key pair.
D. Use the ILMerge.exe tool to merge the assemblies provided by Trey Research, and then stipulate the output must be signed with the Trey.snk key pair.


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

B.

C.

D.



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

B.

C.

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.

B.

C.

D.



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

A. Upgrade
B. Configure
C. Swap VIP
D. Configure OS


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

B.

C.

D.



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

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

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
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
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
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
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
How should you build the class constructor?

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?

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

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

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

B.

C.

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 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 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 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
How should you implement model binding for the ReservationLocation type?

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
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
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 HTML 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
How should you implement the route handler?

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
You need to maximize performance of video delivery. hich code segment should you use as the body of the GetVideoStream function in the videoController class?

You need to maximize performance of video delivery. hich code segment should you use as the body of the GetVideoStream function in the videoController class?
A.

B.

C.

D.



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.

B.

C.

D.



Answer Clike
How should you build the ProcessRequest method?

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 to replace the existing VideoAdminAttribute class in VideoAdminAttributes.cs?

You need to set the cookie that will be used by the header as defined in the business requirements. Which code segment should you use to replace the existing VideoAdminAttribute class in VideoAdminAttributes.cs?
A.

B.

C.

D.



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.

B.

C.

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.

B.

C.

D.



Answer Clike
How should you implement the startup task?

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

B.

C.

D.



Answer Clike
What should you do?

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



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.

B.

C.

D.

E.



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.

B.

C.

D.



Answer Clike
How should you build the ProcessRequest method?

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

B.

C.

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.

B.

C.

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

B.

C.

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

B.

C.

D.



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.

B.

C.

D.



Answer Clike
What should you do?

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

B.

C.

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

The date of the run must be displayed in ViewsRunlogGetLog.cshtml. The timestamp must not be displayed. You need to display the date of the run according to the business requirements. Which code segment should you use?
A. @Html.DisplayFor(model => log.RunDate)
B. @log.RunDate.ToShortDateString()
C. @log.RunDate.ToString()
D. @Html.DisplayFor(model => log.ShortDate)


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


Answer Clike
How should you build the video viewer?

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
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. @Htmi.DisplayFor(model => log.Distance.ToString() + " miles")


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

You need to add an action to RunLogController to validate the users’ passwords. Which code segment should you use?
A.

B.

C.

D.



Answer Clike
How should you build the route?

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

B.

C.

D.



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

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

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
How should you modify RunLogController?

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