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 #31
What does the podman rmi command do?
- A . Removes an image
- B . Restarts a container
- C . Creates a new container
- D . Lists all running containers
Correct Answer: A
A
Explanation:
The podman rmi command removes images from the local system, freeing up storage space.
A
Explanation:
The podman rmi command removes images from the local system, freeing up storage space.
Question #32
How do you expose a container port without binding it to a host port?
- A . podman run –map <port>
- B . podman run –expose <port>
- C . podman run –bind <port>
- D . podman run –publish <port>
Correct Answer: B
B
Explanation:
The –expose option exposes a port inside the container without binding it to a host port.
B
Explanation:
The –expose option exposes a port inside the container without binding it to a host port.
Question #33
What is the effect of using the –rm option with Podman run?
- A . It removes the container after it exits
- B . It forcefully stops the container
- C . It restarts the container automatically
- D . It creates a read-only filesystem
Correct Answer: A
A
Explanation:
The –rm option automatically removes the container once it exits, helping maintain a clean environment.
A
Explanation:
The –rm option automatically removes the container once it exits, helping maintain a clean environment.
Question #34
Which option allows you to mount a volume with a SELinux label in Podman?
- A . -v /host:/container:Z
- B . -v /host:/container:S
- C . –mount-selinux
- D . –secure-mount
Correct Answer: A
A
Explanation:
The :Z option applies a shared SELinux label to the volume, allowing containers to access it securely.
A
Explanation:
The :Z option applies a shared SELinux label to the volume, allowing containers to access it securely.
Question #35
Which command runs a container in detached mode using Podman?
- A . podman start –detach
- B . podman run -d
- C . podman create -b
- D . podman exec -d
Correct Answer: B
B
Explanation:
The -d option in podman run runs the container in the background (detached mode), allowing the terminal to be used for other tasks.
B
Explanation:
The -d option in podman run runs the container in the background (detached mode), allowing the terminal to be used for other tasks.
Question #36
Which two commands display detailed configuration of a running container? (Select two)
- A . podman inspect <container>
- B . podman ps –details
- C . podman info <container>
- D . podman describe <container>
Correct Answer: A, B
A, B
Explanation:
podman inspect and podman ps –details provide detailed configuration and runtime information about the container.
A, B
Explanation:
podman inspect and podman ps –details provide detailed configuration and runtime information about the container.
Question #37
Which option ensures a container runs in the background?
- A . -d
- B . -b
- C . –detach
- D . –background
Correct Answer: A, C
A, C
Explanation:
The -d or –detach option allows the container to run in the background, freeing the terminal for other tasks.
A, C
Explanation:
The -d or –detach option allows the container to run in the background, freeing the terminal for other tasks.
Question #38
How do you display all environment variables set for a running container?
- A . podman inspect –env <container>
- B . podman exec <container> env
- C . podman logs <container> –env
- D . podman top <container> –env
Correct Answer: B
B
Explanation:
podman exec <container> env runs the env command inside the container to display all environment variables.
B
Explanation:
podman exec <container> env runs the env command inside the container to display all environment variables.
Question #39
Which two commands are used to back up an image with its metadata? (Select two)
- A . podman save
- B . podman export
- C . skopeo copy
- D . podman commit
Correct Answer: A, C
A, C
Explanation:
podman save and skopeo copy preserve the image’s layers and metadata when creating backups.
A, C
Explanation:
podman save and skopeo copy preserve the image’s layers and metadata when creating backups.
Question #40
What should you consider when exposing ports in a Containerfile?
- A . Use dynamic port assignment for flexibility
- B . Match the application’s listening ports
- C . Avoid exposing ports in production
- D . Always expose multiple ports
Correct Answer: B
B
Explanation:
The EXPOSE instruction should align with the application’s listening ports to ensure correct networking and service availability.
B
Explanation:
The EXPOSE instruction should align with the application’s listening ports to ensure correct networking and service availability.