Questions: Remote Procedure Calls (RPC)

4 questions to test your understanding

Score: 0 / 4
Question 1 Multiple Choice

In an RPC system, what is the job of the client stub?

AIt runs the requested procedure on the client machine to save a network trip
BIt presents a local function interface, marshals the arguments into a request message, sends it, waits for the reply, and unmarshals the result
CIt chooses which server is fastest by testing all of them
DIt stores a copy of the server's code so that the client can run it later
Question 2 Multiple Choice

A client sends an RPC that transfers money between accounts and receives no reply before its timeout expires. What can the client correctly conclude?

AThe transfer did not happen
BThe transfer happened exactly once
CThe server has crashed
DIt cannot tell whether the transfer happened
Question 3 True / False

A remote procedure can receive a pointer to a variable in the caller's memory and update the caller's variable through it, just as a local function can.

TTrue
FFalse
Question 4 Short Answer

Why do RPC designers prefer idempotent operations when the system retries calls automatically?

Think about your answer, then reveal below.