Question Bank
3705 approved questions from the community
SOAP APIs are designed to be stateless like REST APIs.
The HTTP DELETE method can be designed to be idempotent, indicating that repeated deletion requests don't affect the resource's state.
Which strategies help ensure backward compatibility in APIs? (Select all that apply)
What HTTP status code indicates that the resource has not been modified since the last request?
Query parameter versioning is more flexible than URI versioning but can pose caching and security challenges.
HTTP status codes in the 5xx range indicate server errors.
HTTP status codes in the 4xx range indicate client errors.
HTTP status codes in the 2xx range indicate successful operations.
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.
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?
What does semantic versioning (SemVer) represent?
What is the main disadvantage of offset-based pagination?
Which pagination technique uses a unique identifier to establish the starting point for the next set of results?
SOAP APIs generally employ HTTP status codes for error communication, while REST APIs use dedicated XML elements for error representations.
JSON is commonly used as the data format for REST APIs due to its simplicity and efficiency for web-based data exchange.
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.
RESTful API endpoint naming should use nouns to represent resources rather than verbs to represent actions.