QuizzesgRPC for Inter-Service Communication — Concept Check
intermediate
microservices

gRPC for Inter-Service Communication — Concept Check

Questions on gRPC for Inter-Service Communication. gRPC uses Protocol Buffers for efficient binary serialisation and HTTP/2 for multiplexed streams; ideal for high-throughput internal service calls where JSON overhead matters.

8 minutes 8 questions Pass at 70%
Time Limit
8 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

8 questions on gRPC for Inter-Service Communication — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.You have a gRPC service running in Spring Boot, and clients report intermittent connection resets. What could be a likely cause?

    • AJava version incompatibility
    • BIncorrect .proto file syntax
    • CProtocol Buffers serialization errors
    • DHTTP/2 multiplexing issues
  2. 2.A developer claims that gRPC's use of Protocol Buffers is less efficient than JSON for serialization. What is the truth?

    • ABoth have similar efficiency
    • BProtocol Buffers are only efficient for small payloads
    • CJSON is more efficient due to text-based serialization
    • DProtocol Buffers reduce payload size by 60-80% compared to JSON
  3. 3.While integrating gRPC with a Spring Boot application, you notice the server is not starting on the expected port. What could be the issue?

    • AIncorrect Protocol Buffers syntax
    • BJava version mismatch
    • CIncorrect dependency version
    • DMissing @GrpcService annotation
  4. 4.A team is using gRPC for inter-service communication but faces issues with client SDK drift. What feature of gRPC helps prevent this?

    • AgRPC's built-in load balancing
    • B.proto files as the source of truth
    • CJava multiple files option
    • DHTTP/2 transport layer
  5. 5.Your gRPC client in Spring Boot is experiencing timeouts when calling a service. What is a recommended solution?

    • ASet a deadline on the client stub
    • BSwitch to HTTP/1.1
    • CIncrease the payload size
    • DUse synchronous blocking stubs
  6. 6.A developer is implementing a gRPC service and wants to support multiple request types over a single connection. Which gRPC feature supports this?

    • AMultiplexed streams in HTTP/2
    • BProtocol Buffers serialization
    • CUnary communication pattern
    • DJava multiple files option
  7. 7.What is the main advantage of using gRPC over REST+JSON for internal service calls?

    • ABetter human readability
    • BReduced payload size and multiplexed streams
    • CSimpler setup process
    • DWider language support
  8. 8.A developer is confused about the use of blocking stubs in a gRPC client. When should they be used?

    • AFor asynchronous calls
    • BFor bidirectional streaming
    • CFor server streaming
    • DFor synchronous calls