πŸ“Š Python
Q. Which of these is a secure way to store API keys in a Python application?
  • (A) Hardcoding in source code
  • (B) Storing in environment variables
  • (C) Uploading to public GitHub
  • (D) Saving in plaintext file in app folder
πŸ’¬ Discuss
βœ… Correct Answer: (B) Storing in environment variables

Explanation: Environment variables keep secrets out of source code and version control.

Explanation by: Mr. Dubey
Environment variables keep secrets out of source code and version control.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
44
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate