mediumMultiple Choice
CCSP Practice Question: Is a best practice for managing secrets in…
Which of the following is a best practice for managing secrets in cloud-native applications?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Store secrets in a dedicated secrets management service
Using a cloud secret manager (like AWS Secrets Manager or HashiCorp Vault) to inject secrets at runtime avoids hardcoding and enables rotation. Least privilege IAM and environment variables are also good but using a dedicated service is best.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Hardcode secrets in environment variables
Why it's wrong here
Environment variables are readable by any process in the container and leak through logs, crash dumps and CI output, so they cannot be rotated or audited per access. They are tempting because they keep secrets out of source code, which suits local development, but production requires a managed vault such as Azure Key Vault with dynamic, short-lived credentials.
- ✗
Include secrets in container images
Why it's wrong here
Baking secrets into an image stores them immutably in every layer and registry copy, so anyone pulling the image can extract them and rotation demands a full rebuild. It is tempting because the container starts with credentials already present, which suits throwaway test images, but production requires runtime injection from a managed secret store.
- ✗
Use the same secret across all environments
Why it's wrong here
Reusing one secret across environments means a compromise or leak in development, testing or a contractor's sandbox exposes production credentials, and rotation forces coordinated changes everywhere. It is tempting because it simplifies configuration and avoids per-environment drift, which suits a single-tenant demo, but production requires distinct, independently rotatable secrets per environment.
- ✓
Store secrets in a dedicated secrets management service
Why this is correct
A dedicated secrets management service stores credentials encrypted, issues them at runtime via short-lived tokens or dynamic generation, and provides audit logging and rotation. This removes secrets from source code, container images and environment variables, satisfying the constraint of secure secret handling in cloud-native applications.
About these practice questions
Courseiva writes every CCSP question from scratch — 934 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CCSP practice question is part of Courseiva's free ISC2 certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CCSP exam.