Online Exam Quiz

questionQuestion  1 to 30

How can you secure an API endpoint?

  • Add delay
  • Reduce payload
  • Use authentication and encryption
  • Set timeouts
Mark for review

What does 302 status code indicate?

  • Internal error
  • Redirect
  • Conflict
  • Request success
Mark for review

What does a 401 status code indicate in API testing?

  • Unauthorized access
  • Success
  • Server error
  • Resource created
Mark for review

Which of the following best describes a REST API?

  • Resource Oriented
  • Stateful
  • Service-Oriented
  • Synchronous Only
Mark for review

What does a response time of >2000ms indicate?

  • Resource deleted
  • Good performance
  • Server error
  • Potential performance issue
Mark for review

What is a JSON Web Token (JWT) used for?

  • Rate limiting
  • Authorization
  • Formatting response
  • Encoding XML
Mark for review

How is basic authentication passed in HTTP?

  • Cookie
  • JSON Token
  • Header field Authorization
  • In request body
Mark for review

Which of these is used for API response schema validation?

  • JSON Schema
  • HTML Parser
  • CSV Tool
  • XPath
Mark for review

What is the default format for REST API responses?

  • CSV
  • YAML
  • JSON
  • XML
Mark for review

Which API method is not idempotent?

  • GET
  • DELETE
  • POST
  • PUT
Mark for review

What does the OPTIONS HTTP method do?

  • Retrieves options supported by server
  • Retrieves list of resources
  • Deletes all data
  • Authenticates user
Mark for review

What does the PUT method do in REST API?

  • Retrieves data
  • Deletes resource
  • Creates a new resource
  • Updates existing resource
Mark for review

What is Postman Collection?

  • A set of variables
  • A folder for endpoints
  • A group of related API requests
  • Server logs
Mark for review

What is the default port for HTTPS APIs?

  • 8080
  • 21
  • 80
  • 443
Mark for review

Which content-type is used for JSON data?

  • text/html
  • application/xml
  • application/json
  • multipart/form-data
Mark for review

What kind of tool is REST Assured?

  • Load testing tool
  • API test framework for Java
  • Browser automation
  • Logging tool
Mark for review

What is the use of the Test Results section in Postman?

  • Show environment logs
  • Show executed assertions
  • Display test duration
  • Modify payload
Mark for review

In API testing, what is a payload?

  • Authorization token
  • HTTP status
  • Response headers
  • Body of the request
Mark for review

What does API stand for?

  • Automated Programming Interface
  • Advanced Programming Interface
  • Application Programming Interface
  • Application Process Integration
Mark for review

What does 503 status code represent?

  • Server unavailable
  • Authentication failed
  • Resource updated
  • Permanent redirect
Mark for review

What is the use of Content-Type in API headers?

  • Change URL
  • Authorize request
  • Specify data format
  • Log response
Mark for review

Which status code is used for ?No Content??

  • 200
  • 204
  • 202
  • 400
Mark for review

Which of these can NOT be part of an API test?

  • UI Color check
  • Authentication
  • Response validation
  • Header testing
Mark for review

What tool can automate API tests in CI/CD pipelines?

  • Jenkins
  • GIMP
  • MS Word
  • Nginx
Mark for review

What is the purpose of headers in API requests?

  • Redirect traffic
  • Encrypt request
  • Send additional info like content-type
  • Delete resources
Mark for review

What is the common format for sending requests in REST APIs?

  • HTML
  • DOCX
  • JSON
  • MP3
Mark for review

Which protocol is most commonly used in REST APIs?

  • FTP
  • HTTP
  • SSH
  • TCP
Mark for review

What is the function of an API token?

  • Log user out
  • Compress request
  • Authenticate requests
  • Trigger events
Mark for review

Which parameter is optional in a RESTful GET request?

  • Method
  • URL
  • Query string
  • Status code
Mark for review

What does application/xml represent?

  • Database connection
  • MIME type for XML content
  • Header variable
  • URL encoding
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review