Skip to content
Sharp

Project Structure · interview question

In a CI pipeline, which type of testing is most effective for verifying the behavior of a service without requiring actual external dependencies?

Multiple choiceMediumchapter-10-curatedpremiumproject-structurecontinuous-integration
Choose one answer
Answer and explanation

Correct answer

B. Unit testing with mocks

Why

Unit testing with mocks is effective for verifying service behavior without relying on actual external dependencies. Mocks simulate the behavior of real objects, allowing tests to focus on the logic within the service itself.

Test yourself on Project Structure

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

Start free test
All Project Structure questions →