Skip to content

API Security interview questions — Easy

175 easy-level API Security questions from our API Testing bank, each with the correct answer and an explanation of why it is correct.

What this covers

API Security appears throughout API Testing interviews. At easy level, interviewers are typically checking that you know the fundamentals and can describe them precisely — definitions, defaults, and the basic mechanics. Work through these, then explain your answer out loud; the second part is what interviews actually test.

20 example questions

  1. 1. In the context of API Security, token expiry (exp claim) is best described as:

    • A. Credential presented in the Authorization header to access an API.
    • B. Mutual TLS where client and server both present certificates.
    • C. Permission granted to a token limiting what it can do.
    • D. JWT claim defining when the token becomes invalid.correct

    Why: token expiry (exp claim): JWT claim defining when the token becomes invalid.

  2. 2. In API Security, what does token expiry (exp claim) do or refer to?

    • A. Insecure Direct Object Reference: accessing others' data via IDs.
    • B. Authorized simulated attack to find exploitable weaknesses.
    • C. Long-lived credential exchanged for new access tokens.
    • D. JWT claim defining when the token becomes invalid.correct

    Why: token expiry (exp claim): JWT claim defining when the token becomes invalid.

  3. 3. Which of the following best describes OWASP API Security Top 10 in API Security?

    • A. Long-lived credential exchanged for new access tokens.
    • B. JWT claim defining when the token becomes invalid.
    • C. Credential presented in the Authorization header to access an API.
    • D. Industry list of the most critical API vulnerabilities.correct

    Why: OWASP API Security Top 10: Industry list of the most critical API vulnerabilities.

  4. 4. Which of the following best describes refresh token in API Security?

    • A. Long-lived credential exchanged for new access tokens.correct
    • B. Permission granted to a token limiting what it can do.
    • C. Insecure Direct Object Reference: accessing others' data via IDs.
    • D. JWT claim defining when the token becomes invalid.

    Why: refresh token: Long-lived credential exchanged for new access tokens.

  5. 5. In API Security, what does OWASP API Security Top 10 do or refer to?

    • A. Credential presented in the Authorization header to access an API.
    • B. Industry list of the most critical API vulnerabilities.correct
    • C. Mutual TLS where client and server both present certificates.
    • D. Insecure Direct Object Reference: accessing others' data via IDs.

    Why: OWASP API Security Top 10: Industry list of the most critical API vulnerabilities.

  6. 6. What is the purpose of OWASP API Security Top 10 in API Security?

    • A. JWT claim defining when the token becomes invalid.
    • B. Permission granted to a token limiting what it can do.
    • C. Industry list of the most critical API vulnerabilities.correct
    • D. Hash-based signature proving request integrity and origin.

    Why: OWASP API Security Top 10: Industry list of the most critical API vulnerabilities.

  7. 7. What is the purpose of token expiry (exp claim) in API Security?

    • A. Permission granted to a token limiting what it can do.
    • B. Authorized simulated attack to find exploitable weaknesses.
    • C. JWT claim defining when the token becomes invalid.correct
    • D. Credential presented in the Authorization header to access an API.

    Why: token expiry (exp claim): JWT claim defining when the token becomes invalid.

  8. 8. Which of the following best describes Bearer token in API Security?

    • A. Mutual TLS where client and server both present certificates.
    • B. Authorized simulated attack to find exploitable weaknesses.
    • C. Credential presented in the Authorization header to access an API.correct
    • D. Long-lived credential exchanged for new access tokens.

    Why: Bearer token: Credential presented in the Authorization header to access an API.

  9. 9. In API Security, what does penetration testing do or refer to?

    • A. Industry list of the most critical API vulnerabilities.
    • B. Long-lived credential exchanged for new access tokens.
    • C. Authorized simulated attack to find exploitable weaknesses.correct
    • D. JWT claim defining when the token becomes invalid.

    Why: penetration testing: Authorized simulated attack to find exploitable weaknesses.

  10. 10. Which of the following best describes HMAC signature in API Security?

    • A. Mutual TLS where client and server both present certificates.
    • B. Industry list of the most critical API vulnerabilities.
    • C. Hash-based signature proving request integrity and origin.correct
    • D. Long-lived credential exchanged for new access tokens.

    Why: HMAC signature: Hash-based signature proving request integrity and origin.

  11. 11. Which of the following best describes token expiry (exp claim) in API Security?

    • A. JWT claim defining when the token becomes invalid.correct
    • B. Insecure Direct Object Reference: accessing others' data via IDs.
    • C. Permission granted to a token limiting what it can do.
    • D. Industry list of the most critical API vulnerabilities.

    Why: token expiry (exp claim): JWT claim defining when the token becomes invalid.

  12. 12. Which of the following best describes penetration testing in API Security?

    • A. Insecure Direct Object Reference: accessing others' data via IDs.
    • B. Credential presented in the Authorization header to access an API.
    • C. Authorized simulated attack to find exploitable weaknesses.correct
    • D. Industry list of the most critical API vulnerabilities.

    Why: penetration testing: Authorized simulated attack to find exploitable weaknesses.

  13. 13. Which of the following best describes IDOR in API Security?

    • A. Credential presented in the Authorization header to access an API.
    • B. Insecure Direct Object Reference: accessing others' data via IDs.correct
    • C. Mutual TLS where client and server both present certificates.
    • D. JWT claim defining when the token becomes invalid.

    Why: IDOR: Insecure Direct Object Reference: accessing others' data via IDs.

  14. 14. In API Security, what does refresh token do or refer to?

    • A. Industry list of the most critical API vulnerabilities.
    • B. JWT claim defining when the token becomes invalid.
    • C. Long-lived credential exchanged for new access tokens.correct
    • D. Credential presented in the Authorization header to access an API.

    Why: refresh token: Long-lived credential exchanged for new access tokens.

  15. 15. In API Security, what does Bearer token do or refer to?

    • A. Permission granted to a token limiting what it can do.
    • B. Industry list of the most critical API vulnerabilities.
    • C. Long-lived credential exchanged for new access tokens.
    • D. Credential presented in the Authorization header to access an API.correct

    Why: Bearer token: Credential presented in the Authorization header to access an API.

  16. 16. What is the purpose of HMAC signature in API Security?

    • A. Hash-based signature proving request integrity and origin.correct
    • B. Authorized simulated attack to find exploitable weaknesses.
    • C. Industry list of the most critical API vulnerabilities.
    • D. Credential presented in the Authorization header to access an API.

    Why: HMAC signature: Hash-based signature proving request integrity and origin.

  17. 17. What is the purpose of refresh token in API Security?

    • A. Mutual TLS where client and server both present certificates.
    • B. Authorized simulated attack to find exploitable weaknesses.
    • C. Industry list of the most critical API vulnerabilities.
    • D. Long-lived credential exchanged for new access tokens.correct

    Why: refresh token: Long-lived credential exchanged for new access tokens.

  18. 18. In API Security, what does HMAC signature do or refer to?

    • A. Hash-based signature proving request integrity and origin.correct
    • B. Industry list of the most critical API vulnerabilities.
    • C. Authorized simulated attack to find exploitable weaknesses.
    • D. Insecure Direct Object Reference: accessing others' data via IDs.

    Why: HMAC signature: Hash-based signature proving request integrity and origin.

  19. 19. In API Security, what does IDOR do or refer to?

    • A. Authorized simulated attack to find exploitable weaknesses.
    • B. Mutual TLS where client and server both present certificates.
    • C. Insecure Direct Object Reference: accessing others' data via IDs.correct
    • D. Hash-based signature proving request integrity and origin.

    Why: IDOR: Insecure Direct Object Reference: accessing others' data via IDs.

  20. 20. Which of the following best describes scope in API Security?

    • A. Credential presented in the Authorization header to access an API.
    • B. Mutual TLS where client and server both present certificates.
    • C. Authorized simulated attack to find exploitable weaknesses.
    • D. Permission granted to a token limiting what it can do.correct

    Why: scope: Permission granted to a token limiting what it can do.

Related API Testing topics