S90-02A · Question #58
Which of the following statements is true? Select the correct answer.
The correct answer is C. REST services primarily rely on the use of HTTP headers to exchange message metadata. REST (Representational State Transfer) is an architectural style built on top of HTTP, so it naturally uses HTTP headers to exchange message metadata - things like Content-Type, Authorization, Accept, and Cache-Control are all standard HTTP headers that REST APIs rely on. Why…
Question
Which of the following statements is true? Select the correct answer.
Options
- AREST services primarily rely on the use of SOAP headers to exchange message metadata.
- BREST services primarily rely on the use of JMS headers to exchange message metadata.
- CREST services primarily rely on the use of HTTP headers to exchange message metadata.
- DREST services do not exchange messages with headers.
How the community answered
(24 responses)- A4% (1)
- C92% (22)
- D4% (1)
Explanation
REST (Representational State Transfer) is an architectural style built on top of HTTP, so it naturally uses HTTP headers to exchange message metadata - things like Content-Type, Authorization, Accept, and Cache-Control are all standard HTTP headers that REST APIs rely on.
Why the distractors are wrong:
- A is wrong because SOAP headers belong to the SOAP protocol, which is a completely separate messaging standard - REST and SOAP are distinct approaches and don't share header mechanisms.
- B is wrong because JMS (Java Message Service) headers are used in message-oriented middleware and asynchronous messaging queues, not in REST communication.
- D is wrong because REST absolutely does use headers - they carry critical metadata like authentication tokens, content negotiation, and caching directives.
Memory tip: Think "REST = HTTP's best friend." Since REST is built on HTTP, everything REST uses for metadata comes from the HTTP specification - if you remember that REST is HTTP-native, option C becomes obvious.
Topics
Community Discussion
No community discussion yet for this question.