exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 127 discussion

Actual exam question from Microsoft's 70-486
Question #: 127
Topic #: 1
[All 70-486 Questions]

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?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
References:
https://www.c-sharpcorner.com/article/custom-formatters-in-asp-net-core-mvc-web-api/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
francis
Highly Voted 5 years, 8 months ago
I would say the answer is "No" In this case, the legacy app sends the data *to* the WebAPI app in the proprietary format which suggests enabling reading that using IInputFormatter and not IOutputFormatter.
upvoted 18 times
majco333
5 years, 3 months ago
But MVC web app call WebApi - I haveto customize output formatte. Then "Yes" is correct answer. Definitely. And question 129 is other (WebApi vs MVC)
upvoted 1 times
majco333
5 years, 3 months ago
Sorry... It's NO
upvoted 1 times
...
...
rhysabray
5 years, 3 months ago
I agree. According to the first small paragraph to this page: https://docs.microsoft.com/en-us/aspnet/core/web-api/advanced/custom-formatters?view=aspnetcore-3.1 --> "ASP.NET Core MVC supports data exchange in Web APIs using input and output formatters. Input formatters are used by Model Binding. Output formatters are used to format responses."
upvoted 3 times
...
...
nelaed
Most Recent 4 years, 10 months ago
Add a custom formatter class to the Web API and implement the IOutputFormatter interface. I think propesed answer is correct. We have legacy app that send data by Web API and we have client MVC app. Question asks about Web Api, so we send data by OutputFormatter.
upvoted 4 times
...
zimzimzimma
5 years ago
https://vceguide.com/does-the-solution-meet-the-goal-256/ also says NO.
upvoted 1 times
...
aousos
5 years, 1 month ago
You have a legacy business system that sends data to the web application by using Web API, so it s an output from the web api to the web application ==> the answer is yes
upvoted 4 times
...
mmk1991
5 years, 3 months ago
I would think it's a No for a different reason. Question mentions Asp.Net and not Asp.Net Core. In Asp.Net MVC (MVC5) custom formatters were implemented in a different way: https://docs.microsoft.com/en-us/aspnet/web-api/overview/formats-and-model-binding/media-formatters
upvoted 1 times
mmk1991
5 years, 3 months ago
Sorry, I was looking at the wrong question. Agree with the previous answers - it's a no due to mentioning IOutputFormatter instead of IInputFormatter...
upvoted 1 times
...
...
Leeswah
5 years, 3 months ago
The answer is B.No in this case.
upvoted 1 times
...
AlexFromGalax
5 years, 6 months ago
Dublicate with question#129 and there No ja Fight, so I agree with Francis
upvoted 3 times
tanujgyan
5 years ago
I agree too. Answer is no
upvoted 1 times
...
nguyenhongphat0
4 years, 10 months ago
#129 is OutputFormatters instead of IOutputFormatters. These question are poorly designed!
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...