EX188 Container Image Building Practice Question
You need to copy local application source code from your build context into the /app directory inside the container image, automatically unpacking it if it is a local tar archive. Which instruction should you select?
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
✓
ADD
The ADD instruction copies new files, directories, or remote file URLs from <src> and adds them to the filesystem of the container at the path <dest>. A key feature distinguishing ADD from COPY is its ability to automatically extract local tar archives.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
FETCH
Why it's wrong here
FETCH is not a valid Containerfile instruction.
- ✗
TRANSFER
Why it's wrong here
TRANSFER is not a supported keyword in Containerfiles.
- ✗
COPY
Why it's wrong here
COPY copies local files but does not automatically extract tar archives.
- ✓
ADD
Why this is correct
ADD supports copying files and automatically unpacking local tar archives.
About these practice questions
This EX188 question is part of Courseiva's 296-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.