gRPC Interview Questions
High-performance RPC with Protocol Buffers and HTTP/2, the four streaming modes (unary, server, client, bidirectional), stubs & code generation, deadlines, interceptors, metadata, TLS auth, load balancing, gRPC-Web and schema compatibility.
61 questions
Popular Searches
1. What is gRPC and what problems does it solve?
easyFundamentals 6 mins2. What is the difference between gRPC and REST?
mediumComparisons 7 mins3. What are Protocol Buffers (protobuf) and how do they work?
mediumSerialization 7 mins4. What is an .proto file and how do you define a gRPC service?
easyProtocol Buffers 5 mins5. What is the role of HTTP/2 in gRPC and why does it matter?
mediumTransport 6 mins6. What are the four types of gRPC communication (unary, server streaming, client streaming, bidirectional)?
mediumStreaming 6 mins7. What is unary RPC in gRPC and when do you use it?
easyRPC Types 6 mins8. What is server-side streaming in gRPC?
mediumRPC Types 7 mins9. What is client-side streaming in gRPC?
mediumRPC Types 7 mins10. What is bidirectional streaming in gRPC and how does it work?
mediumStreaming 6 mins11. How does gRPC handle serialization compared to JSON?
mediumSerialization 6 mins12. What are gRPC stubs and how does code generation work?
easyCode Generation 5 mins13. How does error handling and status codes work in gRPC?
mediumError Handling 6 mins14. What are gRPC deadlines and timeouts and why are they important?
mediumReliability 6 mins15. How does gRPC handle authentication and TLS?
hardSecurity 7 mins16. What are gRPC interceptors and how are they used?
mediumMiddleware 7 mins17. What is gRPC metadata and how do you use it?
mediumCore Concepts 7 mins18. How does gRPC handle backward and forward compatibility in protobuf schemas?
hardProtobuf 8 mins19. What is the difference between proto2 and proto3?
mediumProtocol Buffers 6 mins20. How does gRPC load balancing work?
hardNetworking 7 mins21. What is gRPC channel and how does connection management work?
mediumCore Concepts 6 mins22. What is gRPC-Web and how does it enable browser clients?
mediumgRPC-Web 7 mins23. How does gRPC support health checking and service discovery?
mediumOperations 7 mins24. What is server reflection in gRPC and why is it useful?
easyTooling 6 mins25. How do you handle streaming flow control and backpressure in gRPC?
hardStreaming 8 mins26. What are the performance advantages of gRPC over REST?
mediumFundamentals 7 mins27. How do you test and debug a gRPC service?
mediumTesting 7 mins28. When should you choose gRPC over REST or GraphQL?
mediumAPI Design 7 mins29. How does gRPC handle retries and deadline propagation?
hardReliability 8 mins30. What are common gRPC best practices and pitfalls?
mediumBest Practices 7 mins31. Why is reusing a deleted protobuf field number dangerous, and how do you prevent it?
hardSchema Evolution 8 mins32. Which protobuf schema changes are wire-compatible, and which quietly break peers?
hardSchema Evolution 9 mins33. How do you propagate and enforce gRPC deadlines across a multi-hop call graph?
hardReliability 9 mins34. How do you return rich, structured errors from a gRPC service beyond a status code?
hardError Handling 10 mins35. Why does gRPC traffic become unbalanced behind a load balancer, and how do you fix it?
hardLoad Balancing 9 mins36. How do you configure safe gRPC retries, and when is hedging appropriate instead?
hardReliability 10 mins37. How does HTTP/2 flow control create backpressure in gRPC streams, and how do you tune it?
hardStreaming 10 mins38. What breaks when gRPC crosses proxies and browsers, and how does grpc-web work around it?
hardInteroperability 10 mins39. How do you set up and operate mutual TLS for gRPC services, including rotation?
hardSecurity 10 mins40. How do you order and design a gRPC interceptor chain for auth, observability and resilience?
hardInterceptors 10 mins41. Why do idle gRPC connections silently die, and how do you configure keepalive correctly?
hardConnection Management 9 mins42. How do you drain and shut down a gRPC server gracefully during a rolling deploy?
hardOperations 9 mins43. How do you handle gRPC message size limits and RESOURCE_EXHAUSTED on large payloads?
mediumOperations 8 mins44. When should you enable gRPC compression, and what are the operational risks?
mediumPerformance 8 mins45. How do you propagate tracing context and collect useful metrics across gRPC services?
hardObservability 10 mins46. How do you write deterministic tests for gRPC handlers, streaming and error paths?
hardTesting 10 mins47. How do you find and fix leaked gRPC streams, contexts and worker goroutines?
hardOperations 10 mins48. How do you protect a gRPC server from overload with concurrency limits and load shedding?
hardOperations 10 mins49. How do you debug a failing gRPC call in production when the error is just UNAVAILABLE?
hardDebugging 10 mins50. How do you expose an existing gRPC service to REST clients without forking the implementation?
mediumInteroperability 9 mins51. What goes wrong when gRPC clients and servers are written in different languages?
hardInteroperability 10 mins52. How do you manage .proto files and generated code across many teams and repositories?
mediumOperations 9 mins53. How do you add values to a protobuf enum without breaking existing clients?
hardSchema Evolution 9 mins54. What happens on the server when a gRPC client cancels a call, and how should your handler react?
hardCancellation 9 mins55. How do you make mutating gRPC methods idempotent so that retries are safe?
hardReliability 9 mins56. How do you choose a gRPC name resolver and client-side load balancing policy?
hardLoad Balancing 9 mins57. How do you design a long-lived server-streaming RPC that survives disconnects and deploys?
hardStreaming 10 mins58. How do you enforce per-method authorization in a gRPC service?
hardSecurity 10 mins59. What are the gRPC channel connectivity states, and how do you use them in production?
mediumDebugging 8 mins60. How do you model field presence in proto3 using optional, oneof and wrappers?
mediumSchema Design 8 mins61. How do you version a gRPC API when a change cannot be made backward compatible?
hardAPI Design 9 mins