InterviewStack.io LogoInterviewStack.io

Testability and Shift-Left Testing Questions

Designing software to be testable and moving quality earlier in the lifecycle. Covers testability and design review, shift-left practices, collaborating with developers on quality at design time, and improving testability of existing code. Emphasizes preventing defects rather than only catching them.

MediumTechnical
30 practiced

In XCTest, JUnit, or Jest, how do you typically mock or stub network calls and persistence layers? Walk through the trade-offs between mocks, stubs, and fakes, and explain when each is appropriate for mobile tests.

HardSystem Design
27 practiced

Design a global test scheduler that assigns thousands of tests to multiple Kubernetes clusters based on resource requirements, affinity, cache locality of container images, priority rules, and per-team quotas. Ensure tests run isolated, secrets are injected securely, and cleanup is robust even if nodes fail mid-run.

HardTechnical
23 practiced

Create a pragmatic, low-risk plan to instrument a legacy Python app with minimal code changes to improve testability and observability. Include a plan for wrappers, decorator-based input validation, adding a health endpoint, basic metrics for latency and error rates, structured logging, and an incremental migration strategy with rollback considerations.

MediumTechnical
29 practiced

For a mobile feature that also needs to be usable with VoiceOver or TalkBack, how do you incorporate accessibility checks into your testing strategy? What can be validated automatically, and what still needs manual verification?

MediumTechnical
25 practiced

Explain a consumer-driven contract testing workflow between service A and service B using tools like Pact. Describe how contracts are published, how providers verify contracts in their CI, and how SREs can integrate contract verification to reduce regressions and enable safer rollouts.

Unlock Full Question Bank

Get access to all Testability and Shift-Left Testing interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.