Skip to content
Sharp

Design patterns · interview question

How would you explain a common use case for the Proxy pattern in a database application in an interview?

Multiple choiceMediumchapter-13-curatedpremiumdesign-patternsproxy-and-adapter
Choose one answer
Answer and explanation

Correct answer

B. Delaying database joins until needed.

Why

In database applications, the Proxy pattern is often used to delay expensive database joins until they are actually needed. This can optimize performance by avoiding unnecessary data retrieval.

Test yourself on Design patterns

A free test with instant, explained results. No account needed.

Start free test
All Design patterns questions →