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 #271
Which command shows only the container IDs of running containers?
- A . podman ps -q
- B . podman list –ids
- C . podman ps –only-ids
- D . podman inspect –ids
Correct Answer: A
A
Explanation:
The -q option with podman ps lists only the container IDs.
A
Explanation:
The -q option with podman ps lists only the container IDs.
Question #272
How can you expose a container’s port to a host port using Podman?
- A . podman run –expose 8080:80
- B . podman run -p 8080:80
- C . podman run –bind 8080:80
- D . podman run –map 8080:80
Correct Answer: B
B
Explanation:
The -p or –publish option maps a container port to a host port, making the application accessible
externally.
B
Explanation:
The -p or –publish option maps a container port to a host port, making the application accessible
externally.
Question #273
Which command retrieves the first 10 lines of container logs?
- A . podman logs –first 10 <container>
- B . podman logs –lines 10 <container>
- C . podman logs –tail 10 <container>
- D . podman logs –head 10 <container>
Correct Answer: C
C
Explanation:
The –tail 10 option shows the last 10 lines of the container’s logs.
C
Explanation:
The –tail 10 option shows the last 10 lines of the container’s logs.
Question #274
How do you run a container with a custom hostname?
- A . podman run –hostname <name>
- B . podman run –host <name>
- C . podman start –hostname <name>
- D . podman create –host <name>
Correct Answer: A
A
Explanation:
The –hostname option sets a custom hostname for the container.
A
Explanation:
The –hostname option sets a custom hostname for the container.
Question #275
What does the podman history <image> command show?
- A . The layers and commands used to create the image
- B . The runtime status of the image
- C . The logs of the image
- D . The image storage location
Correct Answer: A
A
Explanation:
podman history displays the history of an image, showing its layers and associated commands.
A
Explanation:
podman history displays the history of an image, showing its layers and associated commands.
Question #276
What does the podman pod rm command do?
- A . Removes a stopped pod
- B . Stops all running containers in a pod
- C . Removes a running pod
- D . Lists all pods
Correct Answer: A
A
Explanation:
The podman pod rm command removes stopped pods and their associated containers, freeing up resources.
A
Explanation:
The podman pod rm command removes stopped pods and their associated containers, freeing up resources.
Question #277
What does podman restart <container> do?
- A . Stops and starts the container
- B . Kills the container
- C . Updates the container configuration
- D . Removes the container
Correct Answer: A
A
Explanation:
podman restart stops and then starts the container, useful for applying new configuration or resolving issues.
A
Explanation:
podman restart stops and then starts the container, useful for applying new configuration or resolving issues.
Question #278
Which two commands display detailed information about a container’s network settings? (Select two)
- A . podman logs
- B . podman inspect
- C . podman netstat
- D . podman network inspect
Correct Answer: B, D
B, D
Explanation:
podman inspect shows a container’s detailed configuration, while podman network inspect provides network-specific details.
B, D
Explanation:
podman inspect shows a container’s detailed configuration, while podman network inspect provides network-specific details.
Question #279
Which option displays the latest log entries for a container?
- A . podman logs –head <container>
- B . podman logs –tail <container>
- C . podman logs –recent <container>
- D . podman logs –last <container>
Correct Answer: B
B
Explanation:
The –tail option shows the most recent log entries for a container.
B
Explanation:
The –tail option shows the most recent log entries for a container.
Question #280
What is the purpose of the –format option with podman inspect?
- A . Displays output in a user-friendly format
- B . Filters the output based on a template
- C . Converts the image to a different format
- D . Compresses the output
Correct Answer: B
B
Explanation:
The –format option allows you to customize the podman inspect output using Go templates for easier readability.
B
Explanation:
The –format option allows you to customize the podman inspect output using Go templates for easier readability.