Bird
Raised Fist0

Which of the following is the correct way to secure an API endpoint?

easy📝 Syntax Q12 of Q15
Rest API - Authentication and Authorization
Which of the following is the correct way to secure an API endpoint?
ARequire an API key or token for access.
BUse HTTP instead of HTTPS for faster connection.
CAllow all IP addresses without restrictions.
DSend sensitive data in URL parameters.
Step-by-Step Solution
Solution:
  1. Step 1: Identify secure practices for API endpoints

    Using API keys or tokens is a standard way to control access to APIs.
  2. Step 2: Evaluate each option

    Require an API key or token for access. requires keys or tokens, which is correct. Options A, C, and D are insecure practices.
  3. Final Answer:

    Require an API key or token for access. -> Option A
  4. Quick Check:

    API security = keys or tokens [OK]
Quick Trick: Always require keys or tokens to secure APIs [OK]
Common Mistakes:
MISTAKES
  • Using HTTP instead of HTTPS
  • Allowing unrestricted IP access
  • Exposing sensitive data in URLs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes