Question 1
You send a POST request in Postman with raw JSON body, but the server responds with 415 Unsupported Media Type. What is the most likely fix?
Change request type from POST to PUT
Add "Content-Type": "application/json" header
Encode the body in Base64
Move the body into query parameters
Question 2
In REST Assured, what happens if you don’t set Content-Type when sending a JSON body?
REST Assured automatically sets it to JSON
The server always rejects it
It depends on the server; it may interpret it incorrectly
REST Assured converts JSON to XML
Question 3
You run a GET request in Postman and get 200 OK but the response body is empty. Which of the following is the BEST debugging step?
Switch to POST instead of GET
Add authorization headers or tokens
Increase timeout in Postman
Retry with Content-Type set to JSON
Question 4
In REST Assured, what will happen if your statusCode(201) assertion is applied but the API actually returns 200?
Test passes silently
Test fails with Assertion Error
Test retries until it gets 201
REST Assured converts 200 into 201 internally
Question 5
You update a resource using PUT in REST Assured, but the server overwrites fields you didn’t send. Which HTTP method would prevent this issue?
GET
DELETE
PATCH
HEAD
Question 6
While testing DELETE with Postman, you receive 204 No Content. What does this mean?
The resource was deleted successfully and server has nothing more to return
The resource is not found
The resource was not deleted but no error occurred
The resource is locked by another request
Question 7
A developer claims the API is idempotent. Which of the following POST/PUT/DELETE behaviors violates idempotency?
Sending DELETE twice removes the resource the first time, second time returns 404
Sending PUT twice with same body updates the resource only once
Sending POST twice creates two new resources
Sending GET multiple times always returns same resource
Question 8
In REST Assured, you use .extract().response(). Why would you store the response object?
To assert only the status code
To save the request for replay
To validate fields in JSON body or headers
To bypass serialization
Question 9
You send a POST in Postman with JSON but receive a 400 Bad Request. Which of these is MOST LIKELY the cause?
No internet connection
Incorrect JSON formatting (extra commas, missing quotes)
The server is down
Wrong HTTP version
Question 10
In REST Assured, you chain .then().statusCode(200).body("id", equalTo(1)). What is happening here?
Only status code is checked
REST Assured checks both status code and a JSON field in the response
It extracts the response body for reuse
It retries until both conditions pass
There are 10 questions to complete.