Architectural Patterns and Anti-Patterns Questions

Architecture-level patterns and the anti-patterns that signal a wrong turn. Patterns: layered and n-tier architecture, including where cross-cutting concerns like authentication, rate-limiting and tracing belong, dependency injection trade-offs, and thin-versus-fat controller design; hexagonal (ports and adapters) and clean architecture; CQRS and event sourcing; backend-for-frontend; plugin (microkernel) extension models; and the coupling, cohesion, encapsulation and separation-of-concerns principles behind them, including when each applies and what it costs. Anti-patterns: distributed monolith, chatty services, shared-database coupling, cyclic service dependencies, leaky abstractions that expose internal schemas, and golden-hammer pattern adoption. Covers the detection signals (deploy coupling, call-graph fan-out, change amplification, trace evidence), incremental remediation, and architecture governance that keeps smells from recurring. This is about diagnosing and fixing the smell in an existing design, not the monolith-versus-microservices decision itself.

MediumTechnical
86 practiced

Compare layered (three-tier) architecture with hexagonal (ports-and-adapters) and clean architecture. When would you recommend a layered approach over hexagonal or clean, and what are the trade-offs in testability, adaptability to changing I/O, and team boundaries?

MediumTechnical
83 practiced

Explain the Backend-for-Frontend (BFF) pattern: how it tailors APIs per client type (mobile vs. web), reduces over-fetching, and hides internal service complexity. What deployment, testing, and team-ownership trade-offs would you weigh before adopting BFFs?

MediumTechnical
74 practiced

What's the difference between loose and tight coupling between services, and why does it matter for how independently teams can ship? Name a few concrete techniques you'd use to loosen coupling in an existing tightly-coupled system, and describe how you'd actually measure or surface coupling levels across a codebase or service map today.

MediumSystem Design
129 practiced

A customer needs significant customization, but your product is built around a single core codebase shared by every customer. Propose an architecture and delivery approach that balances customizability with maintainability: consider feature flags, plugin or extension models, configuration schemas, and release management.

HardSystem Design
94 practiced

Design an extensible plugin architecture for a platform where customers or internal teams can add custom business logic (for example, custom validation rules or scoring logic) without modifying the core service. Cover how plugins are structured and versioned, how you'd validate and sandbox them for safety, whether they can be hot-reloaded, how you'd enforce backward compatibility across plugin versions, and how you'd test a new plugin without risking the core service.

Unlock Full Question Bank

Get access to all 20 Architectural Patterns and Anti-Patterns interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.