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 #191
How do you pass a secret to a container at runtime?
- A . podman run –env SECRET=value
- B . podman run –secret <name>
- C . podman create –secret-file <file>
- D . podman exec –secret <name>
Correct Answer: B
B
Explanation:
The –secret option securely injects a secret into the container at runtime.
B
Explanation:
The –secret option securely injects a secret into the container at runtime.
Question #192
Which two commands display the dependencies of a container? (Select two)
- A . podman inspect <container>
- B . podman ps –depends <container>
- C . podman pod inspect <pod>
- D . podman list-depends <container>
Correct Answer: A, C
A, C
Explanation:
podman inspect shows container dependencies, and podman pod inspect reveals pod-level dependencies.
A, C
Explanation:
podman inspect shows container dependencies, and podman pod inspect reveals pod-level dependencies.
Question #193
Which command allows you to stream container logs in real-time?
- A . podman logs –tail
- B . podman events
- C . podman logs –follow
- D . podman stats
Correct Answer: C
C
Explanation:
The –follow option streams logs in real-time, useful for monitoring active containers.
C
Explanation:
The –follow option streams logs in real-time, useful for monitoring active containers.
Question #194
What does the podman play kube command do?
- A . Deploys containers from a Kubernetes YAML file
- B . Converts Kubernetes YAML to Podman YAML
- C . Runs a Kubernetes cluster locally
- D . Creates a pod from a Containerfile
Correct Answer: A
A
Explanation:
The podman play kube command deploys containers and pods based on Kubernetes YAML definitions, useful for local testing.
A
Explanation:
The podman play kube command deploys containers and pods based on Kubernetes YAML definitions, useful for local testing.
Question #195
What does podman stats <container> display?
- A . Container logs
- B . Real-time resource usage
- C . Configuration details
- D . Network connections
Correct Answer: B
B
Explanation:
podman stats shows real-time metrics like CPU, memory, and I/O usage for running containers.
B
Explanation:
podman stats shows real-time metrics like CPU, memory, and I/O usage for running containers.
Question #196
Which option defines a custom hostname for a container in a pod?
- A . –pod-hostname
- B . –name
- C . –hostname
- D . –alias
Correct Answer: C
C
Explanation:
The –hostname option sets a custom hostname for the container.
C
Explanation:
The –hostname option sets a custom hostname for the container.
Question #197
Which command stops all running containers?
- A . podman stop –all
- B . podman rm –all
- C . podman kill –all
- D . podman halt
Correct Answer: A
A
Explanation:
The podman stop –all command stops all currently running containers gracefully.
A
Explanation:
The podman stop –all command stops all currently running containers gracefully.
Question #198
Which option sets the restart policy for a container in Podman?
- A . –restart=always
- B . –policy=restart
- C . –auto-restart
- D . –restart-policy=always
Correct Answer: A
A
Explanation:
The –restart option sets the container’s restart policy, controlling behavior when the container exits.
A
Explanation:
The –restart option sets the container’s restart policy, controlling behavior when the container exits.
Question #199
What does the –pod option do when running a Podman container?
- A . Runs the container within a specified pod
- B . Creates a new pod automatically
- C . Lists all running pods
- D . Stops all pods
Correct Answer: A
A
Explanation:
The –pod option runs a container within a specified pod, allowing containers to share namespaces and resources.
A
Explanation:
The –pod option runs a container within a specified pod, allowing containers to share namespaces and resources.
Question #200
How do you forcefully remove a running container?
- A . podman rm <container>
- B . podman rm -f <container>
- C . podman stop <container>
- D . podman delete <container>
Correct Answer: B
B
Explanation:
podman rm -f forcefully removes a running container by stopping it first.
B
Explanation:
podman rm -f forcefully removes a running container by stopping it first.