SpinTheMic
Pro

Interview practice question

A hard-coded password is found in old code

Cloud & DevOps · DevSecOps · Beginner

While reviewing an old service, you find a database password hard-coded in the source code. What do you do?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Treat as exposed (in history, clones).
  • Rotate password.
  • Move to secrets manager/env injection.
  • Update code to read secret at runtime.
  • Scan for others; add secret scanning.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics