Ucertify offers free demo for 70-494 exam. "Recertification for MCSD: Web Applications", also known as 70-494 exam, is a Microsoft Certification. This set of posts, Passing the Microsoft 70-494 exam, will help you answer those questions. The 70-494 Questions & Answers covers all the knowledge points of the real exam. 100% real Microsoft 70-494 exams and revised by experts!
Q11. HOTSPOT - (Topic 5)
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.)
Answer:
Q12. DRAG DROP - (Topic 5)
You are configuring a web application for deployment.
You need to create a SetParameters.xml file to configure the IIS application pool. You have the following markup:
Which configuration values should you include in Target 1 and Target 2 to complete the markup? (To answer, drag the appropriate configuration values to the correct targets 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:
Q13. - (Topic 2)
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: B,C,D,E
Explanation: http://www.robbagby.com/entity-framework/entity-framework-modeling-table-per-type-inheritance/
Q14. - (Topic 5)
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: A
Q15. - (Topic 5)
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.
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: C
Q16. - (Topic 1)
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. ADO.NET Entity Framework
B. Web Service
C. LINQ to SQL
D. WCF Data Services
Answer: A
Q17. - (Topic 1)
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: A
Topic 2, Scenario 2
Background
You are developing an ASP.NET MVC application in Visual Studio 2012 that will be used to process orders.
Business Requirements
The application contains the following three pages. . A page that queries an external database for orders that are ready to be
processed. The user can then process the order.
. A page to view processed orders.
. A page to view vendor information.
The application consumes three WCF services to retrieve external data.
Technical Requirements
Visual Studio Solution:
The solution contains the following four projects.
. ExternalQueue: A WCF service project used to communicate with the external order database.
. OrderProcessor: An ASP.NET MVC project used for order processing and logging order metadata.
. OrderUpload: A WCF service project used to submit order data to an external data source.
. Shipping: A WCF service project used to acquire shipping information.
ExternalQueue Project:
Entity Framework is used for data access. The entities are defined in the ExternalOrders.edmx file as shown in the following diagram.
The project contains two services defined in the following files:
. IExternalQueueService.cs
. ExternalQueueService.svc.
The ExternalQueue.Helpers namespace contains a definition for a class named OrderNotFoundException.
OrderProcessor Project:
Entity Framework is used for data access. The entities are defined in the ProcessedOrders.edmx file as shown in the following diagram.
The classes are contained in the OrderProcessor.Entities namespace.
The project contains the following two controllers:
. InboundQueueControIler.cs
. ProcessedOrderController.cs
WCF service proxies to the ExternalQueue, Shipping and OrderUpload services have been generated by using the command prompt. The ExecuteCommandProcedure() method in the ExternalQueueService.svc file must run asynchronously.
The ProcessedOrderController controller has the following requirements:
. The GetVendorPolicy() method must enforce a 10 minute absolute cache expiration policy.
. The GetProcessedOrders() method must return a view of the 10 most recently processed orders.
OrderUpload Project:
The project contains two services defined in the following files:
.IUploadCallbackService.cs
.UploadCallbackService.svc
Data Access is maintained in a file named UploadOrder.cs.
Shipping Project:
Entity Framework is used for data access. The entities are defined in the ExternalOrders.edmx file as shown in the following diagram.
The Custom Tool property for ExternalOrders.edmx has been removed.
POCO classes for the Entity Model are located in the ShippingAddress.cs file. The POCO entity must be loaded by using lazy loading.
The project contains two services defined in the following files:
. IShippingService.cs
. ShippingService.svc
The IShippingService contract must contain an operation that receives an order number as a parameter. The operation must return a class named ShippingInfo that inherits from a class named State.
Application Structure
ExternalQueue\IExternalQueueService.cs
OrderProcessor\IExternalQueueService.svc
ExternalQueue\ProcessedOrderController.cs
OrderProcessor\InboundQueueController.cs
OrderUpload\IUploadCallbackService.cs
OrderUpload\UploadCallbackService.svc
Shipping\IShippingService.cs
Shipping\ShippingAddress.cs
Q18. DRAG DROP - (Topic 5)
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.)
Answer:
Q19. - (Topic 5)
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. Kerberos
D. Forms
Answer: B
Explanation: http://msdn.microsoft.com/en-us/library/aa292114(v=vs.71).aspx
Q20. - (Topic 2)
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: A