Actualtests 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!
Q16. DRAG DROP - (Topic 2)
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.)
Answer:
Q17. 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:
Q18. DRAG DROP - (Topic 5)
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.
You have the following markup:
Which elements should you include in Target 1, Target 2 and Target 3 to complete the markup? (To answer, drag the appropriate elements to the correct targets 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)
Answer:
Q19. - (Topic 5)
You are developing a Microsoft Azure web application. The application will be deployed to 10 web role instances. A minimum of 8 running instances is needed to meet scaling requirements.
You need to configure the application so that upgrades are performed as quickly as possible, but do not violate scaling requirements.
How many upgrade domains should you use?
A. 1
B. 2
C. 5
D. 10
Answer: C
Q20. HOTSPOT - (Topic 5)
You are developing an ASP.NET MVC application. It is ready for deployment to the production web server. A local SQL Express .MDF file was used by the application during development, but the application will use an existing SQL server database in production.
There are files required by the application that are not part of the project. You must publish the program database (PDB) files. The application was developed using IIS Express without any special settings to be migrated.
You need to configure the web package settings for deployment.
Which settings should you use? (To answer, select the appropriate setting or settings in the answer area.)
Answer:
Q21. 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:
Q22. - (Topic 5)
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. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Explanation:
http://msdn.microsoft.com/en-us/magazine/cc163665.aspx http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.assert.areequal(v=vs.110).aspx
Q23. nbsp;Topic 1, Scenario 1
Background
You are developing an online bookstore web application that will be used by your company's customers.
Technical Requirements
General requirements:
. The web store application must be an ASP.NET MVC application written in Visual
Studio.
. The application must connect to a Microsoft SQL database.
. The GetTop100Books() method is mission critical and must return data as quickly
as possible. It should take advantage of fast forward-only, read-only methods of
reading data.
. The ImportBooks() method must keep a copy of the data that can be accessed
while new books are being imported without blocking reads.
. The CreateMonthlyTotalsReport() method must lock the data and prevent others
from updating or inserting new rows until complete.
. The college textbook area of the web application must get data from a daily
updated CSV file.
. The children's book area of the web application must get data directly from a local database. It must use a connection string. It must also support access to the stored procedures on the database. Further, it is required to have strongly typed objects. Finally, it will require access to databases from multiple vendors and needs to support more than one-to-one mapping of database tables.
. The cookbook functionality is contained within a client-side application that must connect to the server using HTTP and requires access to the data using JavaScript.
. The BookApiController class must have a method that is able to perform ad-hoc queries using OData.
The RESTful API of the bookstore must expose the following endpoints.
Application Structure
PurchaseOrders.xml
Featured Books.xml
(Topic 1)
You need to choose the appropriate data access strategy for the college textbook area of the web application.
Which data access technology should you implement?
A. WCF Data Services
B. ADO.NET
C. Entity Data Model (EDM)
D. LINQ to SQL
Answer: D
Q24. - (Topic 5)
You are developing an ASP.NET MVC application.
The application has a contact view that includes a form for editing the displayed contact.
You need to save the Contact type when the form is posted back to 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 D
D. Option E
Answer: C,D
Q25. DRAG DROP - (Topic 5)
You are developing an ASP.NET Web API for a home inventory management system. You need to limit access to users with IP addresses based only in the United States.
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:
Q26. DRAG DROP - (Topic 5)
You are developing an ASP.NET MVC application in a web farm. The application has a page that uploads a customer's photo, resizes it, and then redirects the browser to a page where the new image is displayed along with the final dimensions.
The final dimensions should be available only to the page where the new image is displayed.
You need to store state and configure the application.
What should you do? (To answer, drag the appropriate item to the correct location. Each 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.)
Answer:
Q27. - (Topic 5)
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. Instantiate a MessageChannel object on the client.
B. Implement long-running HTTP requests.
C. Implement WebSockets protocol on the client and the server.
D. Configure polling from the browser.
Answer: C
Q28. - (Topic 5)
You are developing a .NET application that uses the HttpClient type to call an ASP.NET Web API application. The API call returns a list of customers in JSON format and logs the results. The URL for the API call is in a variable named address.
You need to make the API call without blocking. Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Q29. DRAG DROP - (Topic 2)
You need to modify the ExecuteCommandProcedure() method to meet the technical requirements.
Which code segment should you use?
Answer:
Q30. DRAG DROP - (Topic 5)
You are developing an ASP.NET MVC application in a web farm. The application has a
page that accepts a customer's order, processes it, and then redirects the browser to a page where the order is displayed along with the shipping information.
The order information should be available only to the page where the order is displayed.
You need to store state and configure the application.
What should you do? (To answer, drag the appropriate item to the correct location. Each 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.)
Answer: