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 #151
What does the podman commit command do?
- A . Creates an image from a container’s state
- B . Saves container logs
- C . Exports container data
- D . Deletes a container
Correct Answer: A
A
Explanation:
podman commit captures the current state of a container and creates a new image from it.
A
Explanation:
podman commit captures the current state of a container and creates a new image from it.
Question #152
Which instruction allows you to change the ownership of files during a build?
- A . COPY –chown
- B . ADD –chown
- C . RUN –chown
- D . WORKDIR –chown
Correct Answer: A
A
Explanation:
The COPY –chown option changes the ownership of files during the build process for enhanced security.
A
Explanation:
The COPY –chown option changes the ownership of files during the build process for enhanced security.
Question #153
Which command lists all running containers with their status and uptime?
- A . podman ps
- B . podman list
- C . podman containers
- D . podman status
Correct Answer: A
A
Explanation:
podman ps displays all running containers, showing details like container ID, image, status, and uptime.
A
Explanation:
podman ps displays all running containers, showing details like container ID, image, status, and uptime.
Question #154
Which two commands help identify networking issues in a container? (Select two)
- A . podman network inspect <container>
- B . podman inspect <container>
- C . podman logs <container>
- D . podman stats <container>
Correct Answer: A, B
A, B
Explanation:
podman network inspect and podman inspect display detailed networking information and configuration of a container.
A, B
Explanation:
podman network inspect and podman inspect display detailed networking information and configuration of a container.
Question #155
Which command lists all container events on the host?
- A . podman logs
- B . podman events
- C . podman ps -a
- D . podman monitor
Correct Answer: B
B
Explanation:
podman events shows real-time and historical container events, such as start, stop, and delete actions.
B
Explanation:
podman events shows real-time and historical container events, such as start, stop, and delete actions.
Question #156
Which option allows you to pass multiple environment variables from a file?
- A . –env-file
- B . –set-env
- C . –import-env
- D . –file-env
Correct Answer: A
A
Explanation:
The –env-file option specifies a file containing multiple environment variables to pass to the container.
A
Explanation:
The –env-file option specifies a file containing multiple environment variables to pass to the container.
Question #157
What happens when you use podman run –rm?
- A . The container is removed automatically after it exits
- B . The container runs in read-only mode
- C . The container restarts automatically
- D . The container mounts a volume
Correct Answer: A
A
Explanation:
The –rm option automatically removes the container after it exits, keeping the environment clean.
A
Explanation:
The –rm option automatically removes the container after it exits, keeping the environment clean.
Question #158
What does podman generate kube <pod> do?
- A . Converts a pod to a Kubernetes YAML file
- B . Generates a new pod from a YAML file
- C . Updates a pod configuration
- D . Deletes a pod configuration
Correct Answer: A
A
Explanation:
podman generate kube converts an existing pod into a Kubernetes YAML file.
A
Explanation:
podman generate kube converts an existing pod into a Kubernetes YAML file.
Question #159
Which instruction copies a file while preserving metadata?
- A . ADD
- B . COPY
- C . RUN
- D . ENV
Correct Answer: A
A
Explanation:
The ADD instruction can copy files and preserve metadata, such as timestamps and permissions.
A
Explanation:
The ADD instruction can copy files and preserve metadata, such as timestamps and permissions.
Question #160
How can you push an image to a specific registry with a tag?
- A . podman push <image>:<tag> <registry>
- B . podman upload <image> <registry>:<tag>
- C . podman push <registry>/<image>:<tag>
- D . podman transfer <registry>/<image>
Correct Answer: C
C
Explanation:
podman push <registry>/<image>:<tag> specifies the registry, image name, and tag for the push operation.
C
Explanation:
podman push <registry>/<image>:<tag> specifies the registry, image name, and tag for the push operation.