350-401 · Question #22
350-401 Question #22: Real Exam Question with Answer & Explanation
The correct answer is C: header. Content type is specified in the HTTP header, specifically using the Content-Type header field (e.g., Content-Type: application/json). Headers are the section of an HTTP message designed to carry metadata - information about the request or response - making them the logical home
Question
In which part of the HTTP message is the content type specified?
Options
- AHTTP method
- BURI
- Cheader
- Dbody
Explanation
Content type is specified in the HTTP header, specifically using the Content-Type header field (e.g., Content-Type: application/json). Headers are the section of an HTTP message designed to carry metadata - information about the request or response - making them the logical home for content type declarations.
Why the distractors are wrong:
- A (HTTP method): The method (GET, POST, etc.) only indicates the action being performed, not any content details.
- B (URI): The URI identifies the resource location, not how the content is formatted or encoded.
- D (Body): The body contains the actual data payload being sent, not the descriptive metadata about it.
Memory tip: Think of HTTP headers like the label on a package - they tell you what's inside and how to handle it, while the body is the actual contents inside the box. "Content-Type" is a label, so it belongs on the header, not stuffed inside the body.
Topics
Community Discussion
No community discussion yet for this question.