Object-Oriented Programming and Design Questions

The object-oriented paradigm: classes and objects, encapsulation, inheritance, polymorphism, and composition, plus SOLID and other design principles that keep object models maintainable. Covers modeling a domain in objects and defending those design choices. A staple conceptual interview across most engineering roles.

HardSystem Design
16 practiced

A customer needs ACID-like guarantees across multiple microservices for critical flows, but you cannot change underlying databases. How would you design application-level patterns (sagas, compensating transactions, two-phase commit emulation) to provide stronger consistency guarantees? Discuss trade-offs in complexity, latency, and how your design can be extended as new services and flows are added.

HardTechnical
19 practiced

Evaluate two approaches for global distributed rate-limiting for a client-facing API: (a) centralized global counters stored in a strongly-consistent store; (b) local per-region token buckets with periodic reconciliation. Discuss accuracy, latency, operational complexity, failure modes, and how you'd evolve the approach to support new policies (per-IP, per-account, per-endpoint). Which would you recommend and why?

HardSystem Design
21 practiced

Design a plugin framework that enables business users to add validation and transformation rules for items (e.g., automated price checks, category mappings) without redeploying core services. Describe plugin lifecycle, sandboxing or capability restrictions, versioning, testing and CI integration, performance isolation, and governance/auditability concerns.

MediumTechnical
20 practiced

Describe strategies to make API and event-schema changes backward compatible. Include examples of safe additive changes, deprecation patterns, contract tests, schema registries, and CI gates you'd implement to reduce risk of breaking clients while enabling iterative extension.

HardSystem Design
32 practiced

Design a throttling and QoS system for a multi-tenant platform where tenants have different SLAs (free, pro, enterprise). Include enforcement mechanisms (hard vs soft quotas), noisy-neighbor isolation, scaling of enforcement, metering and billing hooks, and how to add new SLA tiers or custom tenant policies later without large refactors.

Unlock Full Question Bank

Get access to all 40 Object-Oriented Programming and Design interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.