exam questions

Exam 200-301 All Questions

View all questions & answers for the 200-301 exam

Exam 200-301 topic 1 question 786 discussion

Actual exam question from Cisco's 200-301
Question #: 786
Topic #: 1
[All 200-301 Questions]

With REST API, which standard HTTP header tells a server which media type is expected by the client?

  • A. Accept-Encoding: gzip. deflate
  • B. Accept-Patch: text/example; charset=utf-8
  • C. Content-Type: application/json; charset=utf-8
  • D. Accept: application/json
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
guynetwork
Highly Voted 2 years, 7 months ago
this is not ccna question
upvoted 15 times
PaddyInNZ
1 year, 5 months ago
*** This is absolutely a CCNA question. *** When I last recertified (2020), this question was definitely in it. At the time, I hovered between options 'c' and 'd' Can't remember which one I ended up selecting...
upvoted 4 times
[Removed]
1 year, 4 months ago
Yeah it's covered under "6.5 Describe characteristics of REST-based APIs (CRUD, HTTP verbs, and data encoding)" It's absolutely not taught in any of the courses I've seen or in the OCG, though.
upvoted 3 times
...
...
...
splashy
Highly Voted 2 years, 8 months ago
Did not see this pop up anywhere in the ccna course on netacad.
upvoted 10 times
[Removed]
1 year, 10 months ago
I didn't either
upvoted 2 times
...
...
Joshua25
Most Recent 6 months, 2 weeks ago
This is no longer "Describe"; this is at least Configure, or even Program.
upvoted 1 times
...
[Removed]
1 year, 1 month ago
Selected Answer: D
D is correct
upvoted 2 times
...
ZeroK
1 year, 2 months ago
Selected Answer: D
D. Accept: application/json The "Accept" header is used by the client to indicate the media types that are acceptable for the response. In this case, "application/json" specifies that the client expects JSON data in the response. why the other options are not: Accept-Encoding: gzip. deflate: This header specifies the compression formats the client can accept for the response body, not the media type itself. Accept-Patch: text/example; charset=utf-8: This header is used specifically for patching a resource and indicates the accepted media type for the patch data. Content-Type: application/json; charset=utf-8: This header specifies the media type of the request body, not what the client expects in the response.
upvoted 2 times
...
Cynthia2023
1 year, 9 months ago
Selected Answer: D
Accept and Content-type are both headers sent from a client(browser say) to a service. Accept header is a way for a client to specify the media type of the response content it is expecting and Content-type is a way to specify the media type of request being sent from the client to the server.
upvoted 3 times
...
dropspablo
1 year, 10 months ago
Selected Answer: D
Using liviuml link: Content-Type: application/json (Content-Type: Determines what kind of representation is desired on the server-side). Accept: application/json (Accept: Determines what kind of representation is desired on the client-side). https://restfulapi.net/content-negotiation/#:~:text=desired%20on%20the-,client%2Dside,-%2C%20an%20HTTP%20header
upvoted 5 times
...
[Removed]
1 year, 10 months ago
Selected Answer: C
open your chrome inspector and check the headers of any js file. you will see Content-Type: application/javascript; charset=utf-8
upvoted 1 times
...
liviuml
2 years ago
The answer is D https://restfulapi.net/content-negotiation/
upvoted 3 times
StevenYung
1 year, 10 months ago
The answer is D
upvoted 1 times
...
...
zamkljo
2 years, 1 month ago
Accept Header tells the API that it is expecting the response in the specified media type e.g. application/json or application/xml. Accept: application/json And Content-Type tells the API about the media type of the request being sent in the request body e.g. application/json. Content-Type: application/json
upvoted 1 times
...
rijstraket
2 years, 2 months ago
Selected Answer: D
The Accept header always indicates what kind of response from the server a client can accept. Content-type is about the content of the current request or response, depending on which kind of HTTP message it is applied.
upvoted 2 times
...
Panda_man
2 years, 5 months ago
Selected Answer: C
Media type is content type meaning it's C
upvoted 2 times
...
splashy
2 years, 7 months ago
Selected Answer: D
Started reading and have to aggree with D now, it's about what the client sends to the server to tell to the server what content type it can understand and expects. The Accept request HTTP header indicates which content types, expressed as MIME types, the client is able to understand. The Content-Type representation header is used to indicate the original media type of the resource (prior to any content encoding applied for sending). In responses, a Content-Type header provides the client with the actual content type of the returned content.
upvoted 2 times
...
g_mindset
2 years, 8 months ago
Selected Answer: C
The answer is C. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
upvoted 1 times
Phonon
2 years, 4 months ago
Seconded
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago