Q1. - (Topic 4)
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: C
Q2. - (Topic 2)
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: A,C
Q3. - (Topic 4)
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: A
Q4. DRAG DROP - (Topic 4)
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.)
Answer:
Q5. - (Topic 3)
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: C
Explanation: MapHttpRoute Method Maps the specified route template. Use the option with "api/…
Q6. DRAG DROP - (Topic 4)
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.)
Answer:
Q7. DRAG DROP - (Topic 4)
You are developing an ASP.NET MVC Web API application.
The methods of the Web API must return details about the result of the operation. You need to create a method to add products.
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.)
Answer:
Q8. - (Topic 4)
You are developing an order processing application that uses the ADO.NET Entity Framework against a SQL Server database. Lazy loading has been disabled. The application displays orders and their associated order details. Order details are filtered based on the category of the product in each order.
The Order class is shown below.
The OrderDetail class is shown below.
The Product class is shown below.
The Category class is shown below.
You need to return orders with their filtered list of order details included in a single round trip to the database.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Q9. DRAG DROP - (Topic 4)
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.)
Answer:
Q10. DRAG DROP - (Topic 4)
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.)
Answer: