Technical round · Theory

Theory questions

Practise answering first. Each answer takes two clicks to reveal, so you can test your recall without spoilers.

Showing 270 of 270 questions

Backend & Python · #theory-1

What is the difference between a list and a tuple in Python?

Backend & Python · #theory-2

What are mutable default arguments?

Backend & Python · #theory-3

What is the difference between == and is?

Backend & Python · #theory-4

What is a Python generator?

Backend & Python · #theory-5

What is an iterator?

Backend & Python · #theory-6

What is a decorator?

Backend & Python · #theory-7

What is a context manager?

Backend & Python · #theory-8

What is the GIL?

Backend & Python · #theory-9

When should you use threads, processes or async?

Backend & Python · #theory-10

What does async/await do?

Backend & Python · #theory-11

How do you handle exceptions responsibly?

Backend & Python · #theory-12

What is a Python dataclass?

Backend & Python · #theory-13

What is a type hint in Python?

Backend & Python · #theory-14

What is the difference between shallow and deep copy?

Backend & Python · #theory-15

What are *args and **kwargs?

Backend & Python · #theory-16

What are Python comprehensions?

Backend & Python · #theory-17

How does dictionary lookup work?

Backend & Python · #theory-18

What is duck typing?

Backend & Python · #theory-19

What is the difference between a classmethod and a staticmethod?

Backend & Python · #theory-20

What is a closure?

Backend & Python · #theory-21

What are common HTTP methods?

Backend & Python · #theory-22

What does idempotent mean in HTTP?

Backend & Python · #theory-23

How does an idempotency key protect a payment?

Backend & Python · #theory-24

What is the difference between 401 and 403?

Backend & Python · #theory-25

When should an API return 404 or 409?

Backend & Python · #theory-26

What is REST?

Backend & Python · #theory-27

What is pagination and why use it?

Backend & Python · #theory-28

How does cursor pagination avoid missed results?

Backend & Python · #theory-29

What is CORS?

Backend & Python · #theory-30

What is CSRF?

Backend & Python · #theory-31

How does a JWT differ from a session?

Backend & Python · #theory-32

What is the difference between authentication and authorization?

Backend & Python · #theory-33

How should passwords be stored?

Backend & Python · #theory-34

What is FastAPI dependency injection?

Backend & Python · #theory-35

What does Pydantic do in FastAPI?

Backend & Python · #theory-36

What is the difference between def and async def endpoints in FastAPI?

Backend & Python · #theory-37

How do you manage database sessions in FastAPI?

Backend & Python · #theory-38

How do you test a FastAPI endpoint?

Backend & Python · #theory-39

What is ASGI?

Backend & Python · #theory-40

What is WSGI?

Backend & Python · #theory-41

What is Django ORM lazy evaluation?

Backend & Python · #theory-42

How do select_related and prefetch_related differ?

Backend & Python · #theory-43

What is the N+1 query problem?

Backend & Python · #theory-44

What is a Django migration?

Backend & Python · #theory-45

How do Django transactions work?

Backend & Python · #theory-46

What does a DRF serializer do?

Backend & Python · #theory-47

What are DRF viewsets and routers?

Backend & Python · #theory-48

How do DRF permissions differ from authentication?

Backend & Python · #theory-49

Why filter a DRF queryset by user or tenant?

Backend & Python · #theory-50

How should API errors be shaped?

Backend & Python · #theory-51

What is OpenAPI?

Backend & Python · #theory-52

What is middleware?

Backend & Python · #theory-53

What is rate limiting?

Backend & Python · #theory-54

What is a background job?

Backend & Python · #theory-55

How do retries become safe?

Backend & Python · #theory-56

What is a webhook?

Backend & Python · #theory-57

What is the difference between unit and integration tests?

Backend & Python · #theory-58

What is a race condition?

Backend & Python · #theory-59

How do you securely handle file uploads?

Backend & Python · #theory-60

How do you prevent SSRF?

Frontend: React, Next.js & TypeScript · #theory-61

What is the virtual DOM?

Frontend: React, Next.js & TypeScript · #theory-62

What is a React component?

Frontend: React, Next.js & TypeScript · #theory-63

What are props?

Frontend: React, Next.js & TypeScript · #theory-64

What is React state?

Frontend: React, Next.js & TypeScript · #theory-65

How does React batch state updates?

Frontend: React, Next.js & TypeScript · #theory-66

Why do list items need stable keys?

Frontend: React, Next.js & TypeScript · #theory-67

What is a controlled input?

Frontend: React, Next.js & TypeScript · #theory-68

What is useEffect for?

Frontend: React, Next.js & TypeScript · #theory-69

How does an effect dependency array work?

Frontend: React, Next.js & TypeScript · #theory-70

