Question 1
In which layer of a software architecture is API testing primarily performed?
Presentation Layer
Data Layer
Business Layer
Operating System Layer
Question 2
Which of the following is a key advantage of API testing compared to GUI testing?
It is slower but more reliable
It only validates database operations
It is language-independent and GUI-independent
It depends heavily on the frontend design
Question 3
A tester is validating response codes for an API. Which response should indicate a successful POST request that created a new resource?
200 OK
202 Accepted
204 No Content
201 Created
Question 4
In API testing, which of the following scenarios best requires security testing?
Checking API response time under high load
Ensuring APIs return JSON in the correct format
Testing whether APIs support multiple platforms
Verifying if APIs are protected against SQL Injection
Question 5
You are testing an API that returns book data. When sending a request to /books/123, you get an error “404 Not Found.” What is the most probable reason?
Incorrect HTTP method used
The request body format is invalid
Resource with ID 123 does not exist
API server is down
Question 6
Which of the following is NOT a valid use case of Postman?
Automating API tests using JavaScript
Hosting APIs in production
Generating API documentation
Organizing requests into collections
Question 7
A tester runs a GET API request in Postman and notices ETag in the response header. What does this indicate?
The request is using SSL encryption
A flag showing the request is a cached response
The API server is sending authentication keys
A unique identifier for the resource version
Question 8
In Performance testing of APIs, which metric is the most critical to evaluate?
Response Time
Authentication Methods
API Documentation Quality
GUI Responsiveness
Question 9
During API testing, you encounter a “500 Internal Server Error.” What is the most likely cause?
Invalid request payload
Incorrect HTTP method
Issue in server-side code or configuration
Authentication failure
Question 10
In Postman, why would you use Collections when testing APIs?
To monitor API uptime in production
To encrypt API responses for security
To reduce response size in APIs
To organize related requests and automate workflows
There are 10 questions to complete.