Question 171
Note: This question is part of a series of questions that present the same scenario. Each question
in the series contains a unique solution that might meet the stated goals. Some questions sets
might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these
questions will not appear in the review screen.
You are developing an ASP.NET Core MVC web application. The landing page of the application contains
over 100 small JPEG images, including many images that have embedded text.
Mobile device users report performance issues when loading the page. You debug the application and
determine that the number of HTTP requests is causing the issue.
You need to improve the performance of the landing page.
Solution: Convert all images to JPEG with a high compression ratio.
Does the solution meet the goal?
Question 172
You are developing an ASP.NET MVC application that uses forms authentication against an Oracle database.
You need to authenticate the users.
Which code segment should you use?
Question 173
You need to update the routes to ensure that a product is always displayed on the product page.
Which code segment should you use?
Question 174
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.
What should you do?
Question 175
You are developing an ASP.NET MVC application that delivers real-time game results to sports fans. The application includes the following code. Line numbers are included for reference only.
The source data for the game results is updated every 30 seconds.
Testers report the following issues with the application:
You need to correct the performance issues.
Which two changes should you make to the code? Each correct answer presents part of the solution.
