Question Bank
1899 approved questions from the community
Using query parameters for filtering (like `/cars?status=verified`) is generally preferable to creating numerous endpoint variations.
Content negotiation using Accept headers can be used as a method for API versioning.
Web services have a stronger focus on security and are often wrapped in layers of security protocols compared to APIs.
Self-documenting APIs that include code-level documentation ensure that documentation remains up-to-date and in sync with the codebase.
The HTTP DELETE method can be designed to be idempotent, indicating that repeated deletion requests don't affect the resource's state.
Which of the following tools are commonly used for API documentation? (Select all that apply)
Query parameter versioning is more flexible than URI versioning but can pose caching and security challenges.
What HTTP status code should be returned when API rate limiting is exceeded?
In RESTful APIs, responses should be explicitly marked as cacheable or non-cacheable to standardize the caching process.
Which of the following should be considered when choosing an API pagination technique? (Select all that apply)
In OAuth, the authorization server issues access tokens that are uniquely tied to a specific client and resource server.
What is the purpose of the HTTP OPTIONS method?
Which of the following are main components of an API endpoint? (Select all that apply)
What does semantic versioning (SemVer) represent?
SOAP APIs generally employ HTTP status codes for error communication, while REST APIs use dedicated XML elements for error representations.
When introducing breaking changes to an API, it's best practice to provide migration guides and give users time to adapt.
Cursor-based pagination is more efficient than offset-based pagination for large datasets because it doesn't suffer from the skipping behavior.
What HTTP status code indicates that a request was successful?
What is API rate limiting?
Which of the following are best practices for designing easily consumable APIs? (Select all that apply)