Skip to content

Quiz: Token Auth & API Keys

Review first: Token Auth

#

Question 1

Your mobile app ships with an embedded API key. A security review flags it as exposed. What's the correct fix?

#

Question 2

A partner API accepts keys via GET /data?apikey=.... The provider asks how to reduce accidental key leakage. Select ALL that apply:

#

Question 3

Which of these is an acceptable way to generate a new API key?

#

Question 4

You're designing storage for long, high-entropy API keys that are checked on every request. How should they be stored?

#

Question 5

Why do providers prefix keys with strings like sk_live_ or ghp_?