Test your k6 knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.
Question 1/5Score 0
Why might a team specifically test with a "spike" traffic pattern (a sudden, sharp burst of virtual users) rather than only a gradual ramp-up?
Questions in this quiz
Why might a team specifically test with a "spike" traffic pattern (a sudden, sharp burst of virtual users) rather than only a gradual ramp-up?
What is the difference between k6's "load testing", "stress testing", and "spike testing" scenario types, at a conceptual level?
What is a "virtual user" (VU) in k6 terminology?
What is the purpose of `sleep()` in a k6 test script?
What is a reasonable interpretation of a k6 test result showing `http_req_duration: p(95)=450ms` alongside `http_req_failed: 0.02%`?
What is the purpose of k6's "custom metrics" feature (via `Counter`, `Gauge`, `Trend`, `Rate` from the `k6/metrics` module)?
What is k6?
Why might k6 be a reasonable choice for a development team already comfortable writing JavaScript, compared to a load testing tool using a different scripting/configuration language?
What is the basic structure of a k6 test script?
What is the purpose of parameterizing test data in a k6 script (e.g. using different usernames or search terms per iteration), rather than always sending the exact same hardcoded request?
What does a k6 "check" do, and how does it differ from a hard test assertion that stops execution on failure?
What is a k6 "threshold", and what problem does it solve for automated performance testing (e.g. in CI)?