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 #181
Which command creates a pod in Podman?
- A . podman create pod <name>
- B . podman generate pod <name>
- C . podman new pod <name>
- D . podman pod create <name>
Correct Answer: D
D
Explanation:
podman pod create <name> creates a new pod where multiple containers can share network and IPC namespaces.
D
Explanation:
podman pod create <name> creates a new pod where multiple containers can share network and IPC namespaces.
Question #182
Which command retrieves the hostname of a running container?
- A . podman top <container>
- B . podman inspect -f ‘{{.Config.Hostname}}’ <container>
- C . podman logs –hostname <container>
- D . podman ps –hostname
Correct Answer: B
B
Explanation:
podman inspect with a Go template retrieves the container’s hostname from its configuration.
B
Explanation:
podman inspect with a Go template retrieves the container’s hostname from its configuration.
Question #183
How do you check the health status of a container?
- A . podman health <container>
- B . podman inspect <container>
- C . podman ps –health
- D . podman status <container>
Correct Answer: B
B
Explanation:
podman inspect includes health check details in the container’s metadata, showing the current health status.
B
Explanation:
podman inspect includes health check details in the container’s metadata, showing the current health status.
Question #184
Which command inspects the metadata of a container image?
- A . podman image inspect <image>
- B . podman inspect <image>
- C . podman ps –image <image>
- D . podman logs <image>
Correct Answer: A
A
Explanation:
podman image inspect retrieves detailed metadata of a specified image, including labels and layers.
A
Explanation:
podman image inspect retrieves detailed metadata of a specified image, including labels and layers.
Question #185
Which option shows container events, such as starting or stopping?
- A . podman events
- B . podman logs
- C . podman status
- D . podman info
Correct Answer: A
A
Explanation:
The podman events command provides a stream of container-related events, useful for troubleshooting.
A
Explanation:
The podman events command provides a stream of container-related events, useful for troubleshooting.
Question #186
Which option ensures a container runs with restricted privileges?
- A . –security-opt=no-new-privileges
- B . –privileged
- C . –cap-add=ALL
- D . –user=root
Correct Answer: A
A
Explanation:
The –security-opt=no-new-privileges option prevents the container from gaining additional privileges, enhancing security.
A
Explanation:
The –security-opt=no-new-privileges option prevents the container from gaining additional privileges, enhancing security.
Question #187
Which two commands can log in to a container registry? (Select two)
- A . podman login
- B . skopeo login
- C . podman auth
- D . podman creds
Correct Answer: A, B
A, B
Explanation:
Both podman login and skopeo login authenticate to a registry, storing credentials securely.
A, B
Explanation:
Both podman login and skopeo login authenticate to a registry, storing credentials securely.
Question #188
What is the key difference between the ADD and COPY instructions in a Containerfile?
- A . ADD can fetch remote URLs, COPY cannot
- B . COPY decompresses archives, ADD does not
- C . ADD requires a build context, COPY does not
- D . COPY and ADD are identical
Correct Answer: A
A
Explanation:
The ADD instruction can copy local files and fetch files from remote URLs, while COPY is limited to copying files from the local build context.
A
Explanation:
The ADD instruction can copy local files and fetch files from remote URLs, while COPY is limited to copying files from the local build context.
Question #189
What does the podman build command do?
- A . Builds a container image from a Containerfile
- B . Starts a new container
- C . Downloads a base image
- D . Removes a container image
Correct Answer: A
A
Explanation:
The podman build command builds a new image from a Containerfile, similar to docker build.
A
Explanation:
The podman build command builds a new image from a Containerfile, similar to docker build.
Question #190
Which command connects to a running container’s interactive shell?
- A . podman start -it <container>
- B . podman attach <container>
- C . podman exec -it <container> bash
- D . podman run –connect <container>
Correct Answer: C
C
Explanation:
The podman exec -it <container> bash command starts an interactive shell inside a running container.
C
Explanation:
The podman exec -it <container> bash command starts an interactive shell inside a running container.