Skip to content
Sharp

Testing · interview question

Which of the following is a trade-off when using real SQL databases in integration tests?

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

Correct answer

D. Increased execution time.

Why

Using real SQL databases in integration tests increases execution time due to the overhead of setting up and tearing down real databases, compared to using mocks or in-memory databases.

Test yourself on Testing

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

Start free test
All Testing questions →