It is impossible to pass Microsoft 70-494 exam without any help in the short term. Come to Exambible soon and find the most advanced, correct and guaranteed Microsoft 70-494 practice questions. You will get a surprising result by our Update Recertification for MCSD: Web Applications practice guides.
Q21. 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:
Q22. - (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
Q23. - (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
Q24. - (Topic 3)
You need to ensure that all the MVC controllers are secure.
Which code segment should you use as the body for the CreateController method in AdminVerifierFactory.cs?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Q25. - (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
Q26. - (Topic 3)
You are creating a new authentication system that uses an HTTP header value.
The existing authentication system must continue to operate normally.
You need to implement the custom authentication.
What should you do? (Each correct answer presents a complete solution. Choose all that apply.)
A. Create a class derived from ActionResult and check for a valid HTTP header value in the ExecuteResult method. Change all actions to return this new class.
B. Create an HttpHandler to check for a valid HTTP header value in the ProcessRequest method.
C. Create an HttpModule and check for a valid HTTP header value in the AuthenticateRequest event.
D. Create a class derived from AuthorizeAttribute and check for a valid HTTP header value in the AuthorizeCore method. Change usages of the existing AuthorizeAttribute to use the new class.
Answer: C,D
Q27. - (Topic 3)
You need to ensure that all customers can delete videos regardless of their browser capability.
Which code segment should you use as the body of the SendAsync method in the DeleteHandler class?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Q28. DRAG DROP - (Topic 5)
You are developing a RESTful application by using ASP.NET MVC. The application is a pet management system and implements the following method in a controller for retrieving pet data.
The method must only accept JSON data using the standard MIME type.
You need to implement a controller that saves pet data and return a properly formatted HTTP/1.1 protocol response.
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:
Q29. - (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
Q30. - (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