Courseiva
Manage containerseasyMultiple ChoiceObjective-mapped

EX200 Manage containers Practice Question

Exhibit

Refer to the exhibit.

$ podman ps -a
CONTAINER ID  IMAGE                           COMMAND               CREATED         STATUS                     PORTS       NAMES
a1b2c3d4e5f6  registry.access.redhat.com/ubi8/ubi  "/bin/bash"          5 minutes ago   Exited (0) 3 minutes ago              mycontainer
z9y8x7w6v5u4  do280/httpd                      "/usr/sbin/httpd -D"  2 hours ago     Up 2 hours                 0.0.0.0:80->80/tcp  webserver

Based on the exhibit, which command should be used to start the container named 'mycontainer'?

⚠ Common exam trap

Watch out — candidates often confuse 'podman run' (which creates and starts a new container) with 'podman start' (which starts an existing stopped container), leading them to choose option C when the container already exists.

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

podman start mycontainer

The correct command to start an existing but stopped container is 'podman start mycontainer'. 'podman start' resumes a container that has been created (via 'podman create') or previously stopped, without creating a new instance. Option D is correct because it directly addresses the requirement to start the container named 'mycontainer' that already exists.

Answer analysis

Option-by-option breakdown

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

  • podman attach mycontainer

    Why it's wrong here

    podman attach connects your terminal to the standard input/output/error streams of a container that is already running. Because the exhibit shows the container is exited, there is no active process to attach to. You must first bring the container up with podman start before attach can be used.

  • podman restart mycontainer

    Why it's wrong here

    podman restart is intended to cycle a running container by stopping it and then starting it again, not to launch a container that is already in the exited state. The container in this exhibit is exited, so the appropriate direct operation is simply podman start mycontainer, which changes the state from Exited to Running without a stop/start cycle.

  • podman run mycontainer

    Why it's wrong here

    podman run creates and starts a brand-new container from an image, treating the first positional argument as an image reference, not as an existing container name. Since mycontainer already exists, a new container using that same name would cause a container-name conflict, and even without that conflict this command would not be restarting the existing container object.

  • podman start mycontainer

    Why this is correct

    podman start is correct because it changes an existing, stopped container from the Exited state to the Running state without creating a new container or pulling an image. It resumes the container's configured entrypoint, command, and environment, making it the exact tool needed for the situation shown in the exhibit.

About these practice questions

Courseiva writes every EX200 question from scratch — 127 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This EX200 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 EX200 exam.