we provide Validated Microsoft 70-494 test questions which are the best for clearing 70-494 test, and to get certified by Microsoft Recertification for MCSD: Web Applications. The 70-494 Questions & Answers covers all the knowledge points of the real 70-494 exam. Crack your Microsoft 70-494 Exam with latest dumps, guaranteed!
Q31. - (Topic 5)
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: D
Q32. - (Topic 4)
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. WCF Data Services
B. ADO.NET Entity Framework
C. UNQ to XML
D. ADO.NET DataSets
Answer: A
Q33. - (Topic 5)
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: A,C
Q34. DRAG DROP - (Topic 1)
You need to configure the server to self-host the bookstore's Web API application. You have the following code:
Which code segments should you include in Target 1 and Target 2 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:
Q35. - (Topic 5)
You are developing a new ASP.NET MVC application that does not have an existing database.
The requirements for the application are not complete, and the SQL data model will likely change.
You need to choose an approach to visually manage a data model.
Which approach should you use?
A. Database First
B. Model First
C. Code First
D. Physical First
Answer: C
Explanation:
Ref: http://msdn.microsoft.com/en-us/library/ms178359.aspx#dbfmfcf
Q36. - (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
Q37. - (Topic 1)
You are developing an ASP.NET MVC application that is secured 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. In the Package/Publish settings of the project, select the All Files in this project folder option.
B. In the Build Events settings of the project, configure a pre-build event to include the SSL certificate.
C. Create a web publish pipeline target file with a custom web deploy target.
D. In the Signing dialog box, choose Sign the assembly and select the appropriate entry from the Choose a strong name key file list.
Answer: C
Q38. - (Topic 5)
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 Windows authentication.
B. Generate server SSL certificates and install them in IIS.
C. Enable Digest authentication.
D. Enable Forms authentication.
Answer: A
Q39. DRAG DROP - (Topic 2)
You need to complete the GetProcessedOrders() action in the ProcessedOrderController controller to meet the requirements.
You have the following code:
Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 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:
Q40. DRAG DROP - (Topic 4)
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.)
Answer:
Q41. DRAG DROP - (Topic 5)
You are developing a .NET application that uses the HttpClient type to access an ASP.NET
Web API application.
You need to add a header to ensure that data is returned as XML.
You have the following code:
Which code segments should you include in Target 1 and Target 2 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:
Q42. DRAG DROP - (Topic 3)
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.)
Answer:
Q43. - (Topic 5)
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.
Where should you persist state information?
A. Store search results and page index in Session.
B. Use QueryString to store search terms and page index.
C. Store search results and page index in TempData.
D. Use Application state to store search terms and page index.
Answer: B
Q44. DRAG DROP - (Topic 4)
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.)
Answer:
Topic 5, Mix Questions
Q45. - (Topic 5)
You are developing an ASP.NET MVC application that enables you to edit and save a
contact.
The application must not save contacts on an HTTP GET 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: A,C