nerdexam
SOA

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…

Advanced Web Services and REST Services

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)
  • A
    4% (1)
  • C
    92% (22)
  • D
    4% (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

#REST#HTTP headers#message metadata

Community Discussion

No community discussion yet for this question.

Full S90-02A Practice