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.

MEDIUM
TRUE FALSE
30s
API Design
by Mohamed

Content negotiation using Accept headers can be used as a method for API versioning.

MEDIUM
TRUE FALSE
30s
API Design
by Mohamed

Web services have a stronger focus on security and are often wrapped in layers of security protocols compared to APIs.

MEDIUM
TRUE FALSE
30s
API Design
by Mohamed

Self-documenting APIs that include code-level documentation ensure that documentation remains up-to-date and in sync with the codebase.

MEDIUM
TRUE FALSE
30s
API Design
by Mohamed

The HTTP DELETE method can be designed to be idempotent, indicating that repeated deletion requests don't affect the resource's state.

MEDIUM
TRUE FALSE
30s
API Design
by Mohamed

Which of the following tools are commonly used for API documentation? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
API Design
by Mohamed

Query parameter versioning is more flexible than URI versioning but can pose caching and security challenges.

MEDIUM
TRUE FALSE
30s
API Design
by Mohamed

What HTTP status code should be returned when API rate limiting is exceeded?

MEDIUM
SINGLE CHOICE
30s
API Design
by Mohamed

In RESTful APIs, responses should be explicitly marked as cacheable or non-cacheable to standardize the caching process.

MEDIUM
TRUE FALSE
25s
API Design
by Mohamed

Which of the following should be considered when choosing an API pagination technique? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
API Design
by Mohamed

In OAuth, the authorization server issues access tokens that are uniquely tied to a specific client and resource server.

MEDIUM
TRUE FALSE
25s
API Design
by Mohamed

What is the purpose of the HTTP OPTIONS method?

MEDIUM
SINGLE CHOICE
30s
API Design
by Mohamed

Which of the following are main components of an API endpoint? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
API Design
by Mohamed

What does semantic versioning (SemVer) represent?

MEDIUM
SINGLE CHOICE
30s
API Design
by Mohamed

SOAP APIs generally employ HTTP status codes for error communication, while REST APIs use dedicated XML elements for error representations.

MEDIUM
TRUE FALSE
30s
API Design
by Mohamed

When introducing breaking changes to an API, it's best practice to provide migration guides and give users time to adapt.

MEDIUM
TRUE FALSE
25s
API Design
by Mohamed

Cursor-based pagination is more efficient than offset-based pagination for large datasets because it doesn't suffer from the skipping behavior.

MEDIUM
TRUE FALSE
30s
API Design
by Mohamed

What HTTP status code indicates that a request was successful?

MEDIUM
SINGLE CHOICE
25s
API Design
by Mohamed

What is API rate limiting?

MEDIUM
SINGLE CHOICE
35s
API Design
by Mohamed

Which of the following are best practices for designing easily consumable APIs? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
API Design
by Mohamed
PreviousPage 17 of 95Next