Developing ASP.NET MVC Web Applications — Question 25
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 IInputFormatter interface.
Does the solution meet the goal?
Answer options
- A. Yes
- B. No
Correct answer: A
Explanation
The proposed solution is correct because implementing a custom formatter class and the IInputFormatter interface allows the ASP.NET Core MVC application to handle proprietary data formats effectively. This approach enables the application to parse and understand the specific data structure sent by the legacy system. The alternative answer, 'No', is incorrect since it does not provide a viable method for handling the proprietary data.