RedHat EX188 Practice Exams
Last updated on Oct 21,2026- Exam Code: EX188
- Exam Name: Red Hat Certified Specialist in Containers
- Certification Provider: RedHat
- Latest update: Oct 21,2026
Question #11
How do you display the IP address of a running Podman container?
- A . podman inspect -f ‘{{.NetworkSettings.IPAddress}}’ <container>
- B . podman ip <container>
- C . podman network ls <container>
- D . podman show <container>
Correct Answer: A
A
Explanation:
The podman inspect command with the -f option retrieves the container’s IP address from its network settings.
A
Explanation:
The podman inspect command with the -f option retrieves the container’s IP address from its network settings.
Question #12
How do you get the logs of a running container?
- A . podman events <container>
- B . podman logs <container>
- C . podman history <container>
- D . podman inspect –logs
Correct Answer: B
B
Explanation:
The podman logs command retrieves the log output for a specified running or stopped container.
B
Explanation:
The podman logs command retrieves the log output for a specified running or stopped container.
Question #13
Which command lists all available Podman commands and options?
- A . podman help
- B . podman list
- C . podman show
- D . podman commands
Correct Answer: A
A
Explanation:
podman help provides a list of all available commands and options, assisting with command-line usage.
A
Explanation:
podman help provides a list of all available commands and options, assisting with command-line usage.
Question #14
How do you connect to a running container’s shell?
- A . podman attach <container>
- B . podman exec -it <container> bash
- C . podman connect <container>
- D . podman run –attach <container>
Correct Answer: B
B
Explanation:
podman exec -it <container> bash starts an interactive shell session inside the running container.
B
Explanation:
podman exec -it <container> bash starts an interactive shell session inside the running container.
Question #15
How do you view detailed information about the host system’s containers?
- A . podman system info
- B . podman inspect –host
- C . podman host status
- D . podman system inspect
Correct Answer: A
A
Explanation:
podman system info provides detailed information about the host system, including container runtime details.
A
Explanation:
podman system info provides detailed information about the host system, including container runtime details.
Question #16
Which command mounts a named volume to a container?
- A . podman run -v myvol:/data
- B . podman mount myvol:/data
- C . podman attach myvol:/data
- D . podman bind myvol:/data
Correct Answer: A
A
Explanation:
The -v option with podman run mounts a named volume to the specified container path.
A
Explanation:
The -v option with podman run mounts a named volume to the specified container path.
Question #17
What does podman play kube <file> do?
- A . Converts a pod to a YAML file
- B . Deploys containers from a Kubernetes YAML file
- C . Deletes a Kubernetes YAML configuration
- D . Updates an existing pod configuration
Correct Answer: B
B
Explanation:
podman play kube deploys pods and containers based on a Kubernetes YAML file.
B
Explanation:
podman play kube deploys pods and containers based on a Kubernetes YAML file.
Question #18
Which option sets the CPU limit for a container during podman run?
- A . –cpus=2
- B . –cpu-limit=2
- C . –cpulimit=2
- D . –cpu-max=2
Correct Answer: A
A
Explanation:
The –cpus option restricts the container to use a specified number of CPU cores, controlling resource usage.
A
Explanation:
The –cpus option restricts the container to use a specified number of CPU cores, controlling resource usage.
Question #19
Which command creates a container with a read-only filesystem?
- A . podman run –readonly <image>
- B . podman create –rofs <image>
- C . podman exec –readonly <image>
- D . podman start –rofs <image>
Correct Answer: A
A
Explanation:
The –readonly option makes the container’s filesystem read-only, improving security.
A
Explanation:
The –readonly option makes the container’s filesystem read-only, improving security.
Question #20
How do you inject a secret into a container’s environment variables?
- A . podman run –env SECRET=value
- B . podman run –secret id=<name>,env
- C . podman create –secret-env <name>
- D . podman start –secret-env <name>
Correct Answer: B
B
Explanation:
The –secret id=<name>,env option injects a secret directly into the container’s environment variables.
B
Explanation:
The –secret id=<name>,env option injects a secret directly into the container’s environment variables.