Courseiva
easyMultiple ChoiceObjective-mapped

CV0-004 Practice Question: Is the best practice for securely storing secrets…

Which of the following is the best practice for securely storing secrets such as database passwords in a cloud environment?

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 dedicated secrets management service.

Dedicated secrets management services provide secure storage, rotation, and access control.

Answer analysis

Option-by-option breakdown

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

  • Hard-code the secrets in the application code.

    Why it's wrong here

    This exposes secrets in code repositories and is insecure.

  • Store secrets in a configuration file in the repository.

    Why it's wrong here

    Configuration files in repositories are not secure.

  • Encrypt secrets and store them in a shared storage.

    Why it's wrong here

    While better, it lacks the management features of dedicated services.

  • Use a dedicated secrets management service.

    Why this is correct

    Services like AWS Secrets Manager or Azure Key Vault are purpose-built for secure secret storage.

About these practice questions

This CV0-004 question is part of Courseiva's 977-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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 CV0-004 practice question is part of Courseiva's free CompTIA 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 CV0-004 exam.