Courseiva
mediumMultiple SelectObjective-mapped

CCSP Practice Question: Wants to prevent secrets from being exposed in…

An organization wants to prevent secrets from being exposed in source code. Which two practices should they adopt? (Choose TWO.)

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

Implement secret scanning in the CI/CD pipeline

Using a secrets manager (like AWS Secrets Manager or Vault) avoids hardcoding credentials. Scanning for secrets in code repositories (e.g., GitGuardian) helps detect and remove any secrets that might have been committed.

Answer analysis

Option-by-option breakdown

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

  • Implement secret scanning in the CI/CD pipeline

    Why this is correct

    Secret scanning tools can detect and block commits containing secrets.

  • Encrypt all source code files

    Why it's wrong here

    Encryption does not prevent secrets from being present in code; it only protects at rest.

  • Use a firewall to block access to code repositories

    Why it's wrong here

    Firewalls do not prevent secrets from being committed inside the code.

  • Use a secrets management service to retrieve credentials at runtime

    Why this is correct

    Secrets management services securely provide credentials without embedding them in code.

  • Disable git history

    Why it's wrong here

    Disabling history is not practical and does not address the root cause.

About these practice questions

One of 964 original CCSP practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.