Question 206 of 504
Cloud Application SecurityeasyMultiple ChoiceObjective-mapped

Quick Answer

The correct choice is to use a secrets management service. Hardcoded database credentials in legacy application code are a critical vulnerability because they are exposed in version control, logs, and static analysis, making them a prime target during cloud migration. A secrets management service, such as AWS Secrets Manager or HashiCorp Vault, stores credentials securely, enables automatic rotation, and provides runtime access via API calls, eliminating the need to embed secrets in code and aligning with the principle of least privilege. On the CCSP exam, this question tests your understanding of secure development practices within the Software Development Security domain, often appearing as a trap where candidates mistakenly choose encryption of the code or environment variables alone—neither of which removes the embedded secret. Remember the mnemonic “Secrets Never Stay in Source” to recall that secrets management, not obfuscation, is the proper solution for hardcoded credentials.

CCSP Cloud Application Security Practice Question

This CCSP practice question tests your understanding of cloud application security. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company is migrating a legacy application to the cloud. The application uses hardcoded database credentials. Which secure development practice should be implemented to address this?

Question 1easymultiple choice
Full question →

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

Use a secrets management service

Hardcoded database credentials in application code create a severe security risk because they are exposed in version control, logs, and static analysis. Using a secrets management service (e.g., AWS Secrets Manager, HashiCorp Vault, Azure Key Vault) allows credentials to be stored securely, rotated automatically, and accessed at runtime via API calls, eliminating the need to embed secrets in code. This aligns with the principle of least privilege and secure credential management in cloud application security.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use code signing for all deployments

    Why it's wrong here

    Code signing ensures code integrity, not secret management.

  • Implement input validation on all user inputs

    Why it's wrong here

    Input validation prevents injection attacks, not credential exposure.

  • Enable encryption at rest for the database

    Why it's wrong here

    Encryption at rest protects data at rest, not credentials in code.

  • Use a secrets management service

    Why this is correct

    Secrets management securely stores and rotates credentials, eliminating hardcoding.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

ISC2 often tests the distinction between 'protecting data at rest' (encryption) and 'protecting access credentials' (secrets management), leading candidates to mistakenly choose encryption at rest when the real issue is credential exposure in code.

Detailed technical explanation

How to think about this question

Secrets management services typically use a combination of envelope encryption (e.g., AWS KMS with a master key) and access control policies (e.g., IAM roles) to secure secrets at rest and in transit. At runtime, the application authenticates to the secrets manager using a short-lived token (e.g., via AWS STS or a JWT), retrieves the credential, and caches it in memory—never writing it to disk or logs. A real-world scenario is a microservice that rotates its database password every 90 minutes; without a secrets manager, each instance would need to be redeployed with the new password, causing downtime.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A developer is choosing between AES-256 (symmetric) and RSA-2048 (asymmetric) for encrypting a large file that will be sent to a partner. Symmetric encryption is fast but requires key exchange; asymmetric is slower but solves the key distribution problem. A hybrid approach — encrypt the file with AES, encrypt the AES key with RSA — is standard. Questions like this test whether you understand when each approach applies.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related CCSP practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free CCSP practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this CCSP question test?

Cloud Application Security — This question tests Cloud Application Security — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Use a secrets management service — Hardcoded database credentials in application code create a severe security risk because they are exposed in version control, logs, and static analysis. Using a secrets management service (e.g., AWS Secrets Manager, HashiCorp Vault, Azure Key Vault) allows credentials to be stored securely, rotated automatically, and accessed at runtime via API calls, eliminating the need to embed secrets in code. This aligns with the principle of least privilege and secure credential management in cloud application security.

What should I do if I get this CCSP question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.