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 #321
Which two commands stop all containers in a pod? (Select two)
- A . podman stop –all
- B . podman pod stop <pod>
- C . podman stop <pod>
- D . podman kill <pod>
Correct Answer: B, D
B, D
Explanation:
podman pod stop gracefully stops all containers in a pod, while podman kill forcefully stops them.
B, D
Explanation:
podman pod stop gracefully stops all containers in a pod, while podman kill forcefully stops them.
Question #322
What does the CMD instruction define in a Containerfile?
- A . Default command executed when the container runs
- B . Base image used for building
- C . Ports to expose
- D . User to run the container
Correct Answer: A
A
Explanation:
The CMD instruction specifies the default command to execute when the container starts unless overridden.
A
Explanation:
The CMD instruction specifies the default command to execute when the container starts unless overridden.
Question #323
Which instruction can define a default executable in a container?
- A . ENTRYPOINT
- B . CMD
- C . RUN
- D . ENV
Correct Answer: A
A
Explanation:
The ENTRYPOINT instruction sets the default executable, ensuring consistent behavior during runtime.
A
Explanation:
The ENTRYPOINT instruction sets the default executable, ensuring consistent behavior during runtime.
Question #324
How do you display the real-time resource usage of a running container?
- A . podman stats <container>
- B . podman top <container>
- C . podman inspect <container>
- D . podman events <container>
Correct Answer: A
A
Explanation:
podman stats shows real-time CPU, memory, and I/O usage for running containers.
A
Explanation:
podman stats shows real-time CPU, memory, and I/O usage for running containers.
Question #325
Which two instructions can be used to set default commands for a container? (Select two)
- A . CMD
- B . ENTRYPOINT
- C . COPY
- D . RUN
Correct Answer: A, B
A, B
Explanation:
CMD and ENTRYPOINT define default commands. CMD specifies arguments, while ENTRYPOINT sets the executable.
A, B
Explanation:
CMD and ENTRYPOINT define default commands. CMD specifies arguments, while ENTRYPOINT sets the executable.
Question #326
Which command shows the container’s IP address?
- A . podman ip <container>
- B . podman inspect -f ‘{{.NetworkSettings.IPAddress}}’ <container>
- C . podman ps –ip <container>
- D . podman logs –network <container>
Correct Answer: B
B
Explanation:
The Go template in podman inspect extracts the container’s IP address from the network settings.
B
Explanation:
The Go template in podman inspect extracts the container’s IP address from the network settings.
Question #327
How do you display the environment variables of a running container?
- A . podman inspect –env <container>
- B . podman exec <container> env
- C . podman logs –env <container>
- D . podman top <container> –env
Correct Answer: B
B
Explanation:
The podman exec <container> env command runs the env command inside the container to list environment variables.
B
Explanation:
The podman exec <container> env command runs the env command inside the container to list environment variables.
Question #328
Which Podman command lists all available pods?
- A . podman pod ps
- B . podman pod list
- C . podman ps –pods
- D . podman pod show
Correct Answer: A
A
Explanation:
The podman pod ps command lists all pods and their current state, similar to podman ps for containers.
A
Explanation:
The podman pod ps command lists all pods and their current state, similar to podman ps for containers.
Question #329
Which command starts a stopped container with an interactive session?
- A . podman start -i <container>
- B . podman run -it <container>
- C . podman exec -it <container>
- D . podman attach <container>
Correct Answer: A
A
Explanation:
The -i option with podman start starts a stopped container and attaches an interactive session.
A
Explanation:
The -i option with podman start starts a stopped container and attaches an interactive session.
Question #330
Which command retrieves the last few lines of a container’s logs?
- A . podman logs –tail <container>
- B . podman logs –latest <container>
- C . podman logs –last <container>
- D . podman logs –recent <container>
Correct Answer: A
A
Explanation:
The –tail option with podman logs shows the last few lines of a container’s log output.
A
Explanation:
The –tail option with podman logs shows the last few lines of a container’s log output.