Skip to content
Sharp

Testing · interview question

Which test type is the best fit for verifying JPA mappings, SQL queries, or transaction boundaries?

Multiple choiceHardchapter-10-curatedpremiumtestingintegration-testing
Choose one answer
Answer and explanation

Correct answer

A. An integration test using the real persistence boundary

Why

Database mappings and transaction behavior are boundary concerns. They are best checked with integration tests because mocking persistence would hide exactly the failure modes you need to catch.

Test yourself on Testing

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

Start free test
All Testing questions →