All jobs / Backend developer / Security

Backend developer interview question · 0–1 years

The interviewer asks: “Where do database passwords and API keys live?” Strongest answer?

The strongest answer

In the environment or a secret store injected at deploy — never in source, never in the image layer as a default committed to git.

Why it works

Exactly. Code is copied, forked and logged. Secrets are injected. Twelve-factor is still the interview answer in 2026.

What a good answer covers

Answers that fall short

Who gets asked this

More Security questions