Karate interview questions — Medium
207 medium-level Karate questions from our API Testing bank, each with the correct answer and an explanation of why it is correct.
What this covers
Karate appears throughout API Testing interviews. At medium level, interviewers are typically checking that you have used it in practice: what you configured, what broke, and how you knew it worked. Work through these, then explain your answer out loud; the second part is what interviews actually test.
2 example questions
1. Which Karate keyword performs a powerful (including fuzzy/schema) comparison of a response?
- A. Assert.
- B. Match.correct
- C. Verify.
- D. Check.
Why: Karate's 'match' keyword does deep, flexible comparisons (exact, contains, schema/markers like '#string', '#number').
2. A defining feature of the Karate framework is that…
- A. You must write extensive Java step definitions.
- B. Tests are written in Gherkin-style syntax with no Java/step-definition code required.correct
- C. It only tests SOAP services.
- D. It cannot do assertions.
Why: Karate combines API testing and BDD: you write Gherkin feature files directly, and it provides built-in HTTP and assertion steps with no glue code.