Language Runtimes interview questions
100 Backend Engineering practice questions. Read what a strong answer covers, then practise it out loud against the clock.
Practise Language Runtimes questionsBeginner
- Array lists vs linked lists
- Building a large string in a loop is slow
- Checked vs unchecked exceptions in Java
- Checking membership in a list is slow
- Choosing a language for a new service
- Closures
- Compiled vs interpreted languages
- Dates shift by a day for some users
- Empty catch blocks hide failures
- Exceptions vs returning errors
- Generics
- How a hash map works
- How CPython runs your code
- Large IDs get corrupted in the frontend
- Memory leaks in garbage-collected languages
- Objects disappear from a HashMap
- Package managers and lock files
- Pass by value vs pass by reference
- Python function remembers old values
- Reading a stack trace to find a bug
- Service runs out of memory reading a file
- Stack vs heap memory
- Static vs dynamic typing
- String comparison works sometimes
- Strong vs weak typing
- The equals and hashCode contract
- Two libraries need different versions of a dependency
- Value types vs reference types
- What a JIT compiler does
- What garbage collection is
- What Node.js is
- What the JVM is
- Why Go is popular for backends
- Why strings are immutable
Intermediate
- A regex takes down the service
- Boxing and unboxing costs
- Choosing a Java garbage collector
- Debug logging slows the service
- Error handling in Go
- Escape analysis
- Generational garbage collection
- Go service memory higher than its heap
- Go's garbage collector and tuning knobs
- Holding millions of objects in Python uses too much memory
- How Python manages memory
- Interfaces in Go
- Java container killed despite heap limit
- Java service hangs without errors
- Java service has long GC pauses
- JIT warm-up
- JSON serialisation is a CPU hotspot
- JVM memory areas
- Large API responses cause memory spikes
- Node.js crashes with heap out of memory
- Node.js process crashes on unhandled promise rejections
- Node.js streams
- Profiling a slow CPU-bound endpoint
- Python virtual environments and packaging
- Python worker memory keeps growing
- Reflection and its costs
- Slow startup of a Java service on Kubernetes
- Too many open files errors
- Type erasure vs reified generics
- Upgrading from Java 11 to Java 21
- Upgrading to a new Node.js LTS
- V8 heap limits in Node.js
- When object pooling helps
Experienced
- Choosing native compilation for serverless functions
- CPU caches and data locality
- Deserialising huge payloads spikes CPU and memory
- Evaluating free-threaded Python for a CPU-bound service
- Free-threaded Python
- GC causes p99 spikes in a low-latency service
- Go service with a large in-memory cache has latency spikes
- Go's scheduler and the GMP model
- GraalVM native image
- Java process memory grows beyond heap
- Java service slows down after days of uptime
- Memory allocators and fragmentation
- Metaspace grows with every redeploy
- Microbenchmark results don't match production
- Migrating services to ARM processors
- Node.js uses one core on a big machine
- Off-heap memory
- One big instance or many small ones?
- Per-thread counters scale badly
- Python service crashes with segmentation faults
- Python service memory grows without a leak
- Runtime misbehaves under container CPU limits
- Rust's ownership model for backend services
- Safepoints and time-to-safepoint
- Setting up continuous profiling in production
- Should we rewrite a Python service in Go?
- Slow Python serverless cold starts
- Speeding up a hot path with Rust
- Subtle Node.js memory leak from listeners
- Tiered compilation and deoptimisation
- V8 hidden classes and inline caches
- WebAssembly on the server
- Zero-copy I/O