These Go gRPC interview questions cover gRPC basics, Protocol Buffers, streams, deadlines, status codes, interceptors and messaging with Kafka and NATS. We gathered them from public interview lists, coding rounds and community threads. Then we rewrote them in plain words and grouped them by idea.
This post is questions only, so answer each one in your own words first. When you need help, read Go gRPC tutorial, Go NATS messaging and Go microservices basics. Also, finish Part 21 on security first, because service calls need TLS and auth too.
How to Use These Go gRPC Interview Questions
Answer each of these Go gRPC interview questions out loud, then sketch the request path between two services. Many bugs in this area come from missing deadlines or messages that arrive twice. Finally, try the scenario questions, since they come from real distributed systems.
The table below lists each section and its number of questions.
| Section | What it tests | Questions |
|---|---|---|
| gRPC basics | HTTP/2, stubs and services | 15 |
| Protocol Buffers | Fields, tags and safe changes | 15 |
| Streams, deadlines and errors | Four call types and status codes | 15 |
| Interceptors and ops | Auth, TLS, health and metadata | 14 |
| Messaging | Queues, Kafka and NATS | 15 |
| gRPC coding tasks | Classic interview programs | 13 |

Go gRPC Interview Questions on the Basics
Before you answer, study Go gRPC tutorial. These Go gRPC interview questions check what gRPC is and why teams pick it for internal calls.
- What is gRPC, and how is it different from a REST API, for example in data format?
- Why does gRPC run on HTTP/2, and what does multiplexing give you?
- What does protoc generate for a Go service, so that you can call it?
- Which plugins do you need, such as protoc-gen-go and protoc-gen-go-grpc?
- What is a client stub, and how does it hide the network call?
- How do you register a service on a grpc.Server?
- What does the Unimplemented server struct do for forward compatibility?
- How do you create a client connection with grpc.NewClient?
- Why should you reuse one client connection instead of dialing per call?
- How does gRPC load balancing work on the client side?
- Can a browser call gRPC directly, and what do gRPC-Web and Connect offer?
- What is gRPC reflection, and when would you turn it on?
- When is REST still a better choice than gRPC?
- Scenario: when a team wants to replace every REST endpoint with gRPC, what questions would you ask first?
- Scenario: when only one backend pod gets all gRPC traffic, what would you check about load balancing?
Go gRPC Interview Questions on Protocol Buffers
Before you answer, study Go JSON encoding so you can compare the two formats. Schema changes break clients quietly, so these Go gRPC interview questions focus on safe evolution.
- What is Protocol Buffers, and why is it smaller than JSON?
- What is a field number, and why must it never change?
- How do varints keep small numbers small on the wire?
- Which changes to a message are backward compatible?
- Why should you mark removed field numbers as reserved?
- How do optional fields work in proto3?
- What are the default values of proto3 fields, and how do they affect checks?
- When would you use oneof in a message, for example for a payment method?
- How do well-known types such as Timestamp and Duration help?
- How do you share .proto files across many repositories?
- What does buf do for linting and breaking change checks?
- How do you convert a Protobuf message to JSON, for example with protojson?
- Why should you not copy generated message structs by value?
- Scenario: when a field rename breaks an older mobile client, what went wrong in the proto change?
- Scenario: when two teams pick the same field number by accident, how would you catch it before release?
Go gRPC Interview Questions on Streams and Errors
Before you answer, study Go context for beginners. Deadlines and status codes travel with every call, so these Go gRPC interview questions check how failures look.
- What are the four kinds of gRPC calls, and when do you use each?
- When would you use server streaming instead of a unary call?
- Why can both sides of a bidirectional stream send at any time?
- How do you end a stream cleanly from the client side?
- How does a deadline travel from client to server?
- What happens on the server when the client deadline passes?
- Why should every gRPC call have a deadline?
- How do you return an error with a status code using the status package?
- Which status codes would you use for not found, invalid input and overload?
- How do you attach extra details to a status error?
- Which errors are safe to retry, and how does a retry policy help?
- What are keepalive pings, and why do idle streams need them?
- How does flow control stop a fast sender from flooding a slow reader?
- Scenario: when one slow service makes a chain of five calls time out, how would you set deadlines?
- Scenario: when a stream of price updates stops without an error, what would you check?
Interceptors, Security and Operations
Before you answer, study Go middleware examples, because interceptors play the same role. These Go gRPC interview questions cover what a gRPC service needs in production.
- What is an interceptor, and why is it similar to HTTP middleware?
- How do unary and stream interceptors differ?
- How do you chain several interceptors?
- What is metadata, and how do you read an auth token from it?
- How do you add TLS to a gRPC server and client?
- When would you use mutual TLS between services?
- What does the gRPC health checking protocol report?
- How do you add tracing to gRPC calls, for example with OpenTelemetry?
- Which metrics would you record per method, such as latency and error rate?
- How do you test a gRPC service without a network, for example with bufconn?
- How do you shut down a gRPC server gracefully?
- What does a max message size limit protect?
- Scenario: when every service copies the same auth code, how would you move it into an interceptor?
- Scenario: when a deploy drops active streams, how would you add a graceful stop?
Go gRPC Interview Questions on Messaging
Before you answer, study Go NATS messaging and Go microservices basics. Many Go teams mix gRPC with queues, so these Go gRPC interview questions end with async messaging.
- When would you send a message to a queue instead of making a direct call?
- What is the difference between pub-sub and a work queue?
- What do at-most-once, at-least-once and exactly-once delivery mean?
- Why must a consumer be idempotent with at-least-once delivery?
- How do Kafka partitions keep order, and what is the limit?
- What is a consumer group, and how does it share work?
- What is a dead letter queue, and when does a message go there?
- How does NATS JetStream add storage on top of core NATS?
- What is the outbox pattern, and why does it help with a database and a queue?
- How do you handle a poison message that always fails?
- Can you scale consumers without breaking order, and how?
- How do you trace one request across a queue?
- How do you test code that publishes and consumes messages?
- Scenario: when a payment message arrives twice and charges a user twice, how would you fix the consumer?
- Scenario: when a consumer falls hours behind, which metrics would you check first?
Go gRPC Interview Questions for Coding Rounds
Before you answer, write each task by hand and keep the proto file small. Interviewers watch your contract design and error codes, not only whether the code runs.
- Write a .proto file for a user service with Get and List calls.
- Implement the Get method and return NotFound for a missing user.
- Add a 2 second deadline to a client call.
- Write a server streaming method that sends ten updates.
- Add a logging interceptor that prints the method and duration.
- Read a bearer token from metadata in an auth interceptor.
- Test a service with bufconn and no real port.
- Write an idempotent consumer that skips message IDs it has seen.
- Publish an event after a database commit with the outbox pattern.
- Retry a failed message three times, then move it to a dead letter queue.
- Add a health check service to the server.
- Scenario: when an interviewer asks you to split a monolith call into a gRPC service, what would the proto look like?
- Scenario: when a consumer must process orders in order per customer, how would you key the messages?
Code Reading Questions
Read each program carefully and predict the output before you run it. Then explain the result in your own words.
package main
import (
"encoding/binary"
"encoding/json"
"fmt"
)
func main() {
for _, n := range []uint64{1, 127, 128, 300, 1 << 20} {
buf := binary.AppendUvarint(nil, n)
fmt.Printf("%d -> %d bytes % x\n", n, len(buf), buf)
}
j, _ := json.Marshal(map[string]uint64{"id": 300})
fmt.Println(len(j), string(j))
}
- How many bytes does each number take as a varint, and why does 128 need two?
- How does this explain why Protobuf messages are usually smaller than JSON?
The second program shows an idempotent consumer that gets some messages twice.
package main
import "fmt"
type Msg struct {
ID string
Amount int
}
func main() {
queue := []Msg{{"m1", 100}, {"m2", 50}, {"m1", 100}, {"m3", 25}, {"m2", 50}}
seen := map[string]bool{}
balance, skipped := 0, 0
for _, m := range queue {
if seen[m.ID] {
skipped++
continue
}
seen[m.ID] = true
balance += m.Amount
}
fmt.Println(balance, skipped, len(seen))
}
- What three numbers print, and what would the balance be without the seen map?
- Where would you store the seen IDs in a real service that restarts?
Quick Revision Table for gRPC Status Codes
Use the table below as a final check before your interview. It lists the status codes that come up most often.
| Status code | Meaning | Typical case |
|---|---|---|
| OK | Call worked | Normal reply |
| InvalidArgument | Bad input from the caller | Empty email field |
| NotFound | No such resource | Unknown user ID |
| AlreadyExists | Duplicate create | Same order ID twice |
| DeadlineExceeded | Ran out of time | Slow downstream call |
| Unavailable | Service cannot answer now | Safe to retry later |
| Unauthenticated | No valid credentials | Missing token |
Also, many interviewers ask you to compare REST and gRPC directly. The diagram below shows the difference side by side.

Official Resources
These official pages explain the rules behind these questions.
- gRPC Go quick start
- Protocol Buffers: proto3 language guide
- gRPC status codes
- Package grpc documentation
Quick Recap
- These Go gRPC interview questions cover basics, Protobuf, streams, interceptors, messaging and coding tasks.
- gRPC uses HTTP/2 and Protobuf, so calls are fast and contracts are strict.
- Never reuse or change a field number, and reserve removed ones.
- Set a deadline on every call and return clear status codes.
- Interceptors handle auth, logs and metrics in one place.
- With at-least-once delivery, every consumer must be idempotent.
What’s Next?
By now, you have Go gRPC interview questions for service calls and messaging. Study the answers in your own notes, then check them against the Go interview topics study guide.


