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 #61
How do you create a volume with a custom label using Podman?
- A . podman volume create –label mylabel
- B . podman volume new –label mylabel
- C . podman volume init –label mylabel
- D . podman create volume –label mylabel
Correct Answer: A
A
Explanation:
The podman volume create –label command creates a volume with a custom label for easier identification.
A
Explanation:
The podman volume create –label command creates a volume with a custom label for easier identification.
Question #62
Which command removes a specific secret?
- A . podman secret delete <name>
- B . podman secret rm <name>
- C . podman remove secret <name>
- D . podman secret prune <name>
Correct Answer: B
B
Explanation:
The podman secret rm command removes a specified secret.
B
Explanation:
The podman secret rm command removes a specified secret.
Question #63
Which command stops a container gracefully?
- A . podman halt <container>
- B . podman stop <container>
- C . podman kill <container>
- D . podman terminate <container>
Correct Answer: B
B
Explanation:
podman stop sends a SIGTERM signal to stop the container gracefully, allowing cleanup tasks to complete.
B
Explanation:
podman stop sends a SIGTERM signal to stop the container gracefully, allowing cleanup tasks to complete.
Question #64
What is the function of the ENV instruction in a Containerfile?
- A . To execute commands during the build
- B . To set environment variables
- C . To define the container’s entry point
- D . To expose ports
Correct Answer: B
B
Explanation:
The ENV instruction sets environment variables, ensuring consistent configurations during build and runtime.
B
Explanation:
The ENV instruction sets environment variables, ensuring consistent configurations during build and runtime.
Question #65
How do you remove a container and its associated volumes?
- A . podman rm –force <container>
- B . podman rm –volumes <container>
- C . podman delete –all <container>
- D . podman clean <container>
Correct Answer: B
B
Explanation:
The –volumes option removes the container along with its associated volumes.
B
Explanation:
The –volumes option removes the container along with its associated volumes.
Question #66
What does podman secret rm <name> do?
- A . Renames a secret
- B . Updates a secret
- C . Removes a secret
- D . Lists all secrets
Correct Answer: C
C
Explanation:
The podman secret rm command deletes a specified secret from the Podman storage.
C
Explanation:
The podman secret rm command deletes a specified secret from the Podman storage.
Question #67
When using the USER instruction in a Containerfile, what does it define?
- A . The default user to run container processes
- B . The ownership of files in the container
- C . The user permissions during image build
- D . The user for network connections
Correct Answer: A
A
Explanation:
The USER instruction specifies the user under which the container will run, enhancing security by avoiding root privileges.
A
Explanation:
The USER instruction specifies the user under which the container will run, enhancing security by avoiding root privileges.
Question #68
What is the purpose of the CMD instruction in a Containerfile?
- A . To set a default command for container execution
- B . To define build-time commands
- C . To set environment variables
- D . To expose ports
Correct Answer: A
A
Explanation:
The CMD instruction specifies the default command to run when the container starts. It can be overridden during runtime.
A
Explanation:
The CMD instruction specifies the default command to run when the container starts. It can be overridden during runtime.
Question #69
What is the purpose of specifying a WORKDIR in a Containerfile?
- A . To define the base image path
- B . To set the current directory for subsequent instructions
- C . To specify the container user
- D . To configure environment variables
Correct Answer: B
B
Explanation:
The WORKDIR instruction sets the working directory for all subsequent instructions, making path handling simpler and more organized.
B
Explanation:
The WORKDIR instruction sets the working directory for all subsequent instructions, making path handling simpler and more organized.
Question #70
Which command lists all available container configurations?
- A . podman config ls
- B . podman inspect –configs
- C . podman list-configs
- D . podman info –configs
Correct Answer: A
A
Explanation:
The podman config ls command lists all configurations available for containers.
A
Explanation:
The podman config ls command lists all configurations available for containers.