Bird
0
0

Which of the following is the correct way to specify a REST API call in microservices networking?

easy📝 Conceptual Q12 of 15
Microservices - Orchestration with Kubernetes
Which of the following is the correct way to specify a REST API call in microservices networking?
AFETCH /users/api HTTP/1.0
BPOST /api/v1/users HTTP/1.1
CCONNECT users /api/v1 HTTP/2
DSEND /api/users HTTP/1.1
Step-by-Step Solution
Solution:
  1. Step 1: Identify standard HTTP methods and syntax

    REST APIs use standard HTTP methods like GET, POST, PUT, DELETE with URI paths and HTTP version.
  2. Step 2: Match correct syntax

    POST /api/v1/users HTTP/1.1 uses POST method, valid URI, and HTTP/1.1 version correctly; others use invalid methods or syntax.
  3. Final Answer:

    POST /api/v1/users HTTP/1.1 -> Option B
  4. Quick Check:

    REST API call = HTTP method + URI + version [OK]
Quick Trick: REST calls use standard HTTP verbs and URIs [OK]
Common Mistakes:
MISTAKES
  • Using non-standard HTTP methods
  • Incorrect URI format
  • Wrong HTTP version syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes