The correct format requires a space between 'Bearer' and the token string.
Step 2: Verify the given header
The header uses 'BearerToken' without space, which is incorrect.
Final Answer:
Missing space between 'Bearer' and token -> Option A
Quick Check:
Bearer and token need space [OK]
Hint: Add space after 'Bearer' before token [OK]
Common Mistakes:
Writing 'BearerToken' as one word
Using wrong header name like 'Auth'
Sending token in URL instead of header
5. You want to secure an API endpoint so only authenticated users can access it. Which combination is best practice for this in your API documentation?
hard
A. Allow clients to send username and password in every request body
B. Require clients to send a valid token in the 'Authorization: Bearer <token>' header for access
C. Use IP address filtering to allow only certain clients
D. Send the token as a URL parameter for easy access
Solution
Step 1: Identify secure token usage
Best practice is to require a valid token in the 'Authorization' header to confirm identity securely.
Step 2: Evaluate other options
Sending username/password every time is insecure; IP filtering is limited; URL tokens risk exposure.
Final Answer:
Require clients to send a valid token in the 'Authorization: Bearer <token>' header for access -> Option B
Quick Check:
Token in Authorization header = secure access [OK]
Hint: Use Authorization header with token, not URL or body [OK]
Common Mistakes:
Sending credentials in every request body
Exposing tokens in URL parameters
Relying only on IP filtering for security
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.