Skip to content
Sharp

Authentication · interview question

Which strategy is best for storing JWT secrets securely in a Spring Boot application?

Multiple choiceHardchapter-17-curatedpremiumauthenticationjson-web-tokens-jwt
Choose one answer
Answer and explanation

Correct answer

A. Use environment variables.

Why

Using environment variables is a secure way to store JWT secrets as they are not hard-coded or stored in files, reducing the risk of exposure.

Test yourself on Authentication

A free test with instant, explained results. No account needed.

Start free test
All Authentication questions →