Developing ASP.NET MVC Web Applications — Question 59
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 landing 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: Update the web server to use HTTP/2.
Does the solution meet the goal?
Answer options
- A. Yes
- B. No
Correct answer: B
Explanation
While HTTP/2 can improve performance by allowing multiplexing of requests, it does not address the issue of having over 100 small images, which can still lead to performance degradation due to the sheer number of requests. A better solution would be to optimize the images or implement image sprites to reduce the number of HTTP requests, making option B the correct answer.