ISC2 Certified Cloud Security Professional (CCSP) Practice Question
Your organization recently moved its CI/CD pipelines to a public cloud service. Build jobs compile container images and then push them to a managed registry by using an access token that is currently declared as a plain-text environment variable in the pipeline definition YAML stored in a shared Git repository. From a DevOps security perspective, which action should be taken first to reduce the likelihood of credential leakage during code review or repository compromise?
Store the registry access token in the platform's secrets-management service and reference it at runtime instead of keeping it in plain text.
Add a static application security testing (SAST) stage to the pipeline to catch code-level vulnerabilities before deployment.
Require two developers to approve every pull request before merging into the main branch.
Introduce blue/green deployments so that releases can be rolled back quickly if a credential leak is detected.
Plain-text credentials embedded in pipeline configuration are easily exposed through source-code browsing, accidental commits, or logs. Moving the token into a dedicated secrets-management mechanism offered by the cloud or the pipeline platform stores it encrypted at rest, redacts it from logs, and supplies it to the job runtime only when needed, greatly reducing exposure. While additional controls such as multi-approver pull requests, SAST scans, or deployment strategies improve overall security and resilience, they do not directly address the immediate risk of leaking the hard-coded access token.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is secrets management, and why is it important in DevOps?
Open an interactive chat with Bash
How does secrets management work in CI/CD pipelines?
Open an interactive chat with Bash
What are the risks of using plain-text environment variables for storing tokens?
Open an interactive chat with Bash
ISC2 Certified Cloud Security Professional (CCSP)
Cloud Concepts, Architecture and Design
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .