gRPC vs REST — Concept Check
Questions on gRPC vs REST. REST uses HTTP/1.1 with JSON — human-readable, universally supported, but verbose. gRPC uses HTTP/2 with Protocol Buffers — binary, strongly typed, 5–10× faster, and supports bidirectional streaming.
Questions in this quiz
8 questions on gRPC vs REST — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A company needs to implement a public API that is easy to debug and widely supported across different languages. Which approach should they choose?
- ASOAP
- BgRPC with Protocol Buffers
- CgRPC-Web
- DREST with JSON
2.A microservice architecture at a large tech company requires efficient inter-service communication with support for streaming. Which protocol is most suitable?
- AREST with JSON
- BSOAP
- CXML-RPC
- DgRPC with Protocol Buffers
3.A developer is debugging a binary protocol communication issue but finds it difficult. What could be the reason?
- AUsing SOAP
- BUsing gRPC with Protocol Buffers
- CUsing XML-RPC
- DUsing REST with JSON
4.Which interaction pattern is NOT supported by gRPC?
- AClient streaming
- BServer streaming
- CBatch processing
- DUnary
5.A team wants to minimize payload size and maximize serialization speed in their API. Which technology should they use?
- AXML-RPC
- BREST with JSON
- CgRPC with Protocol Buffers
- DSOAP
6.An organization uses gRPC for internal services but needs a browser-compatible API. What should they do?
- AUse gRPC-Web
- BUse SOAP
- CUse REST with JSON
- DUse XML-RPC
7.A developer claims REST is faster than gRPC due to its simplicity. What is the flaw in this reasoning?
- AREST uses Protocol Buffers
- BREST uses HTTP/2
- CgRPC is faster due to binary serialization
- DgRPC lacks streaming
8.Which protocol uses a .proto file to define services and generate stubs?
- AREST
- BXML-RPC
- CSOAP
- DgRPC