EX188 Storage And Configuration Practice Question
You have a file named config.env containing multiple KEY=VALUE pairs. Which flag allows you to load these configurations into a container as environment variables?
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
✓
--env-file config.env
The --env-file flag parses a file line by line and passes the key-value pairs into the container as environment variables.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
--config-file config.env
Why it's wrong here
Incorrect. There is no --config-file flag.
- ✗
--volume config.env:/etc/env
Why it's wrong here
Incorrect. This performs a bind mount instead of setting environment variables.
- ✗
--secret file=config.env
Why it's wrong here
Incorrect. Secrets are not loaded this way.
- ✓
--env-file config.env
Why this is correct
Correct. --env-file reads environment variables from a file.
About these practice questions
This EX188 question is part of Courseiva's 301-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 →
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.