Why must hooks be called in a consistent order?

Frontend: React, Next.js & TypeScript · #theory-71

What is a custom hook?

Frontend: React, Next.js & TypeScript · #theory-72

What is lifting state up?

Frontend: React, Next.js & TypeScript · #theory-73

What is context used for?

Frontend: React, Next.js & TypeScript · #theory-74

What does useRef do?

Frontend: React, Next.js & TypeScript · #theory-75

What is useMemo?

Frontend: React, Next.js & TypeScript · #theory-76

What is useCallback?

Frontend: React, Next.js & TypeScript · #theory-77

What is a stale closure in React?

Frontend: React, Next.js & TypeScript · #theory-78

How do you prevent a fetch race in a component?

Frontend: React, Next.js & TypeScript · #theory-79

What is hydration?

Frontend: React, Next.js & TypeScript · #theory-80

What is server-side rendering?

Frontend: React, Next.js & TypeScript · #theory-81

What is static generation?

Frontend: React, Next.js & TypeScript · #theory-82

What is a React Server Component?

Frontend: React, Next.js & TypeScript · #theory-83

What does use client mean in Next.js?

Frontend: React, Next.js & TypeScript · #theory-84

How does routing work in the Next.js App Router?

Frontend: React, Next.js & TypeScript · #theory-85

What is a Next.js layout?

Frontend: React, Next.js & TypeScript · #theory-86

What is a Next.js Route Handler?

Frontend: React, Next.js & TypeScript · #theory-87

What is a Server Action?

Frontend: React, Next.js & TypeScript · #theory-88

What is Suspense?

Frontend: React, Next.js & TypeScript · #theory-89

What is an error boundary?

Frontend: React, Next.js & TypeScript · #theory-90

What is code splitting?

Frontend: React, Next.js & TypeScript · #theory-91

What is the difference between type and interface in TypeScript?

Frontend: React, Next.js & TypeScript · #theory-92

What is a TypeScript union?

Frontend: React, Next.js & TypeScript · #theory-93

What is narrowing?

Frontend: React, Next.js & TypeScript · #theory-94

What is a generic?

Frontend: React, Next.js & TypeScript · #theory-95

What is the difference between any and unknown?

Frontend: React, Next.js & TypeScript · #theory-96

What is never?

Frontend: React, Next.js & TypeScript · #theory-97

What does strictNullChecks do?

Frontend: React, Next.js & TypeScript · #theory-98

What is a discriminated union?

Frontend: React, Next.js & TypeScript · #theory-99

What are utility types?

Frontend: React, Next.js & TypeScript · #theory-100

What is structural typing?

Frontend: React, Next.js & TypeScript · #theory-101

Why validate data at runtime in TypeScript?

Frontend: React, Next.js & TypeScript · #theory-102

What is event delegation?

Frontend: React, Next.js & TypeScript · #theory-103

What is the event loop?

Frontend: React, Next.js & TypeScript · #theory-104

What is the difference between debounce and throttle?

Frontend: React, Next.js & TypeScript · #theory-105

What is semantic HTML?

Frontend: React, Next.js & TypeScript · #theory-106

How do you make a modal accessible?

Frontend: React, Next.js & TypeScript · #theory-107

What is XSS and how do you prevent it in React?

Frontend: React, Next.js & TypeScript · #theory-108

What is the browser same-origin policy?

Frontend: React, Next.js & TypeScript · #theory-109

What is a content security policy?

Frontend: React, Next.js & TypeScript · #theory-110

How do you improve frontend performance?

Full-stack development · #theory-111

What happens when you enter a URL?

Full-stack development · #theory-112

What is DNS?

Full-stack development · #theory-113

What does TLS protect?

Full-stack development · #theory-114

What is a reverse proxy?

Full-stack development · #theory-115

What is a CDN?

Full-stack development · #theory-116

What is an HTTP cookie?

Full-stack development · #theory-117

What are localStorage and sessionStorage?

Full-stack development · #theory-118

What is cache invalidation?

Full-stack development · #theory-119

What is optimistic UI?

Full-stack development · #theory-120

What is eventual consistency?

Full-stack development · #theory-121

What is a WebSocket?

Full-stack development · #theory-122

What is server-sent events?

Full-stack development · #theory-123

How do you implement search safely?

Full-stack development · #theory-124

What is an API contract?

Full-stack development · #theory-125

How do you evolve an API without breaking clients?

Full-stack development · #theory-126

What is a monolith?

Full-stack development · #theory-127

When are microservices justified?

Full-stack development · #theory-128

What is a modular monolith?

Full-stack development · #theory-129

What is a service layer?

Full-stack development · #theory-130

What is dependency inversion?

Full-stack development · #theory-131

What is separation of concerns?

Full-stack development · #theory-132

What is a domain model?

Full-stack development · #theory-133

What is data validation at a trust boundary?

Full-stack development · #theory-134

Why should frontend validation be repeated on the server?

Full-stack development · #theory-135

What is an environment variable?

Full-stack development · #theory-136

How should secrets be managed?

Full-stack development · #theory-137

What is observability?

Full-stack development · #theory-138

What makes a useful application log?

Full-stack development · #theory-139

What is distributed tracing?

Full-stack development · #theory-140

What is feature flagging?

Full-stack development · #theory-141

How do you safely roll out a feature?

Full-stack development · #theory-142

What is a health check?

Full-stack development · #theory-143

How do you handle long-running requests?

Full-stack development · #theory-144

What is the outbox pattern?

Full-stack development · #theory-145

What is an API gateway?

Full-stack development · #theory-146

How do you prevent duplicate form submissions?

Full-stack development · #theory-147

What is accessibility testing?

Full-stack development · #theory-148

What is an end-to-end test?

Full-stack development · #theory-149

How do you investigate a production bug?

Full-stack development · #theory-150

What makes a good pull request?

DevOps, cloud & security · #theory-151

What is CI?

DevOps, cloud & security · #theory-152

What is CD?

DevOps, cloud & security · #theory-153

What is a deployment pipeline?

DevOps, cloud & security · #theory-154

What is an immutable deployment artifact?

DevOps, cloud & security · #theory-155

What is a container image?

DevOps, cloud & security · #theory-156

What is a container?

DevOps, cloud & security · #theory-157

What is a Dockerfile?

DevOps, cloud & security · #theory-158

What is a multi-stage build?

DevOps, cloud & security · #theory-159

Why run a container as non-root?

DevOps, cloud & security · #theory-160

What is a container registry?

DevOps, cloud & security · #theory-161

What is an image tag versus a digest?

DevOps, cloud & security · #theory-162

What is Docker Compose?

DevOps, cloud & security · #theory-163

What is a container volume?

DevOps, cloud & security · #theory-164

What is Kubernetes?

DevOps, cloud & security · #theory-165

What is a Kubernetes Pod?

DevOps, cloud & security · #theory-166

What is a Kubernetes Deployment?

DevOps, cloud & security · #theory-167

What is a Kubernetes Service?

DevOps, cloud & security · #theory-168

What is a readiness probe?

DevOps, cloud & security · #theory-169

What is a liveness probe?

DevOps, cloud & security · #theory-170

What are resource requests and limits?

DevOps, cloud & security · #theory-171

What is horizontal scaling?

DevOps, cloud & security · #theory-172

What is a load balancer?

DevOps, cloud & security · #theory-173

What is autoscaling?

DevOps, cloud & security · #theory-174

What is a rolling deployment?

DevOps, cloud & security · #theory-175

What is a blue-green deployment?

DevOps, cloud & security · #theory-176

What is a canary deployment?

DevOps, cloud & security · #theory-177

How do you roll back safely?

DevOps, cloud & security · #theory-178

What is infrastructure as code?

DevOps, cloud & security · #theory-179

What is configuration drift?

DevOps, cloud & security · #theory-180

What is least privilege?

DevOps, cloud & security · #theory-181

What is IAM?

DevOps, cloud & security · #theory-182

What is a service account?

DevOps, cloud & security · #theory-183

What is a VPC?

DevOps, cloud & security · #theory-184

What is a subnet?

DevOps, cloud & security · #theory-185

What is a security group or firewall rule?

DevOps, cloud & security · #theory-186

What is DNS TTL?

DevOps, cloud & security · #theory-187

What is TLS termination?

DevOps, cloud & security · #theory-188

What is a certificate expiration strategy?

DevOps, cloud & security · #theory-189

What is an SLI?

DevOps, cloud & security · #theory-190

What is an SLO?

DevOps, cloud & security · #theory-191

What is an error budget?

DevOps, cloud & security · #theory-192

What is an SLA?

DevOps, cloud & security · #theory-193

What is the difference between logs, metrics and traces?

DevOps, cloud & security · #theory-194

What is an alert?

DevOps, cloud & security · #theory-195

What is incident severity?

DevOps, cloud & security · #theory-196

What is a postmortem?

DevOps, cloud & security · #theory-197

What is a backup?

DevOps, cloud & security · #theory-198

What are RPO and RTO?

DevOps, cloud & security · #theory-199

What is a database replica?

DevOps, cloud & security · #theory-200

What is disaster recovery?

DevOps, cloud & security · #theory-201

What is a secret rotation?

DevOps, cloud & security · #theory-202

What is a software supply-chain attack?

DevOps, cloud & security · #theory-203

