Courseiva
Container Image BuildingmediumMultiple ChoiceObjective-mapped

EX188 Container Image Building Practice Question

You are using a multi-stage build in your Containerfile. How do you copy a compiled binary named 'app' from a build stage named 'builder' into your final production runtime stage?

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

COPY --from=builder /app /app

The COPY --from=<stage_name> instruction allows copying artifacts from previous named stages.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • COPY --stage=builder /app /app

    Why it's wrong here

    The correct flag is --from, not --stage.

  • ADD --stage-name=builder /app /app

    Why it's wrong here

    ADD does not take a --stage-name flag.

  • IMPORT --from=builder /app /app

    Why it's wrong here

    IMPORT is not a valid Containerfile instruction.

  • COPY --from=builder /app /app

    Why this is correct

    --from=builder specifies copying from the stage labeled 'builder'.

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 →

How Courseiva writes practice questions · Editorial policy

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.