Microsoft Upgrade your MCPD: Web Developer 4 to MCSD: Web Applications - 70-492 Exam Practice Test

Question 1
You are developing an ASP.NET MVC application by using Visual Studio 2012. The application throws and handles exceptions when it runs. You need to examine the state of the application when exceptions are thrown. What should you do?

Correct Answer: A
Question 2
You are adding a new REST service endpoint to the FlightDataController controller. It returns flights from the consolidated data sources only for flights that are late. You need to write a LINQ to Entities query to extract the required data. Which code segment should you use?

Correct Answer: A
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 3
You need to display the "miles" unit description after the distance in the GetLog view. Which line of code should you use to replace line GL21? (Each correct answer presents a complete solution. Choose all that apply.)

Correct Answer: C,D
Question 4
You need to ensure that the application uses RunLogRoleProvider custom role provider. How should you modify the web.config file? (To answer, drag the appropriate line of code to the correct location or locations. Each line of code 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.)
Select and Place:
Correct Answer:

Explanation:
Question 5
You are developing an ASP.NET MVC application in Visual Studio 2012. The application contains sensitive bank account data. The application contains a helper class named SensitiveData.Helpers.CustomEncryptor.

The application must not display AccountNumber in clear text in any URL. You need to build the view for the GetAccounts action. How should you build the view? (To answer, drag the appropriate code segment to the correct location or locations. 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.)
Select and Place:
Correct Answer:

Explanation:
Question 6
Transformed historical flight information provided by the RemoteDataStream() method must be written to the response stream as a series of XML elements named Flight within a root element named Flights. Each Flight element has a child element named FlightName that contains the flight name that starts with the two-letter airline prefix. You need to implement the StreamHistoricalFlights() method so that it minimizes the amount of memory allocated. Which code segment should you use as the body of the StreamHistoricalFlights() method in the HistoricalDataLoader.cs file?

Correct Answer: A
Question 7
DRAG DROP
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.)
Select and Place:
Correct Answer:

Explanation: