Courseiva
SecuritymediumMultiple SelectObjective-mapped

CV0-004 Security Practice Question

A cloud architect is designing a secrets management solution for a microservices application. The solution must avoid hardcoding secrets in code and support automatic rotation. Which THREE of the following are best practices? (Select THREE.)

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 like AWS Secrets Manager.

Best practices include using a dedicated vault, injecting secrets at runtime, and enabling rotation. Storing secrets in environment variables is not recommended. Using IAM roles avoids storing credentials.

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 a dedicated secrets management service like AWS Secrets Manager.

    Why this is correct

    Centralized vault for secrets.

  • Inject secrets into containers at runtime via volume mounts.

    Why this is correct

    Avoids hardcoding and reduces exposure.

  • Use long-lived static keys for simplicity.

    Why it's wrong here

    Static keys increase risk; rotation is preferred.

  • Enable automatic rotation of secrets.

    Why this is correct

    Reduces risk of compromised credentials.

  • Store secrets in environment variables for ease of access.

    Why it's wrong here

    Environment variables can be exposed; not a best practice.

About these practice questions

One of 977 original CV0-004 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 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.