Bird
0
0

You need to design an API for a mobile app that requires minimal data usage and flexible queries. Which API style is best and why?

hard📝 Application Q15 of 15
Rest API - REST API Fundamentals
You need to design an API for a mobile app that requires minimal data usage and flexible queries. Which API style is best and why?
AGraphQL, because it lets clients request exactly the data they need
BREST, because it uses simple URLs and HTTP methods
CSOAP, because it uses strict XML for secure communication
DFTP, because it transfers files efficiently
Step-by-Step Solution
Solution:
  1. Step 1: Identify requirements for minimal data and flexible queries

    The app needs to reduce data usage and allow clients to specify data fields.
  2. Step 2: Match API styles to requirements

    GraphQL allows clients to request only needed data in one query, minimizing data transfer and providing flexibility.
  3. Final Answer:

    GraphQL, because it lets clients request exactly the data they need -> Option A
  4. Quick Check:

    Minimal data + flexible queries = GraphQL [OK]
Quick Trick: Choose GraphQL for flexible, minimal data queries [OK]
Common Mistakes:
  • Choosing REST without flexible data selection
  • Selecting SOAP despite heavy XML overhead
  • Confusing FTP with API styles

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes