All jobs / Solutions / cloud architect / Architecture Fundamentals

Solutions / cloud architect interview question · 1–3 years

Classic layered architecture versus ports-and-adapters (hexagonal): what does the second one buy you?

The strongest answer

Dependencies point inward: the domain logic knows nothing about the database, web framework or broker, so those can be swapped or faked and the core is tested without infrastructure

Why it works

Right — the point is the direction of dependencies, which makes the core testable and the infrastructure replaceable.

What a good answer covers

Answers that fall short

Who gets asked this

More Architecture Fundamentals questions