EX188 Container Operations And Lifecycle Practice Question
An administrator is troubleshooting container exit codes and low-level state details. Which TWO of the following inspect format expressions correctly extract container state attributes? (Choose TWO)
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 inspect --format='{{.State.StartedAt}}' container_name
.State.ExitCode and .State.StartedAt are valid Go template expressions for podman inspect.
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 inspect --format='{{.Metadata.ExitCode}}' container_name
Why it's wrong here
.Metadata is not the correct path for exit codes.
- ✓
podman inspect --format='{{.State.StartedAt}}' container_name
Why this is correct
This retrieves the timestamp when the container was started.
- ✗
podman inspect --format='{{.Status.Running}}' container_name
Why it's wrong here
Running status is located under .State.Running, not .Status.Running.
- ✗
podman inspect --format='{{.Exit}}' container_name
Why it's wrong here
.Exit is not a valid JSON path in container inspect output.
- ✓
podman inspect --format='{{.State.ExitCode}}' container_name
Why this is correct
This retrieves the exit code of the container process.
About these practice questions
This EX188 question is part of Courseiva's 301-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.