All quizzes
Free quiz · 20 questions in the bank

k6 quiz

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
  1. 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?
  2. What is the difference between k6's "load testing", "stress testing", and "spike testing" scenario types, at a conceptual level?
  3. What is a "virtual user" (VU) in k6 terminology?
  4. What is the purpose of `sleep()` in a k6 test script?
  5. What is a reasonable interpretation of a k6 test result showing `http_req_duration: p(95)=450ms` alongside `http_req_failed: 0.02%`?
  6. What is the purpose of k6's "custom metrics" feature (via `Counter`, `Gauge`, `Trend`, `Rate` from the `k6/metrics` module)?
  7. What is k6?
  8. 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?
  9. What is the basic structure of a k6 test script?
  10. 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?
  11. What does a k6 "check" do, and how does it differ from a hard test assertion that stops execution on failure?
  12. What is a k6 "threshold", and what problem does it solve for automated performance testing (e.g. in CI)?
Gaps to close?
Read the curated k6 notes — core concepts, patterns, interview prep.
k6 notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web