Bird
0
0

Which of the following best describes REST APIs?

easy📝 Conceptual Q1 of 15
Rest API - REST API Fundamentals
Which of the following best describes REST APIs?
AStateful, uses XML exclusively, and requires strict contracts
BOnly supports POST requests and uses WSDL for definitions
CStateless, uses standard HTTP methods, and resource-based URLs
DUses a single endpoint for all queries and mutations
Step-by-Step Solution
Solution:
  1. Step 1: Understand REST API characteristics

    REST APIs are stateless, meaning each request is independent. They use standard HTTP methods like GET, POST, PUT, DELETE and resource-based URLs.
  2. Step 2: Compare options with REST features

    Stateless, uses standard HTTP methods, and resource-based URLs matches these features. Stateful, uses XML exclusively, and requires strict contracts describes SOAP, Only supports POST requests and uses WSDL for definitions is incorrect for REST, and Uses a single endpoint for all queries and mutations describes GraphQL.
  3. Final Answer:

    Stateless, uses standard HTTP methods, and resource-based URLs -> Option C
  4. Quick Check:

    REST API = Stateless and HTTP methods [OK]
Quick Trick: REST uses HTTP methods and stateless requests [OK]
Common Mistakes:
MISTAKES
  • Confusing REST with SOAP's stateful nature
  • Thinking REST only uses POST
  • Assuming REST uses a single endpoint

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes