Font size
WorksheetsMicro-Credential Part 2 Mock Exam
Total questions: 20
Worksheet time: 12mins
REST is a protocol that dictates a strict structure for data exchange.
JSON is the most commonly used format for REST APIs.
JWT tokens used for API authorization must never expire.
gRPC uses HTTP/2 and .proto files to define data contracts.
GraphQL allows clients to request only the data they need.
Which HTTP method is used to update a resource in REST?
GET
POST
PUT
DELETE
Which header specifies the expected format of the API response?
Authorization
Content-Type
Accept
Cookie
Which of the following is an example of a synchronous request scenario?
Cake creation with progress tracking
Cake purchase from ready-made stock
Logging in with a delayed authentication
Triggering a background data sync
What is the HTTP status code for an unauthorized request?
200
401
404
500
Which testing ensures the API performs well under expected user load?
Regression Testing
Security Testing
Load Testing
Unit Testing
The ____-____ header indicates the format of the request body, like JSON or XML.
(a)
A REST API that follows stateless communication does not retain ____ ____ between requests.
(a)
A 429 HTTP status code indicates ___ ____ ________.
(a)
In GraphQL, data schemas are defined using _____ _________ ________.
(a)
In gRPC, breaking changes require updating the (a) file.
The Accept and Content-Type headers always contain the same values.
REST APIs can support both synchronous and asynchronous responses.
gRPC calls are widely supported in all major browsers.
The logging level in APIs may vary depending on the situation.
Testers should only focus on positive test cases when validating an API.
