THE NEXT LEVEL · PREPARE TO EXPLAIN
Your Go interview map.
Choose a direction, open a topic, and work through the guides — from your first Go interview to systems and failure analysis.

Explain the question, compare a strong answer, then try the worked exercise. Junior through Staff / expert. No finite bank covers every possible interview.
Your study marks and last opened section are saved on this browser. Web and app progress are independent; clearing browser data removes local progress.
Your place and study marks stay in this browser. No account needed.
132 guides in your interview map
Language & reasoning
Explain values, memory and concurrency. Trace an algorithm before choosing an implementation.
Go foundationsValues → interfaces → explicit contracts0/15understood
- Zero values and safe APIsIs every zero value ready for every operation?
- Slice copies share storageWhy did appending to one slice change another?
- Bytes, runes and textWhat does len(s) count, and when does range give the wrong index for a UI?
- Typed nil and method setsWhy can err != nil even though its pointer is nil?
- Errors are part of the APIShould every error be wrapped, logged and retried?
- Generics, interfaces and typed codeWhen should a reusable function be generic?
- Defer arguments and return valuesWhen are deferred function arguments evaluated?
- Panic, recover and failure boundariesCan a parent goroutine recover a child goroutine's panic?
- Map order, nil maps and concurrencyCan you rely on iteration order or read a map during a concurrent write?
- Everything is passed by valueIf Go passes by value, why can a function modify a caller's slice elements?
- Loop variables and toolchain semanticsDo all goroutines in a range loop still capture the same iteration variable?
- Comparability and map keysWhy can using any as a map key panic?
- io.Reader: data and an error togetherShould a read loop discard bytes when Read returns an error?
- Integer width, overflow and representationDoes int always have64 bits, and do integer operations panic on overflow?
- Partial I/O: a short write without an error is not successAn io.Writer returns n < len(p) and nil. Is the caller allowed to report success, and how does that differ from a Reader returning data with EOF?
Memory and runtimeAllocation → scheduling → measured latency0/6understood
- Stack, heap and escape analysisDoes returning a pointer always allocate on the heap?
- GC budgets under loadWhy can a service with little live data still spend substantial CPU in GC?
- Retention, pools and ownershipCan a tiny slice retain a very large allocation?
- Goroutines, threads and CPU quotasWhy does adding goroutines fail to speed up CPU work?
- Memory layout and false sharingTwo independent counters slow down when updated concurrently. Why?
- When unsafe and cgo change the contractCan you keep a C pointer to Go memory after a cgo call?
ConcurrencyOwnership → cancellation → bounded work0/11understood
- Channel closure is a protocolWho closes a channel used by several workers?
- Cancellation is not joiningDoes calling cancel guarantee a goroutine has stopped?
- Data races versus business racesWhy is a check-then-insert still wrong with a mutex around each operation?
- Happens-before, not wishful timingCan another goroutine safely read a value after sleeping?
- Bounded workers and overloadHow do you keep one million jobs from becoming one million goroutines?
- Select, timers and fairnessDoes select always prefer cancellation over a ready result?
- Concurrent cache and stampedesHow do you avoid 1,000 identical cache misses triggering 1,000 database reads?
- Deadlock and lock orderingHow do you debug a service that is alive but no longer processes requests?
- An atomic pointer publishes a mutable mapA writer atomically stores *Config, then updates Config.Limits while readers use it. Does atomic.Pointer make the map access safe?
- A value receiver copies the mutex but shares the mapA cache struct holds sync.Mutex and map[string]int. Its Put method uses a value receiver and locks c.mu. Why can it still race?
- Cancellation is the first select caseBoth ctx.Done and a timer/work channel are ready. The cancellation case appears first in source. Must it win?
AlgorithmsInvariant → trace → complexity → tests0/16understood
- Binary search as a boundary invariantFind the first index whose value is at least a target.
- Two sum and index ownershipFind two distinct indexes whose values sum to a target.
- Sliding window without repeated scansFind the longest byte substring with no repeated byte.
- BFS and shortest unweighted pathsHow do you find the fewest edges between two nodes?
- Dijkstra and stale heap entriesHow do you find cheapest routes with nonnegative edge weights?
- Top-K with a bounded min-heapHow can a stream keep its largest k values without sorting everything?
- Merge sorted streamsHow do you merge two sorted inputs without re-sorting them?
- Dynamic programming: minimum coinsWhy does choosing the largest coin first fail for arbitrary denominations?
- Topological order and cycle detectionHow do you schedule dependencies and detect when no valid order exists?
- Union-find: connectivity without repeated graph searchesHow do you answer many connectivity queries while undirected edges are added?
- LRU cache: lookup and recency form one invariantHow do you implement a bounded least-recently-used cache in Go?
- Merge intervals: define whether touching endpoints overlapHow do you normalize overlapping closed intervals efficiently?
- A comparator using <= and an unstable tie breakA sort comparator returns a.Priority <= b.Priority. Equal-priority items reorder unpredictably. Which contracts must be fixed?
- A shared descendant is not necessarily a directed cycleA DFS marks every visited node as a cycle when reached again. Why does it incorrectly reject a DAG with a shared descendant?
- Find a linked-list cycle entry with constant extra spaceA list may contain a cycle after a non-cyclic prefix. How do you find its entry rather than merely report that some cycle exists?
- Distribute keys without remapping every key on membership changeA service assigns keys with hash(key) % nodeCount. Adding a node moves many keys. What does rendezvous hashing change, and what does it not solve?
Design & production
Connect architecture, network budgets, testing and repeatable builds.
Architecture and systemsBoundaries → consistency → failure recovery0/17understood
- Why Go for backend systems?Why choose Go for a network service, and when would you choose something else?
- Package boundaries and clean codeWhat makes a Go package a useful boundary rather than an extra folder?
- Layered, hexagonal, vertical or services?How would you choose an architecture for a growing Go product?
- Patterns with a costWhich design patterns translate naturally into Go?
- Idempotency, outbox and retriesHow do you keep an accepted order and its published event consistent?
- Design a rate-limited job platformHow would you design a multi-tenant Go job service at 100,000 jobs per minute?
- One use case, two repositories, one invariantA debit and a credit use separate repositories. Both have their own Commit call. Is the transfer atomic?
- The outbox relay crashes after broker acknowledgementAn order and its outbox row committed. The broker accepted the event, but the relay crashed before recording delivery. What must recovery do?
- The payment timed out, then succeeded lateA saga times out while charging a payment. Shipping is cancelled, then a late payment-success event arrives. What state should own recovery?
- A rolling deploy and an old event replayVersion two renames a JSON/database field. Version one workers are still running and retained events will be replayed next week. How do you deploy?
- The SQL query is scoped but the cache is notSQL reads include tenant_id, but Redis caches orders under order:<id>. Tenants may share an order ID. Is the boundary complete?
- Useful telemetry under a cardinality budgetA service adds user_id, request_id and transaction_hash as Prometheus-style metric labels to debug latency. What goes wrong?
- Who closes the injected database client?A request-scoped service receives a shared *sql.DB and defers db.Close in every handler. Is dependency injection correct here?
- WithoutCancel is not a background-job ownerA handler launches a goroutine with context.WithoutCancel(r.Context()) to guarantee an email is sent. What guarantee is actually missing?
- A mock passes while the real adapter breaksA mocked repository test is green, but production code uses the original DB instead of the passed transaction. What did the test fail to prove?
- A number without units crosses an API boundaryAn API accepts timeout: 500 and a monetary amount as float64. What questions must be resolved before implementing it?
- A quorum slogan is proposed as a correctness proofA service counts three acknowledgements from five replicas and claims every read/write is linearizable. What is absent from that argument?
Network servicesRequest → budget → storage → response0/8understood
- One request, one time budgetWhich timeouts should a production Go HTTP service configure?
- Authorization and hostile inputWhat must a Go API validate beyond successful JSON decoding?
- Idempotent API operationsHow should POST /payments behave when the caller retries?
- Graceful shutdown and probesWhat is the correct shutdown order for a Go service?
- SQL pools, transactions and N+1What does sql.DB own, and why can increasing its pool hurt?
- Streaming, backpressure and orderingHow do you stream millions of records without retaining them all?
- Do returned nil but the response is a failureAn HTTP dependency returns 500 or an indefinitely large body. The Go caller checks only the error from Client.Do. What is missing?
- Retrying a partially consumed gRPC streamA client receives half a stream, loses the connection and retries the method. What needs to be specified beyond generated stubs?
Testing and performanceReproduce → assert → measure → diagnose0/7understood
- Tests that prove behaviorWhat makes a good table-driven test?
- Parallel tests without shared stateWhy does a test pass alone but fail with t.Parallel?
- Fuzzing parsers with useful propertiesWhat property would you fuzz for a custom codec?
- Benchmark versus load testWhy can a faster microbenchmark still make production slower?
- CPU, heap, block and traceWhich diagnostic would you collect first for a p99 incident?
- Fault tests around unknown outcomesHow do you test a retry protocol instead of just a retry loop?
- A cancellation test passes only when the machine is luckyA worker test sleeps 10 ms, cancels and sleeps another 10 ms before checking a flag. How do you make the test prove the intended lifecycle?
Modules and toolingGraph → verified bytes → repeatable build0/6understood
- Package, module and repositoryWhy can a repository contain several packages but only one module path in one go.mod?
- Version selection and checksumsWhy did changing one dependency upgrade another?
- go.work, replace and release consumersWhy can code work in a workspace but fail for users?
- Private dependencies and supply chainHow do you keep private module names and credentials out of public services?
- Build reproducibility and resource budgetsWhy does go test ./... fail only under a small CI container?
- API evolution and toolchain changesHow do you upgrade a Go service without silently changing its contract?
Gin servicesRoute → validate → authorize → bounded use case0/6understood
- Abort, return and middleware orderAuthentication middleware calls c.AbortWithStatus(401), then continues executing code. Will the framework automatically return from that function?
- Binding, required fields and oversized JSONA Gin handler calls BindJSON, then tries to replace the error status. Its required title field contains spaces. What contracts are confused?
- A goroutine captures the pooled Gin contextA handler launches go func(){ audit(c); c.JSON(...) }() and returns. Does c.Copy make this design safe?
- A forged forwarded address bypasses a limitA service trusts X-Forwarded-For from every peer and rate-limits by c.ClientIP. What can a direct client influence?
- Recovery middleware versus business rollbackRecovery catches a panic and returns 500 after a database operation. Which guarantees can you honestly report?
- Graceful shutdown with workers and WebSocketsThe server calls http.Server.Shutdown and exits as soon as it returns. The application also has workers and hijacked connections. Is shutdown complete?
Go service securityIdentity → permission → controlled input and egress0/4understood
- A valid JWT reaches another user’s objectSignature verification succeeds, but a request asks for another tenant’s order. What checks are still required?
- A fast hash is proposed for password storageA team wants one SHA-256 helper for password storage, signed messages and encryption. Which requirements are being collapsed?
- A public URL redirects into an internal serviceAn outbound-fetch endpoint checks https and an allowed initial hostname, then follows redirects and resolves DNS again. What remains unsafe?
- The certificate error is hidden with InsecureSkipVerifyA development HTTPS request fails verification. A patch sets InsecureSkipVerify and now the request succeeds. What evidence is lost?
The Go ecosystem
Work with databases, containers and coding agents. Reason about their failure modes.
MongoDB with GoModel → index → atomic write → bounded cursor0/6understood
- One MongoDB client, many operationsDo you create and disconnect a MongoDB client for every HTTP request?
- Compound indexes and paginationWhich index supports tenant filtering and newest-first pagination?
- Conditional updates and uniquenessHow do two Go replicas safely update the same document?
- Transactions and external side effectsCan a MongoDB transaction callback send a payment or email?
- Cursors, cancellation and partial resultsWhy can a cursor loop return no error but still lose records?
- MongoDB under contentionWhy does increasing maxPoolSize fail to fix p99?
Redis with GoShared client → bounded command → expiration → recovery0/6understood
- Redis client lifetime and missing keysHow do you distinguish a missing Redis key from an outage in Go?
- Cache invalidation and expirationHow do you prevent stale data from living forever?
- Pipeline is not a transactionWhat does Redis pipelining guarantee?
- Leases, fencing and stale ownersDoes SET key token NX PX make a perfect distributed lock?
- Streams, pending entries and idempotencyWhen should a consumer acknowledge a Redis Stream message?
- Hot keys, eviction and overloadWhy does Redis latency rise even when Go CPU is low?
Docker and KubernetesImage → Pod → traffic → drain0/9understood
- Build an image, not a development machineWhat belongs in a production Go container image?
- Go, MongoDB and Redis in ComposeWhy can a container not reach MongoDB at localhost:27017?
- Startup, readiness and liveness probesWhy are three Kubernetes probes different?
- Requests, limits and Go runtime budgetsWhat happens when a Pod exceeds CPU or memory limits?
- Rolling updates and compatibilityHow do you deploy without dropping accepted work?
- Autoscaling without melting storageWhy can adding Go replicas make the system slower?
- Secrets, configuration and RBACWhat belongs in an image, a ConfigMap and a Secret?
- Stateful databases are not ordinary PodsShould MongoDB and Redis simply scale like a stateless Go Deployment?
- Out-of-order work and a dangerous offset commitA partition consumer finishes offsets 11 and 13 while 12 is still running. It commits resume offset 14. What can happen after restart?
Go with coding agentsContext → small change → evidence → review0/8understood
- Use an agent without outsourcing understandingHow would you use Claude Code, Codex or Cursor for a Go change?
- Codex repository guidance for GoWhat should a Go repository put in AGENTS.md for Codex?
- Claude Code: context and verificationHow do you make Claude Code useful on an unfamiliar Go service?
- Cursor rules and scoped editsHow would you guide Cursor while preserving an existing Go API?
- Verify generated Go APIs and dependenciesHow do you catch a coding agent that invents a driver method?
- Agent permissions and prompt injectionWhy can repository text be unsafe input for a coding agent?
- Review AI-written concurrent GoWhat should you inspect first in generated goroutine code?
- Demonstrate your own engineering judgmentHow do you discuss AI-assisted Go work in an interview?
Blockchain infrastructureProtocol → exact units → intent → canonical outcome0/7understood
- RPC backend, indexer or blockchain node?You need a Go service that reads token balances and indexes events. Does it need to implement consensus or import an entire chain-application framework?
- The endpoint is reachable but serves the wrong chainThe Go client connects successfully to an RPC URL. What must it verify before using balances or preparing transaction intent?
- The token amount lost one base unitA decimal token amount is decoded to float64, multiplied by 10^18 and then converted to big.Int. Why can the result already be wrong?
- eth_call succeeded; the transaction still failedA contract call simulation succeeds, but a later submitted transaction reverts. Is this necessarily a bug in ABI encoding?
- Two replicas reserve the same account nonceTwo Go processes call PendingNonceAt for one account, both receive 42 and prepare different transfers. Would a mutex in each process solve it?
- A signing service can sign the wrong valid transactionAn external signer securely stores the key, but a caller can submit any chain, destination and amount. Is key custody enough?
- The indexer reconnects after a reorgA WebSocket subscription reconnects after missing several blocks, and a previously credited log now belongs to an orphaned block. How does the indexer recover?
Every guide is open. Difficulty describes the reasoning expected, not a hiring guarantee. Study marks are separate from course completion.
Share a progress link with a person or AI
Publish an explicit read-only snapshot of completed lesson IDs, interview marks and Continue places. It is public to anyone with the link for 90 days. It does not update automatically or change anyone’s progress. No code, attempts, names or account.
Back up or move your local progress
Download your course marks, interview self-assessments and Continue bookmarks. No account, upload or automatic app sync. Web marks are self-reported, not compiler results.