QuizzesgRPC vs. REST: Performance & Use Cases
intermediate
system-design

gRPC vs. REST: Performance & Use Cases

Explore the performance differences and use cases of gRPC and REST in backend engineering.

18 minutes 12 questions Pass at 70%
Time Limit
18 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

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. 1.Which protocol does gRPC use for communication?

    • AFTP
    • BHTTP/2
    • CWebSocket
    • DHTTP/1.1
  2. 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. 3.In which scenario is REST preferred over gRPC?

    • AHigh-throughput data transfer
    • BLow-latency communication
    • CBrowser-based applications
    • DStrict schema enforcement
  4. 4.How does gRPC achieve higher performance compared to REST?

    • AUsing binary data format
    • BSimpler request structure
    • CSingle-threaded model
    • DUsing JSON payloads
  5. 5.Which feature of HTTP/2 utilized by gRPC improves performance?

    • AText-based messages
    • BSingle connection per request
    • CStateless communication
    • DHeader compression
  6. 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. 7.Which serialization format does gRPC use by default?

    • AProtocol Buffers
    • BJSON
    • CXML
    • DYAML
  8. 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. 9.Which of the following is a key feature of gRPC?

    • ABuilt-in load balancing
    • BText-based communication
    • CSingle-threaded execution
    • DStatelessness
  10. 10.What is a common use case for gRPC in backend systems?

    • AStatic file serving
    • BMicroservices communication
    • CWeb page rendering
    • DEmail notifications
  11. 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. 12.How does gRPC handle backward compatibility?

    • AProtocol Buffers' optional fields
    • BStrict versioning
    • CIgnoring unknown fields
    • DSchema migration tools