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 #91
How do you mount a temporary filesystem in a container?
- A . –volume tmpfs:/path
- B . –tmpfs /path
- C . –mount type=tmpfs,target=/path
- D . –memoryfs /path
Correct Answer: B
B
Explanation:
The –tmpfs /path option mounts a temporary filesystem (tmpfs) at the specified path in the container.
B
Explanation:
The –tmpfs /path option mounts a temporary filesystem (tmpfs) at the specified path in the container.
Question #92
How do you display the creation time of a container?
- A . podman ps –time
- B . podman inspect <container>
- C . podman logs –created <container>
- D . podman events –created <container>
Correct Answer: B
B
Explanation:
podman inspect provides detailed metadata, including the container’s creation time.
B
Explanation:
podman inspect provides detailed metadata, including the container’s creation time.
Question #93
How do you connect a running container to a network in Podman?
- A . podman network connect <network> <container>
- B . podman network join <network> <container>
- C . podman attach <network> <container>
- D . podman run –network <network>
Correct Answer: A
A
Explanation:
podman network connect connects a running container to an existing network, enabling communication between containers.
A
Explanation:
podman network connect connects a running container to an existing network, enabling communication between containers.
Question #94
Which command shows the history of an image, including its layers and commands?
- A . podman info <image>
- B . podman inspect <image>
- C . podman history <image>
- D . podman view <image>
Correct Answer: C
C
Explanation:
podman history displays a list of layers and commands used to build the image, useful for auditing changes.
C
Explanation:
podman history displays a list of layers and commands used to build the image, useful for auditing changes.
Question #95
Which Podman command updates a running container’s environment variables?
- A . podman exec –env
- B . podman update –env
- C . podman restart –env
- D . Environment variables cannot be updated in a running container
Correct Answer: D
D
Explanation:
Environment variables cannot be updated in a running container. They must be defined during container creation.
D
Explanation:
Environment variables cannot be updated in a running container. They must be defined during container creation.
Question #96
What happens when you use podman exec -it <container> /bin/bash?
- A . Opens an interactive Bash shell in the container
- B . Attaches the container’s logs to the terminal
- C . Copies Bash into the container
- D . Stops the container
Correct Answer: A
A
Explanation:
The -it option opens an interactive terminal, allowing you to run commands inside the container.
A
Explanation:
The -it option opens an interactive terminal, allowing you to run commands inside the container.
Question #97
What does podman pod rm -f <pod> do?
- A . Stops all containers in the pod
- B . Removes the pod and its containers forcefully
- C . Renames the pod
- D . Restarts the pod
Correct Answer: B
B
Explanation:
podman pod rm -f forcefully removes a pod and all its associated containers.
B
Explanation:
podman pod rm -f forcefully removes a pod and all its associated containers.
Question #98
Which option allows you to specify a custom network for a pod?
- A . –network
- B . –link
- C . –connect
- D . –attach
Correct Answer: A
A
Explanation:
The –network option specifies a custom network for the pod, allowing isolated network configurations.
A
Explanation:
The –network option specifies a custom network for the pod, allowing isolated network configurations.
Question #99
Which instruction sets the working directory inside the container?
- A . WORKDIR
- B . DIRECTORY
- C . PATH
- D . LOCATE
Correct Answer: A
A
Explanation:
The WORKDIR instruction sets the working directory for instructions that follow. It simplifies path management in the Containerfile.
A
Explanation:
The WORKDIR instruction sets the working directory for instructions that follow. It simplifies path management in the Containerfile.
Question #100
Which command updates a container’s restart policy?
- A . podman restart –policy
- B . podman update –restart
- C . podman run –restart
- D . podman set –policy
Correct Answer: B
B
Explanation:
The podman update –restart command updates the restart policy of an existing container.
B
Explanation:
The podman update –restart command updates the restart policy of an existing container.