Skip to content

gRPC interview questions — Easy

100 easy-level gRPC questions from our API Testing bank, each with the correct answer and an explanation of why it is correct.

This topic slice is available to practise but is not yet part of our indexed set.

What this covers

gRPC appears throughout API Testing interviews. At easy level, interviewers are typically checking that you know the fundamentals and can describe them precisely — definitions, defaults, and the basic mechanics. Work through these, then explain your answer out loud; the second part is what interviews actually test.

20 example questions

  1. 1. Which of the following best describes DEADLINE_EXCEEDED in gRPC?

    • A. Middleware wrapping gRPC calls for auth or logging.
    • B. Single request producing a single response.
    • C. Status returned when a call outlives its deadline.correct
    • D. Compiler generating code from proto definitions.

    Why: DEADLINE_EXCEEDED: Status returned when a call outlives its deadline.

  2. 2. In the context of gRPC, DEADLINE_EXCEEDED is best described as:

    • A. Definition of gRPC services, methods, and message types.
    • B. Client-side connection abstraction to a gRPC server.
    • C. Status returned when a call outlives its deadline.correct
    • D. Compiler generating code from proto definitions.

    Why: DEADLINE_EXCEEDED: Status returned when a call outlives its deadline.

  3. 3. Which of the following best describes bidirectional streaming in gRPC?

    • A. Both client and server send message streams concurrently.correct
    • B. Definition of gRPC services, methods, and message types.
    • C. Client-side connection abstraction to a gRPC server.
    • D. Single request producing a single response.

    Why: bidirectional streaming: Both client and server send message streams concurrently.

  4. 4. What is the purpose of metadata in gRPC?

    • A. Single request producing a single response.
    • B. Key-value pairs sent with calls, similar to headers.correct
    • C. Compiler generating code from proto definitions.
    • D. Middleware wrapping gRPC calls for auth or logging.

    Why: metadata: Key-value pairs sent with calls, similar to headers.

  5. 5. In gRPC, what does metadata do or refer to?

    • A. Definition of gRPC services, methods, and message types.
    • B. Key-value pairs sent with calls, similar to headers.correct
    • C. Status returned when a call outlives its deadline.
    • D. Single request producing a single response.

    Why: metadata: Key-value pairs sent with calls, similar to headers.

  6. 6. What is the purpose of channel in gRPC?

    • A. Definition of gRPC services, methods, and message types.
    • B. Compiler generating code from proto definitions.
    • C. Client-side connection abstraction to a gRPC server.correct
    • D. Middleware wrapping gRPC calls for auth or logging.

    Why: channel: Client-side connection abstraction to a gRPC server.

  7. 7. What is the purpose of interceptor in gRPC?

    • A. Both client and server send message streams concurrently.
    • B. Middleware wrapping gRPC calls for auth or logging.correct
    • C. Definition of gRPC services, methods, and message types.
    • D. Key-value pairs sent with calls, similar to headers.

    Why: interceptor: Middleware wrapping gRPC calls for auth or logging.

  8. 8. In gRPC, what does interceptor do or refer to?

    • A. Both client and server send message streams concurrently.
    • B. Middleware wrapping gRPC calls for auth or logging.correct
    • C. Status returned when a call outlives its deadline.
    • D. Single request producing a single response.

    Why: interceptor: Middleware wrapping gRPC calls for auth or logging.

  9. 9. In gRPC, what does bidirectional streaming do or refer to?

    • A. Both client and server send message streams concurrently.correct
    • B. Status returned when a call outlives its deadline.
    • C. Definition of gRPC services, methods, and message types.
    • D. Compiler generating code from proto definitions.

    Why: bidirectional streaming: Both client and server send message streams concurrently.

  10. 10. What is the purpose of DEADLINE_EXCEEDED in gRPC?

    • A. Single request producing a single response.
    • B. Both client and server send message streams concurrently.
    • C. Key-value pairs sent with calls, similar to headers.
    • D. Status returned when a call outlives its deadline.correct

    Why: DEADLINE_EXCEEDED: Status returned when a call outlives its deadline.

  11. 11. Which of the following best describes interceptor in gRPC?

    • A. Client-side connection abstraction to a gRPC server.
    • B. Compiler generating code from proto definitions.
    • C. Middleware wrapping gRPC calls for auth or logging.correct
    • D. Single request producing a single response.

    Why: interceptor: Middleware wrapping gRPC calls for auth or logging.

  12. 12. Which of the following best describes channel in gRPC?

    • A. Both client and server send message streams concurrently.
    • B. Middleware wrapping gRPC calls for auth or logging.
    • C. Client-side connection abstraction to a gRPC server.correct
    • D. Single request producing a single response.

    Why: channel: Client-side connection abstraction to a gRPC server.

  13. 13. In gRPC, what does channel do or refer to?

    • A. Single request producing a single response.
    • B. Client-side connection abstraction to a gRPC server.correct
    • C. Definition of gRPC services, methods, and message types.
    • D. Both client and server send message streams concurrently.

    Why: channel: Client-side connection abstraction to a gRPC server.

  14. 14. What is the purpose of .proto file in gRPC?

    • A. Both client and server send message streams concurrently.
    • B. Definition of gRPC services, methods, and message types.correct
    • C. Status returned when a call outlives its deadline.
    • D. Key-value pairs sent with calls, similar to headers.

    Why: .proto file: Definition of gRPC services, methods, and message types.

  15. 15. What is the purpose of bidirectional streaming in gRPC?

    • A. Status returned when a call outlives its deadline.
    • B. Single request producing a single response.
    • C. Both client and server send message streams concurrently.correct
    • D. Compiler generating code from proto definitions.

    Why: bidirectional streaming: Both client and server send message streams concurrently.

  16. 16. Which of the following best describes metadata in gRPC?

    • A. Key-value pairs sent with calls, similar to headers.correct
    • B. Both client and server send message streams concurrently.
    • C. Single request producing a single response.
    • D. Status returned when a call outlives its deadline.

    Why: metadata: Key-value pairs sent with calls, similar to headers.

  17. 17. Which of the following best describes .proto file in gRPC?

    • A. Single request producing a single response.
    • B. Both client and server send message streams concurrently.
    • C. Middleware wrapping gRPC calls for auth or logging.
    • D. Definition of gRPC services, methods, and message types.correct

    Why: .proto file: Definition of gRPC services, methods, and message types.

  18. 18. In gRPC, what does .proto file do or refer to?

    • A. Single request producing a single response.
    • B. Key-value pairs sent with calls, similar to headers.
    • C. Client-side connection abstraction to a gRPC server.
    • D. Definition of gRPC services, methods, and message types.correct

    Why: .proto file: Definition of gRPC services, methods, and message types.

  19. 19. In gRPC, what does protoc do or refer to?

    • A. Definition of gRPC services, methods, and message types.
    • B. Middleware wrapping gRPC calls for auth or logging.
    • C. Compiler generating code from proto definitions.correct
    • D. Single request producing a single response.

    Why: protoc: Compiler generating code from proto definitions.

  20. 20. In gRPC, what does unary RPC do or refer to?

    • A. Compiler generating code from proto definitions.
    • B. Single request producing a single response.correct
    • C. Middleware wrapping gRPC calls for auth or logging.
    • D. Client-side connection abstraction to a gRPC server.

    Why: unary RPC: Single request producing a single response.

Related API Testing topics