RedHat EX188 Practice Exams
Last updated on Oct 22,2026- Exam Code: EX188
- Exam Name: Red Hat Certified Specialist in Containers
- Certification Provider: RedHat
- Latest update: Oct 22,2026
Question #171
What happens when you run podman ps -a?
- A . Lists all containers, running or stopped
- B . Lists only running containers
- C . Removes all stopped containers
- D . Displays container logs
Correct Answer: A
A
Explanation:
The podman ps -a command lists all containers, including those that are stopped or exited.
A
Explanation:
The podman ps -a command lists all containers, including those that are stopped or exited.
Question #172
Which command mounts a container’s root filesystem?
- A . podman mount <container>
- B . podman attach <container>
- C . podman bind <container>
- D . podman volume mount <container>
Correct Answer: A
A
Explanation:
The podman mount command mounts the container’s root filesystem on the host, making it accessible for inspection or modification.
A
Explanation:
The podman mount command mounts the container’s root filesystem on the host, making it accessible for inspection or modification.
Question #173
How do you run a container with a specific name?
- A . podman create –name <name> <image>
- B . podman run –id <name> <image>
- C . podman start –name <name> <image>
- D . podman launch –name <name> <image>
Correct Answer: A
A
Explanation:
The –name option in podman create or podman run assigns a specific name to the container.
A
Explanation:
The –name option in podman create or podman run assigns a specific name to the container.
Question #174
How can you view the exit code of a stopped container?
- A . podman ps –exit
- B . podman status <container>
- C . podman inspect <container>
- D . podman logs <container>
Correct Answer: C
C
Explanation:
podman inspect provides detailed information about a container, including its exit code after it stops.
C
Explanation:
podman inspect provides detailed information about a container, including its exit code after it stops.
Question #175
How do you restart a container that is stuck or unresponsive?
- A . podman stop <container>
- B . podman restart <container>
- C . podman kill <container>
- D . podman attach <container>
Correct Answer: B
B
Explanation:
podman restart stops and then starts the container, useful for resolving unresponsive issues.
B
Explanation:
podman restart stops and then starts the container, useful for resolving unresponsive issues.
Question #176
Which two commands start a stopped container? (Select two)
- A . podman start
- B . podman restart
- C . podman run
- D . podman wake
Correct Answer: A, B
A, B
Explanation:
podman start starts a stopped container, while podman restart stops and starts it again.
A, B
Explanation:
podman start starts a stopped container, while podman restart stops and starts it again.
Question #177
What is the purpose of multi-stage builds in a Containerfile?
- A . To reduce image size by copying only necessary artifacts
- B . To speed up image builds
- C . To create multiple containers at once
- D . To improve container security
Correct Answer: A
A
Explanation:
Multi-stage builds help minimize image size by copying only the required artifacts from a build stage to the final image.
A
Explanation:
Multi-stage builds help minimize image size by copying only the required artifacts from a build stage to the final image.
Question #178
Which two commands display detailed information about container resources? (Select two)
- A . podman stats <container>
- B . podman inspect <container>
- C . podman logs <container>
- D . podman top <container>
Correct Answer: A, B
A, B
Explanation:
podman stats shows real-time resource usage, and podman inspect provides detailed metadata, including resource limits.
A, B
Explanation:
podman stats shows real-time resource usage, and podman inspect provides detailed metadata, including resource limits.
Question #179
How do you view the live logs of a running container?
- A . podman logs –tail <container>
- B . podman logs –follow <container>
- C . podman watch <container>
- D . podman events –live <container>
Correct Answer: B
B
Explanation:
The –follow option streams the logs of a running container in real-time.
B
Explanation:
The –follow option streams the logs of a running container in real-time.
Question #180
Which option allows you to attach a terminal to a running container?
- A . podman attach
- B . podman exec -it
- C . podman connect
- D . podman interact
Correct Answer: A
A
Explanation:
The podman attach command connects your terminal to a running container’s standard input/output.
A
Explanation:
The podman attach command connects your terminal to a running container’s standard input/output.