1. Which of the following best describes an API (Application Programming
Interface)?
Correct Answer: B
Explanation: An API defines the rules and protocols that let different software components
communicate.
2. What is a key characteristic of RESTful APIs compared to SOAP APIs?
Correct Answer: C
Explanation: REST commonly uses JSON (though it can support other formats), whereas SOAP relies
on XML.
3. Which of the following describes Basic Authentication?
Correct Answer: C
Explanation: Basic Authentication encodes the username and password in Base64, which is not
encryption.
4. In the context of API security, which statement is true about OAuth
2.0?
Correct Answer: C
Explanation: OAuth 2.0 issues tokens (access tokens, refresh tokens) to enable delegated access
without exposing user credentials.
5. Which of the following most accurately describes JSON Web Tokens
(JWT)?
Correct Answer: C
Explanation: JWTs feature a header, payload, and signature in a compact, URL-safe format.
6. In a microservices architecture, an API Gateway typically:
Correct Answer: C
Explanation: An API Gateway routes requests to microservices and can manage logging, caching,
and rate limiting.
7. What is an advantage of serverless architecture for APIs?
Correct Answer: C
Explanation: Serverless computing abstracts away server management, letting developers focus on
code rather than infrastructure details.
8. Which of the following is a correct description of RBAC (Role-Based
Access Control)?
Correct Answer: C
Explanation: In RBAC, users are assigned roles, and each role has specific permissions.
9. When documenting an API, it is most important to:
Correct Answer: C
Explanation: Comprehensive documentation should clearly explain request/response formats,
parameters, error handling, and security.
10. A major security pitfall in API documentation is:
Correct Answer: C
Explanation: Leaving out critical details—like how to authenticate or the existence of rate
limits—can create security blind spots.