Courseiva
Container Image BuildinghardMultiple SelectObjective-mapped

EX188 Container Image Building Practice Question

Which THREE statements accurately describe the differences between shell form and exec form for CMD and ENTRYPOINT instructions? (Choose three.)

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

Exec form ensures that Unix signals (such as SIGTERM) sent by Podman are received directly by the application process as PID 1.

Exec form uses JSON array syntax, avoids running a shell, and correctly passes signals as PID 1.

Answer analysis

Option-by-option breakdown

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

  • Shell form is mandatory when using multi-stage builds.

    Why it's wrong here

    Form choice has no connection to multi-stage builds.

  • Exec form allows shell variable expansion (like $VAR) directly without needing explicit shell invocation.

    Why it's wrong here

    Exec form does not perform shell expansion; variables remain literal unless executed via a shell.

  • Exec form ensures that Unix signals (such as SIGTERM) sent by Podman are received directly by the application process as PID 1.

    Why this is correct

    Direct execution receives signals properly.

  • Exec form is written using JSON array syntax (e.g., ["executable", "param"]).

    Why this is correct

    Exec form uses JSON array notation.

  • Shell form automatically wraps the command with '/bin/sh -c', which causes the application to run as a child process rather than PID 1.

    Why this is correct

    Shell form invokes a subshell wrapper.

About these practice questions

One of 296 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 →

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.