Bird
0
0

A microservice is failing to authenticate requests even though clients send valid OAuth 2.0 tokens. Which is the most likely cause?

medium📝 Analysis Q14 of 15
Microservices - Authentication and Authorization
A microservice is failing to authenticate requests even though clients send valid OAuth 2.0 tokens. Which is the most likely cause?
AThe microservice is not verifying the token signature correctly
BThe clients are sending tokens in the URL query parameters
CThe microservice is using HTTPS for communication
DThe tokens are expired but the microservice ignores expiration
Step-by-Step Solution
Solution:
  1. Step 1: Analyze token verification failure

    If valid tokens are sent but authentication fails, incorrect signature verification is a common cause.
  2. Step 2: Evaluate other options

    Sending tokens in URL is discouraged but may still work; HTTPS is required for security but not cause failure; ignoring expiration would allow some tokens through, not fail all.
  3. Final Answer:

    The microservice is not verifying the token signature correctly -> Option A
  4. Quick Check:

    Invalid signature verification = auth failure [OK]
Quick Trick: Check token signature verification first when auth fails [OK]
Common Mistakes:
MISTAKES
  • Blaming HTTPS for authentication issues
  • Assuming tokens in URL always cause failure
  • Ignoring token expiration causes failure, not ignoring it

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes