Code vulnerabilities · Question 8 of 12

What is problematic about an API key written directly in the source code?

1 answer is correct. Easy

Show answer

Answer

  • C Anyone with access to the code knows the key

Explanation

Hardcoded secrets end up in repositories, backups and builds. If the code leaks, the key is compromised. Secrets belong in a secrets manager or in environment variables.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications