Developing ASP.NET MVC Web Applications — Question 29
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 develop an ASP.NET Core MVC web application. You have a legacy business system that sends data to the web application by using Web API. The legacy business system uses proprietary data formats.
You need to handle the proprietary data format.
Solution: Add a custom formatter class to the Web API and implement the IOutputFormatter interface.
Does the solution meet the goal?
Answer options
- A. Yes
- B. No
Correct answer: A
Explanation
The solution is correct because adding a custom formatter class and implementing the IOutputFormatter interface allows the web application to process and return the proprietary data format as needed. The other option, 'No', is incorrect as it fails to acknowledge that the proposed solution does indeed meet the requirement for handling the proprietary data format.