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 #281
Which command creates a secret for use with Podman containers?
- A . podman secret create <name> <file>
- B . podman create –secret <name>
- C . podman secret new <name> <file>
- D . podman run –create-secret <name>
Correct Answer: A
A
Explanation:
The podman secret create command creates a secret from a file that can be injected into containers securely.
A
Explanation:
The podman secret create command creates a secret from a file that can be injected into containers securely.
Question #282
Which instruction is used to run a command during image build and capture the result?
- A . RUN
- B . CMD
- C . EXEC
- D . ENTRYPOINT
Correct Answer: A
A
Explanation:
The RUN instruction executes commands during the build process, such as installing packages or configuring the image.
A
Explanation:
The RUN instruction executes commands during the build process, such as installing packages or configuring the image.
Question #283
How do you inspect the contents of a secret in Podman?
- A . podman secret cat <name>
- B . podman secret show <name>
- C . podman secret inspect <name>
- D . podman secret view <name>
Correct Answer: C
C
Explanation:
The podman secret inspect command shows detailed information about a secret, including its metadata.
C
Explanation:
The podman secret inspect command shows detailed information about a secret, including its metadata.
Question #284
How do you specify multiple environment variables using a file?
- A . podman run –envfile <file>
- B . podman run –env-file <file>
- C . podman create –env <file>
- D . podman exec –envfile <file>
Correct Answer: B
B
Explanation:
The –env-file option loads environment variables from a specified file, simplifying container configuration.
B
Explanation:
The –env-file option loads environment variables from a specified file, simplifying container configuration.
Question #285
Which command allows you to list all images managed by Podman?
- A . podman images
- B . podman ls
- C . podman list
- D . podman show
Correct Answer: A
A
Explanation:
The podman images command lists all locally available container images managed by Podman.
A
Explanation:
The podman images command lists all locally available container images managed by Podman.
Question #286
Which approach enhances security when mounting a host directory into a container?
- A . Always use privileged mode
- B . Apply SELinux policies for the mount
- C . Use dynamic ports
- D . Run as root user
Correct Answer: B
B
Explanation:
Applying SELinux policies helps control access and enforce security constraints when mounting host directories.
B
Explanation:
Applying SELinux policies helps control access and enforce security constraints when mounting host directories.
Question #287
Which option displays the last 10 lines of a container’s logs?
- A . podman logs –recent 10 <container>
- B . podman logs –head 10 <container>
- C . podman logs –tail 10 <container>
- D . podman logs –last 10 <container>
Correct Answer: C
C
Explanation:
The –tail option with podman logs shows the last 10 lines of the container’s logs.
C
Explanation:
The –tail option with podman logs shows the last 10 lines of the container’s logs.
Question #288
Which command restarts all running containers?
- A . podman restart –all
- B . podman restart –running
- C . podman restart -a
- D . podman reset –all
Correct Answer: A
A
Explanation:
podman restart –all restarts all currently running containers.
A
Explanation:
podman restart –all restarts all currently running containers.
Question #289
Which option sets the container’s timezone during podman run?
- A . –tz=<timezone>
- B . –env TZ=<timezone>
- C . –timezone=<timezone>
- D . –set-tz=<timezone>
Correct Answer: B
B
Explanation:
The –env TZ=<timezone> option sets the container’s timezone using an environment variable.
B
Explanation:
The –env TZ=<timezone> option sets the container’s timezone using an environment variable.
Question #290
Which command shows the container host’s Podman version?
- A . podman –version
- B . podman version
- C . podman info
- D . podman config
Correct Answer: B
B
Explanation:
podman version displays the current version of Podman installed on the host.
B
Explanation:
podman version displays the current version of Podman installed on the host.