How would you handle secrets rotation for a database used by 20 pipelines without downtime?
AdvancedScenarioSecrets, Supply Chain and DORA
Answer
Situation read → Safe rotation.
What I'd do →
- Use dual-credential rotation (two valid users, alternate) or Vault dynamic credentials.
- Pipelines fetch secrets at runtime, so they pick the new value automatically.
- Rotate on a schedule and test the process regularly.
Why → Overlap windows avoid breaking in-flight jobs.
Interview tip → Runtime retrieval is what makes rotation painless.
More on Secrets, Supply Chain and DORA
A developer committed an AWS key to a public repo. Walk through your response.BeginnerHow do you stop secrets from being committed in the first place?IntermediateThe pipeline needs access to 15 different secrets across environments. How do you manage them?IntermediateExplain SLSA and how you would raise a pipeline's level.AdvancedHow do you verify only signed images run in Kubernetes?AdvancedA popular npm package your build uses is reported as compromised. What do you do?Advanced