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 #231
Which command lists all ports exposed by a Podman container?
- A . podman port <container>
- B . podman ps –ports
- C . podman inspect <container>
- D . podman network ls
Correct Answer: A
A
Explanation:
podman port shows the port mappings for a running container, including host-to-container port bindings.
A
Explanation:
podman port shows the port mappings for a running container, including host-to-container port bindings.
Question #232
Which option displays the real-time resource usage of a Podman container?
- A . podman top
- B . podman stats
- C . podman inspect
- D . podman info
Correct Answer: B
B
Explanation:
The podman stats command provides real-time statistics on container resource usage, such as CPU and memory.
B
Explanation:
The podman stats command provides real-time statistics on container resource usage, such as CPU and memory.
Question #233
Which command lists all available secrets?
- A . podman secret ls
- B . podman secrets
- C . podman secret list
- D . podman show secrets
Correct Answer: A
A
Explanation:
The podman secret ls command lists all available secrets, showing their names and IDs.
A
Explanation:
The podman secret ls command lists all available secrets, showing their names and IDs.
Question #234
Which command creates a multi-container configuration using YAML?
- A . podman play stack <file>
- B . podman create kube <file>
- C . podman play kube <file>
- D . podman generate kube <file>
Correct Answer: C
C
Explanation:
podman play kube <file> creates pods and containers based on Kubernetes YAML definitions.
C
Explanation:
podman play kube <file> creates pods and containers based on Kubernetes YAML definitions.
Question #235
Which two commands restart a container? (Select two)
- A . podman restart <container>
- B . podman start –restart <container>
- C . podman stop <container> and podman start <container>
- D . podman run –restart <container>
Correct Answer: A, C
A, C
Explanation:
podman restart directly restarts a container, while stopping and starting achieves the same result.
A, C
Explanation:
podman restart directly restarts a container, while stopping and starting achieves the same result.
Question #236
Which option is used to forcefully remove a running container?
- A . podman rm -f
- B . podman rm –all
- C . podman delete –force
- D . podman stop
Correct Answer: A
A
Explanation:
The podman rm -f command forcefully removes running containers by stopping them first.
A
Explanation:
The podman rm -f command forcefully removes running containers by stopping them first.
Question #237
What is the purpose of the –secret option in podman run?
- A . To create a new secret in the container
- B . To pass a secret to the container securely
- C . To expose a secret as an environment variable
- D . To encrypt the container image
Correct Answer: B
B
Explanation:
The –secret option passes a secret securely to the container without exposing it as a plain environment variable.
B
Explanation:
The –secret option passes a secret securely to the container without exposing it as a plain environment variable.
Question #238
Which two commands stop all containers in a pod? (Select two)
- A . podman stop –all
- B . podman pod stop <pod>
- C . podman stop <pod>
- D . podman kill <pod>
Correct Answer: B, D
B, D
Explanation:
podman pod stop and podman kill both stop all containers within a pod.
B, D
Explanation:
podman pod stop and podman kill both stop all containers within a pod.
Question #239
How do you create a container with a dependency on another container?
- A . podman create –depends-on <container> <image>
- B . podman run –link <container> <image>
- C . podman exec –after <container> <image>
- D . podman start –dependency <container> <image>
Correct Answer: A
A
Explanation:
The –depends-on option creates a container with a dependency on another specified container.
A
Explanation:
The –depends-on option creates a container with a dependency on another specified container.
Question #240
What does podman ps -a display?
- A . Only running containers
- B . All containers, including stopped ones
- C . All container events
- D . Detailed container configuration
Correct Answer: B
B
Explanation:
podman ps -a lists all containers, whether running, stopped, or exited.
B
Explanation:
podman ps -a lists all containers, whether running, stopped, or exited.