S90-02A · Question #21
Which of the following statements is true? Select the correct answer.
The correct answer is D. REST services share a common uniform contract. REST services are built around a uniform interface constraint - one of REST's core architectural principles - meaning all services share the same standardized contract based on HTTP methods (GET, POST, PUT, DELETE), status codes, and resource-based URIs. This shared contract is…
Question
Which of the following statements is true? Select the correct answer.
Options
- AEach REST service exposes its own unique technical service contract.
- BREST services are event-driven programs that do not have service contracts.
- CREST services only expose a technical service contract when using SOAP messaging.
- DREST services share a common uniform contract.
How the community answered
(27 responses)- A4% (1)
- C4% (1)
- D93% (25)
Explanation
REST services are built around a uniform interface constraint - one of REST's core architectural principles - meaning all services share the same standardized contract based on HTTP methods (GET, POST, PUT, DELETE), status codes, and resource-based URIs. This shared contract is what distinguishes REST from older approaches like SOAP, where each service defined its own unique WSDL-based contract.
Why the distractors are wrong:
- A is wrong because unique per-service technical contracts describe SOAP/web services, not REST.
- B is wrong on both counts: REST services do have a contract (the uniform HTTP interface), and "event-driven" describes a different architectural style entirely.
- C is wrong because REST and SOAP are competing approaches - REST doesn't use SOAP messaging.
Memory tip: Think of REST's uniform contract like the rules of a standard post office - no matter which branch you visit, letters follow the same addressing format, postage system, and delivery process. Every REST service "speaks the same HTTP language," just with different resources at different addresses.
Topics
Community Discussion
No community discussion yet for this question.