gRPC vs. REST: Performance & Use Cases
Explore the performance differences and use cases of gRPC and REST in backend engineering.
Questions in this quiz
12 questions on gRPC vs. REST: Performance & Use Cases. Work through them here, then start the quiz to answer them and see your score.
1.Which protocol does gRPC use for communication?
- AFTP
- BHTTP/2
- CWebSocket
- DHTTP/1.1
2.What is a primary advantage of using gRPC over REST for microservices?
- AText-based payloads
- BSimpler implementation
- CBuilt-in support for streaming
- DWider browser support
3.In which scenario is REST preferred over gRPC?
- AHigh-throughput data transfer
- BLow-latency communication
- CBrowser-based applications
- DStrict schema enforcement
4.How does gRPC achieve higher performance compared to REST?
- AUsing binary data format
- BSimpler request structure
- CSingle-threaded model
- DUsing JSON payloads
5.Which feature of HTTP/2 utilized by gRPC improves performance?
- AText-based messages
- BSingle connection per request
- CStateless communication
- DHeader compression
6.What is a disadvantage of using gRPC for public APIs?
- ALack of streaming support
- BLimited browser support
- CComplexity in setup
- DLimited language support
7.Which serialization format does gRPC use by default?
- AProtocol Buffers
- BJSON
- CXML
- DYAML
8.Why might REST be chosen over gRPC for a simple CRUD application?
- ASupports streaming
- BBinary data format
- CBetter performance
- DEasier to implement and understand
9.Which of the following is a key feature of gRPC?
- ABuilt-in load balancing
- BText-based communication
- CSingle-threaded execution
- DStatelessness
10.What is a common use case for gRPC in backend systems?
- AStatic file serving
- BMicroservices communication
- CWeb page rendering
- DEmail notifications
11.Which aspect of REST makes it more suitable for public-facing APIs?
- AHuman-readable format
- BBinary data format
- CStrong schema enforcement
- DBuilt-in streaming
12.How does gRPC handle backward compatibility?
- AProtocol Buffers' optional fields
- BStrict versioning
- CIgnoring unknown fields
- DSchema migration tools