REST
It follows a resource-oriented model.
The API can be stateless.
RPC
The API is seen as a function call.
There is communication between server and client.
I think this is the correct answer:
REST is resource-based
REST is client-server (it's over HTTP, which is always client-server)
RPC is a function call
RPC -can- be stateless
I think the confusion comes from the word "can". REST is -always- stateless. It -must- be. RPC calls -can- be stateless as well, but it's not required.
I agree with your analysis. REST must be client-server, and follows a resource-oriented model to comply with the uniform interface constraint.
RPC 'can' be stateless, and is a function call per https://www.techtarget.com/searchapparchitecture/definition/Remote-Procedure-Call-RPC
However 'client-server' communication does apply to both, this is the "best" answer.
Remote-procedure calls
RPCs make it possible to execute code or a program on a remote node in a network. RPCs behave as if the code were executed locally on the same local node,
even though the code is executed on a remote address space, such as another system on the network.
REST
**Client-Server
The client and server should be independent of each other, enabling the client to be built for multiple platforms and simplifying the server side components.
**Stateless
Requests from the client to the server must contain all of the information the server needs to make the request. The server cannot contain session states.
Cache
Uniform interface
Layered system
Code-on-demand
Netacad and book DEVASC concern REST as stateless and C-S. RPC in the context from question behave as if the code were executed locally on the same local node. Dont especific model C-S. The question is correct, I dont know where are you obtaint those sentences.
REST is resource oriented object. In that case RPC use client-Server model.
upvoted 4 times
...
This section is not available anymore. Please use the main Exam Page.200-901 Exam Questions
Log in to ExamTopics
Sign in:
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.
macxsz
Highly Voted 2 years, 12 months agojoephx08
Highly Voted 3 years, 1 month agoPierre_Bouvier
Most Recent 6 months, 2 weeks agonunyabeez
2 years, 3 months agoWoonesuf
2 years, 3 months agoaplicacion101
2 years, 8 months agoaplicacion101
2 years, 7 months agoAJ7428
3 years, 1 month ago