📞 0339-0387701 (WhatsApp) Contact

« Back to Software Engineering (NCCIA)

Which design pattern for data access is illustrated when all database access goes through one dedicated module?

A. Direct access from every module
B. Encapsulation of data access behind a single interface ✅
C. Global variables everywhere
D. No design at all

Correct Answer: B. Encapsulation of data access behind a single interface

Explanation

A single data-access layer hides database details, so a database change affects one place only.