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 #291
What happens if a container runs with the –read-only option?
- A . The filesystem becomes immutable
- B . The container runs in the background
- C . The container uses named volumes
- D . The container auto-restarts
Correct Answer: A
A
Explanation:
The –read-only option makes the container’s filesystem immutable, preventing any changes.
A
Explanation:
The –read-only option makes the container’s filesystem immutable, preventing any changes.
Question #292
Which instruction sets the default working directory inside a container?
- A . WORKDIR
- B . CMD
- C . ENTRYPOINT
- D . RUN
Correct Answer: A
A
Explanation:
The WORKDIR instruction sets the default working directory for subsequent instructions.
A
Explanation:
The WORKDIR instruction sets the default working directory for subsequent instructions.
Question #293
Which command lists all the exposed ports of a container?
- A . podman ports <container>
- B . podman ps –ports
- C . podman inspect <container>
- D . podman netstat <container>
Correct Answer: A
A
Explanation:
The podman port command shows all ports mapped between the container and host.
A
Explanation:
The podman port command shows all ports mapped between the container and host.
Question #294
Which tool is used for copying images between different registries?
- A . podman copy
- B . skopeo copy
- C . podman transfer
- D . skopeo push
Correct Answer: B
B
Explanation:
skopeo copy transfers images between registries without storing them locally, useful for mirroring or migrating images.
B
Explanation:
skopeo copy transfers images between registries without storing them locally, useful for mirroring or migrating images.
Question #295
Which Podman command displays the size of container images?
- A . podman images
- B . podman size
- C . podman inspect
- D . podman stats
Correct Answer: A
A
Explanation:
The podman images command lists all images and displays their sizes, helping you manage storage effectively.
A
Explanation:
The podman images command lists all images and displays their sizes, helping you manage storage effectively.
Question #296
Which command shows the layers of an image and the commands used to create them?
- A . podman inspect <image>
- B . podman history <image>
- C . podman view <image>
- D . podman diff <image>
Correct Answer: B
B
Explanation:
podman history displays the image’s layer history, showing the commands and their respective sizes.
B
Explanation:
podman history displays the image’s layer history, showing the commands and their respective sizes.
Question #297
Which option forces a container to use a read-only filesystem?
- A . –read-only
- B . –rofs
- C . –no-write
- D . –immutable
Correct Answer: A
A
Explanation:
The –read-only option ensures the container’s filesystem is immutable, enhancing security.
A
Explanation:
The –read-only option ensures the container’s filesystem is immutable, enhancing security.
Question #298
Which option allows you to set environment variables for a container during runtime?
- A . –env
- B . –set-env
- C . –variables
- D . –export-env
Correct Answer: A
A
Explanation:
The –env option sets environment variables for the container, allowing configuration without modifying the image.
A
Explanation:
The –env option sets environment variables for the container, allowing configuration without modifying the image.
Question #299
What does podman inspect -f ‘{{.State.Status}}’ <container> display?
- A . Container creation time
- B . Container state (running, stopped, etc.)
- C . Container logs
- D . Container network settings
Correct Answer: B
B
Explanation:
This Go template extracts the current state of the container (e.g., running, stopped).
B
Explanation:
This Go template extracts the current state of the container (e.g., running, stopped).
Question #300
What is the purpose of using podman commit?
- A . Backing up a container’s filesystem state as an image
- B . Pushing a container to a registry
- C . Exporting an image to a tar file
- D . Restoring a container from an image
Correct Answer: A
A
Explanation:
podman commit saves the current state of a container as a new image, including changes made during runtime.
A
Explanation:
podman commit saves the current state of a container as a new image, including changes made during runtime.