Question 56
You are developing an ASP.NET MVC application.
The application must allow users to enter JavaScript in a feedback text box only.
You need to disable request validation.
What should you do?
Question 57
DRAG DROP
You are building an ASP.NET MVC web application.
The application will be viewed by users on their mobile phones.
You need to ensure that the page fits within the horizontal width of the device screens.
You have the following markup:
Which markup segments should you include in Target 1, Target 2 and Target 3 to complete the markup? (To answer, drag the appropriate markup segments to the correct targets. 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.)
Question 58
HOT SPOT
You are developing an ASP.NET Core MVC web application.
The web application must meet the following requirements:
Allow users to create a user name and password.
Use cookie-based authentication.
Store user credentials in a Microsoft SQL Server database.
You need to implement ASP.NET Core Identity.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Question 59
You are developing an ASP.NET MVC application that takes customer orders.
Orders are restricted to customers with IP addresses based in the United States.
You need to implement a custom route handler.
You have the following code:
Which code segments should you include in Target1, Target 2 and Target 3 to implement the route handler?
To answer, drag the appropriate code segments to the correct targets. 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.
NOTE: Each correct selection is worth one point.
Question 60
You are maintaining a load-balanced ASP.NET MVC web application. The load balancer uses the status endpoint to determine if the instance is healthy.
You monitor the application uptime by using multiple App Insight URL ping tests on the status endpoint. You track request latency for the application in Microsoft Azure Application Insight.
Your DevOps team reports that the application is behaving in unexpected ways. The latency of most requests is the same. Application Insights often falls back to sampling, and the sampling period is very high.
You need to ensure that the application provides the correct information.
How should you complete the code? To answer, drag the appropriate code segments to the correct 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.






