EX188 Container Image Building Practice Question
You are designing a container image that runs an executable web server. You want to provide default arguments to the executable that can be easily overridden by a user passing arguments directly to 'podman run'. Which instruction combination is best?
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 ENTRYPOINT for the binary and CMD for the default arguments.
ENTRYPOINT should define the executable, and CMD should define the default parameters that can be overridden easily when running the container.
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 ENTRYPOINT for the binary and CMD for the default arguments.
Why this is correct
Combining ENTRYPOINT with CMD allows the base command to remain fixed while parameters supplied to podman run override the CMD defaults.
- ✗
Use ENV for the binary and WORKDIR for the arguments.
Why it's wrong here
ENV and WORKDIR serve completely different configuration purposes and cannot act as container entrypoints.
- ✗
Use RUN for both the binary and the arguments.
Why it's wrong here
RUN executes during the build phase, not when the container is started.
- ✗
Use CMD for the binary and ENTRYPOINT for the default arguments.
Why it's wrong here
If CMD holds the binary, users cannot override arguments as cleanly because arguments passed to podman run overwrite the entire CMD instruction.
About these practice questions
One of 301 original EX188 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 →
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.