ISC2 Certified Cloud Security Professional (CCSP) Practice Question
A SaaS provider discovers that attackers cloned its public Git repository, copied a database connection string embedded in a Python script, and used the credentials to log in to the cloud-hosted production database. Which common cloud application security pitfall most directly enabled this breach, and what developer practice would have best prevented it?
Configuring overly permissive Cross-Origin Resource Sharing (CORS) headers; developers should restrict allowed origins to trusted domains only.
Including hard-coded credentials in source code; instead, store secrets in a managed secrets vault and inject them securely at runtime.
Failing to validate user input on the server side; developers should sanitize all client-supplied data before database queries.
Deploying unsigned container images; developers should enforce image signing and verification in the CI/CD pipeline.
Embedding passwords, keys, or connection strings in source code is a well-known application security pitfall and is specifically called out by OWASP and other secure-coding guides. When the repository was made public, the hard-coded secret was exposed, allowing attackers to authenticate to the cloud database. The appropriate mitigation is to keep secrets out of code entirely and retrieve them at runtime from a managed secrets vault or parameter store that enforces strong access controls. Input validation, CORS configuration, and container image signing are important controls, but none of them address the root cause in this scenario-exposed credentials committed to source control.
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 a managed secrets vault and how does it help improve security?
Open an interactive chat with Bash
What is OWASP, and how does it help developers avoid security pitfalls?
Open an interactive chat with Bash
What are runtime secret injection practices, and why are they essential?
Open an interactive chat with Bash
ISC2 Certified Cloud Security Professional (CCSP)
Cloud Application Security
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 .