What is an SBOM?

DevOps, cloud & security · #theory-204

What is vulnerability scanning?

DevOps, cloud & security · #theory-205

What is a zero-downtime schema migration?

DevOps, cloud & security · #theory-206

What is a process exit code?

DevOps, cloud & security · #theory-207

What is a Linux signal?

DevOps, cloud & security · #theory-208

What is a reverse proxy timeout?

DevOps, cloud & security · #theory-209

What is a dead-letter queue?

DevOps, cloud & security · #theory-210

What is backpressure?

Databases & DBMS · #theory-211

What is a DBMS?

Databases & DBMS · #theory-212

What is the difference between SQL and NoSQL databases?

Databases & DBMS · #theory-213

What is a primary key?

Databases & DBMS · #theory-214

What is a foreign key?

Databases & DBMS · #theory-215

What is a unique constraint?

Databases & DBMS · #theory-216

What is normalization?

Databases & DBMS · #theory-217

What is an index?

Databases & DBMS · #theory-218

What is a composite index?

Databases & DBMS · #theory-219

How do you diagnose a slow SQL query?

Databases & DBMS · #theory-220

What is a transaction?

Databases & DBMS · #theory-221

What does ACID mean?

Databases & DBMS · #theory-222

What are isolation levels?

Databases & DBMS · #theory-223

What is a dirty read?

Databases & DBMS · #theory-224

What is a non-repeatable read?

Databases & DBMS · #theory-225

What is a phantom read?

Databases & DBMS · #theory-226

What is a deadlock?

Databases & DBMS · #theory-227

What is optimistic concurrency control?

Databases & DBMS · #theory-228

What is a join?

Databases & DBMS · #theory-229

What is the difference between WHERE and HAVING?

Databases & DBMS · #theory-230

What is a database connection pool?

Databases & DBMS · #theory-231

What is the difference between a backup and replication?

Databases & DBMS · #theory-232

What is a database migration?

Databases & DBMS · #theory-233

What is a SQL injection?

Databases & DBMS · #theory-234

What is keyset pagination?

Databases & DBMS · #theory-235

What is a materialized view?

LLMs, RAG & AI engineering · #theory-236

What is a language model token?

LLMs, RAG & AI engineering · #theory-237

What is a context window?

LLMs, RAG & AI engineering · #theory-238

What does temperature control?

LLMs, RAG & AI engineering · #theory-239

What is retrieval-augmented generation?

LLMs, RAG & AI engineering · #theory-240

How do embeddings support semantic search?

LLMs, RAG & AI engineering · #theory-241

How should documents be chunked for RAG?

LLMs, RAG & AI engineering · #theory-242

What is hybrid search?

LLMs, RAG & AI engineering · #theory-243

What is reranking?

LLMs, RAG & AI engineering · #theory-244

How do you evaluate a RAG system?

LLMs, RAG & AI engineering · #theory-245

What is prompt injection?

LLMs, RAG & AI engineering · #theory-246

How do you prevent cross-tenant retrieval?

LLMs, RAG & AI engineering · #theory-247

What is a hallucination?

LLMs, RAG & AI engineering · #theory-248

What is tool calling?

LLMs, RAG & AI engineering · #theory-249

When should you fine-tune instead of using RAG?

LLMs, RAG & AI engineering · #theory-250

How do you reduce LLM latency and cost?

Project architecture & system design · #theory-251

How would you design a URL shortener?

Project architecture & system design · #theory-252

How would you design a file upload service?

Project architecture & system design · #theory-253

How would you design a task queue?

Project architecture & system design · #theory-254

How would you design a notification service?

Project architecture & system design · #theory-255

How would you design a rate limiter?

Project architecture & system design · #theory-256

How would you design a chat application?

Project architecture & system design · #theory-257

How would you design a search service?

Project architecture & system design · #theory-258

How would you design a payment workflow?

Project architecture & system design · #theory-259

How would you design an audit log?

Project architecture & system design · #theory-260

How would you design a multi-tenant SaaS?

Project architecture & system design · #theory-261

How would you design a document Q&A system?

Project architecture & system design · #theory-262

How would you design an LLM gateway?

Project architecture & system design · #theory-263

How would you design an agent with tools?

Project architecture & system design · #theory-264

How would you design a streaming AI response?

Project architecture & system design · #theory-265

How would you design a background report generator?

Project architecture & system design · #theory-266

How would you design a scalable API?

Project architecture & system design · #theory-267

How would you design an inventory reservation system?

Project architecture & system design · #theory-268

How would you design a webhook delivery system?

Project architecture & system design · #theory-269

How would you migrate a monolith to services?

Project architecture & system design · #theory-270

How would you design a safe deployment for a database change?