All jobs / Solutions / cloud architect / Identity & Security
Solutions / cloud architect interview question · 0–1 years
A developer asks where to put the new payment provider’s API key so the staging service can use it.
Where should database passwords and API keys live, and how do services get them?
The strongest answer
In a secrets manager or vault, injected at runtime by identity; never in the repository, the image or a shared document
Why it works
Exactly. A managed secret store, access by identity, rotation possible. The repo never sees them.
What a good answer covers
- Secrets manager, not files.
- Inject at runtime by identity.
- Rotation must be possible.
- Encoding is not protection.
Answers that fall short
- Close, but not the strongest: In a config file that is gitignored on every developer machine
Gitignore protects one laptop; deployment still needs a real source and so does rotation. - Weak: In environment variables committed to the deployment repository
A committed environment file is a committed secret with a different filename. - Red flag: In the code, but base64-encoded so they are not readable
Encoding is not encryption; anyone who can read the code can read the key.
Who gets asked this
More Identity & Security questions
- The database disks are encrypted at rest. What does that protect against, and what does it not?
- A single-page app, a mobile app and a nightly batch job all need to call your API. Which OAuth flows fit?
- How do you design the roles for a product’s permission system so it does not end up as one role per user?
- How should cloud permissions be granted to a new service?
- What does zero trust change about how services talk to each other inside the network?
- Design the key management for a platform that encrypts customer data at rest.
- How do you run a threat-modelling session on a new design?
- Enterprise customers ask to sign in with their own identity provider. What do you build?