wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Micro-Credential Part 2 Mock Exam

Total questions: 20

Worksheet time: 12mins

Name
Class
Date
1.

REST is a protocol that dictates a strict structure for data exchange.

a)
True
b)
False
2.

JSON is the most commonly used format for REST APIs.

a)
True
b)
False
3.

JWT tokens used for API authorization must never expire.

a)
True
b)
False
4.

gRPC uses HTTP/2 and .proto files to define data contracts.

a)
True
b)
False
5.

GraphQL allows clients to request only the data they need.

a)
True
b)
False
6.

Which HTTP method is used to update a resource in REST?

a)

GET

b)

POST

c)

PUT

d)

DELETE

7.

Which header specifies the expected format of the API response?

a)

Authorization

b)

Content-Type

c)

Accept

d)

Cookie

8.

Which of the following is an example of a synchronous request scenario?

a)

Cake creation with progress tracking

b)

Cake purchase from ready-made stock

c)

Logging in with a delayed authentication

d)

Triggering a background data sync

9.

What is the HTTP status code for an unauthorized request?

a)

200

b)

401

c)

404

d)

500

10.

Which testing ensures the API performs well under expected user load?

a)

Regression Testing

b)

Security Testing

c)

Load Testing

d)

Unit Testing

11.

The ____-____ header indicates the format of the request body, like JSON or XML.

(a)  

12.

A REST API that follows stateless communication does not retain ____ ____ between requests.

(a)  

13.

A 429 HTTP status code indicates ___ ____ ________.

(a)  

14.

In GraphQL, data schemas are defined using _____ _________ ________.

(a)  

15.

In gRPC, breaking changes require updating the (a)   file.

16.

The Accept and Content-Type headers always contain the same values.

a)
True
b)
False
17.

REST APIs can support both synchronous and asynchronous responses.

a)
True
b)
False
18.

gRPC calls are widely supported in all major browsers.

a)
True
b)
False
19.

The logging level in APIs may vary depending on the situation.

a)
True
b)
False
20.

Testers should only focus on positive test cases when validating an API.

a)
True
b)
False