Skip to content
Sharp

Spring Core · interview question

How would you explain a potential consequence of directly exposing JPA entities in a REST API in an interview?

Multiple choiceMediumchapter-9-curatedpremiumspring-coredtos-and-entities
Choose one answer
Answer and explanation

Correct answer

A. Increased risk of leaking sensitive information.

Why

Exposing JPA entities can inadvertently expose sensitive fields if they are not correctly filtered or mapped, leading to potential data leaks.

Test yourself on Spring Core

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

Start free test
All Spring Core questions →