Bird
0
0

You want to design a REST API where clients can update user info only if they provide a valid token. Which client-server architecture concept helps enforce this?

hard📝 Application Q15 of 15
Rest API - REST API Fundamentals
You want to design a REST API where clients can update user info only if they provide a valid token. Which client-server architecture concept helps enforce this?
AClient directly modifying server database
BClient caching data locally
CAuthentication and authorization on the server
DServer sending data without checks
Step-by-Step Solution
Solution:
  1. Step 1: Identify security need

    Allowing updates only with valid token means controlling access.
  2. Step 2: Apply client-server security concept

    Authentication verifies identity; authorization controls permissions on server side.
  3. Final Answer:

    Authentication and authorization on the server -> Option C
  4. Quick Check:

    Access control = Authentication + Authorization [OK]
Quick Trick: Use server-side auth to control client access [OK]
Common Mistakes:
  • Thinking client caches control access
  • Assuming server sends data without checks
  • Believing client can modify database directly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes