70-494 Premium Bundle

70-494 Premium Bundle

Recertification for MCSD: Web Applications Certification Exam

4.5 
(14970 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 21, 2024Last update

Microsoft 70-494 Free Practice Questions

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

Q2. - (Topic 5) 

You are developing an order processing application that uses the ADO.NET Entity Framework against a SQL Server database. The application has a method that returns orders filtered by date. 

The Order class is shown below. 

You must filter the data on the SQL server before it is returned to the application server. 

You need to return orders more recent than the entered date. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q3. DRAG DROP - (Topic 5) 

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. 

Answer:  

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

Q5. - (Topic 5) 

You are developing an ASP.NET MVC application. 

The application provides a RESTful API for third-party applications. This API updates the 

information for a contact by embedding the information in the URL of an HTTP POST. 

You need to save the Contact type when third-party applications use the EditContact method. 

Which code segment should you use? (Each correct answer presents a complete solution. Choose all that apply.) 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: A,B 

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

Q7. DRAG DROP - (Topic 5) 

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

Answer:  

Q8. - (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:

Explanation: 

Ref: http://msdn.microsoft.com/en-us/library/ms178359.aspx#dbfmfcf 

Q9. - (Topic 5) 

You are developing an ASP.NET MVC application that uses forms authentication. 

Authentication credentials must be encrypted and secure. 

You need to ensure that user credentials are persisted after users log on. 

Where should you store the credentials? (Each correct answer presents a complete 

solution. Choose all that apply.) 

A. In TempData 

B. In Session 

C. In ViewData 

D. In a cookie 

Answer: B,D 

Q10. - (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:

Q11. - (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:

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 

Q12. - (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:

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

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

Q15. - (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:

Explanation: http://msdn.microsoft.com/en-us/library/aa292114(v=vs.71).aspx 

START 70-494 EXAM