Questions

Table of Contents

Total questions: 524


01 Programming

NET

ASP.NET Web API

CSharp

Concurrency and Parallelism

Fundamentals

Types

Other

Runtime

02 Computer Science

Algorithms

Disjoint Set

Graph Algorithms

Search Algorithms

Sorting Algorithms

Data Structures

03 Data Persistence

NoSQL

ORMs

SQL

04 Networks

Architecture & Ops

Protocols

Transport & Sockets

05 Architecture

Application Architecture

Distributed Systems

Message Queues

Scalability Patterns

Patterns

Architectural Patterns

Design Patterns

Resilience Patterns

Your AI service wraps OpenAI APIs with per-tenant limits and runs on 4 instances. How do you enforce limits accurately, and which algorithm do you choose?

Expected answer

  • Use distributed shared state, usually Redis, because per-instance memory breaks global accuracy.
  • Partition by tenant ID so quotas align with billing and fairness.
  • Choose token bucket when tenants need controlled burst capacity with stable average throughput.
  • Use atomic operations (Lua or transaction pattern) for refill and consume to avoid race conditions.
  • Return 429 with Retry-After and remaining quota headers to support client backoff.
    Why this question matters
  • It tests algorithm choice plus distributed systems correctness, not just definition recall.
    Rate Limiting
When would you prefer sliding window counter over fixed window in a public API?

Expected answer

  • Prefer sliding window counter when edge fairness matters and fixed window boundary bursts are unacceptable.
  • It gives near-rolling behavior with lower memory than sliding log.
  • Accept approximation error in exchange for better operational cost.
  • Keep fixed window only where simplicity dominates and traffic patterns are predictable.
    Why this question matters
  • It checks whether the candidate can justify tradeoffs under realistic constraints.
    Rate Limiting
What failure mode should you choose if Redis-based rate limiting is unavailable: fail-open or fail-closed?

Expected answer

  • Decide by endpoint risk profile, not globally.
  • Fail-open for low-risk endpoints when availability is the top priority.
  • Fail-closed for sensitive operations where abuse or cost explosion is unacceptable.
  • Document and test the behavior with chaos drills.
    Why this question matters
  • It tests operational judgment and explicit risk tradeoff reasoning.
    Rate Limiting

System Architecture

06 Development Practices

Paradigms

Principles

07 Security

Authentication

08 SDLC

09 DevOps

Deployment Strategies

Version Control Systems

10 Cloud

11 AI & ML

LLM

Agents

Evaluation

Prompting

RAG

Machine Learning

Evaluation

Tooling


Whats next