InterviewStack.io LogoInterviewStack.io

Performance and Load Testing Questions

Evaluating a system under expected and extreme load. Covers load, stress, soak, and scalability testing, defining performance goals, generating load, and interpreting latency and throughput results. Includes identifying bottlenecks and validating capacity before release.

MediumTechnical
72 practiced

Implement the core design of an asyncio-based Python client that can generate configurable QPS to an inference endpoint, record latency and status codes, and stop after N seconds. Show the main function signatures, concurrency control mechanism, and how you would aggregate percentiles and error rates. You may use pseudocode or real code; focus on correctness and resource control, not on full HTTP request mockups.

HardSystem Design
70 practiced

Design an end-to-end load test for a recommendation API that uses an online feature store with strong consistency guarantees. The test should simulate realistic user sessions, feature freshness constraints, delayed label arrival for offline metrics, warm and cold cache patterns, and failure modes. Describe traffic profiles, ramp patterns, failure injection points, and the metrics to capture (latency percentiles, error rates, throughput, feature-staleness).

That is every published Performance and Load Testing question for AI Engineer so far. Browse the other topics in this category, or practice this one interactively.