EX188 Storage And Configuration Practice Question
You need to pass sensitive database credentials to a Podman container securely without storing them in plaintext environment variables. Which sequence of commands correctly creates and injects the secret?
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
✓
podman secret create db_pass secret.txt && podman run --secret db_pass,type=mount,target=/run/secrets/pass myapp
Secrets must first be created via 'podman secret create' and then injected using the '--secret' flag during container creation.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
podman volume create db_pass && podman run --volume db_pass:/run/secrets/pass myapp
Why it's wrong here
Incorrect. Volumes are not secrets management tools.
- ✗
podman secret create db_pass secret.txt && podman run --env-file secret.txt myapp
Why it's wrong here
Incorrect. --env-file exposes values as environment variables, which is discouraged for secrets.
- ✓
podman secret create db_pass secret.txt && podman run --secret db_pass,type=mount,target=/run/secrets/pass myapp
Why this is correct
Correct. The secret is created and then mounted using the appropriate options.
- ✗
podman secret add db_pass secret.txt && podman run -e SECRET=db_pass myapp
Why it's wrong here
Incorrect. Podman uses 'secret create', and environment variables are insecure for secrets.
About these practice questions
Courseiva writes every EX188 question from scratch — 296 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Red Hat exam blueprint
This EX188 practice question is part of Courseiva's free Red Hat 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 EX188 exam.