Courseiva

Red Hat Certified Specialist in Containers (EX188, Podman-based) (EX188) (EX188) — Questions 151225

301 questions total · 5pages · All types, answers revealed

Data quality score: 70/100 — Review before indexing

2 errors found across 75 questions. This page is set to noindex until issues are resolved.

Page 2

Page 3 of 5

Page 4
151
Multi-Selecthard

Which THREE advanced features or driver options can be utilized when creating Podman named volumes with plugins or specialized drivers? (Choose THREE)

Select 3 answers
A.Custom volume drivers via the --driver flag
B.Driver-specific options using the --opt flag
C.Direct block device partitioning via --partition
D.Automatic kernel kernel-space memory locking via --mlock
E.Metadata tagging using the --label flag
AnswersA, B, E

Allows integration with external storage drivers.

Why this answer

Named volumes support custom drivers, driver options via '--opt', and labels via '--label'.

152
MCQeasy

An administrator needs to pause all processes inside a running container named db_master without stopping it. Which command accomplishes this?

A.podman suspend db_master
B.podman freeze db_master
C.podman hold db_master
D.podman pause db_master
AnswerD

podman pause uses the cgroups freezer to suspend all processes inside the container.

Why this answer

podman pause suspends all processes in the specified container.

153
MCQmedium

You want to create a Podman network with a specific subnet and gateway. Which command correctly specifies these parameters?

A.podman network create --subnet 192.168.200.0/24 --gateway 192.168.200.1 customnet
B.podman network create --ip-range 192.168.200.0/24 customnet
C.podman network new --subnet=192.168.200.0/24 customnet
D.podman network create customnet --network 192.168.200.0/24
AnswerA

--subnet and --gateway configure IPAM for the custom bridge network.

Why this answer

'podman network create --subnet 192.168.200.0/24 --gateway 192.168.200.1 customnet' sets up custom IPAM settings.

154
MCQeasy

A user running a rootless container needs to inspect which subordinate UID and GID ranges have been allocated to their user account on the RHEL 9 host. Which files define these mappings?

A./etc/subuid and /etc/subgid
B./etc/passwd and /etc/group
C./etc/security/limits.conf
D.~/.config/containers/storage.conf
AnswerA

These two files define the pools of UIDs and GIDs available to each unprivileged user for rootless containers.

Why this answer

Subordinate user and group ID ranges allocated for rootless namespaces are defined in /etc/subuid and /etc/subgid respectively.

155
MCQmedium

An operator runs a Podman container and needs to inspect its assigned IP address directly from the container's runtime inspection output. Which command filters the JSON output to show only the IP address?

A.podman show-ip container_name
B.podman inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name
C.podman network ip container_name
D.podman inspect --ip container_name
AnswerB

Correct. This Go template extracts the IP address from the network settings.

Why this answer

The --format flag with Go templates allows extracting specific fields like network IP addresses from 'podman inspect'.

156
Multi-Selecteasy

Which TWO Containerfile instructions are used to bring files or data from outside the container into the build context or image? (Choose two.)

Select 2 answers
A.COPY
B.GET
C.ADD
D.FETCH
E.IMPORT
AnswersA, C

COPY brings local files into the image.

Why this answer

COPY and ADD are the two instructions designed to move external files into the image filesystem.

157
MCQmedium

After pushing an image to a registry, a developer wants to tag the local image 'myapp:v1' as 'registry.example.com/myteam/myapp:latest'. Which command accomplishes this?

A.podman rename myapp:v1 registry.example.com/myteam/myapp:latest
B.podman commit myapp:v1 registry.example.com/myteam/myapp:latest
C.podman push myapp:v1 --target registry.example.com/myteam/myapp:latest
D.podman tag myapp:v1 registry.example.com/myteam/myapp:latest
AnswerD

podman tag assigns a new repository and tag name to an existing local image.

Why this answer

'podman tag' is used to create an additional tag that points to an existing local image ID.

158
MCQeasy

An administrator needs to check the disk space consumption of all containers, images, and volumes managed by Podman. Which command should be run?

A.podman storage show
B.podman system df
C.podman disk usage
D.podman inspect --disk
AnswerB

podman system df reports disk space utilization similar to the standard Unix df utility.

Why this answer

podman system df shows disk usage by Podman objects.

159
MCQhard

You are designing a container image that runs an executable web server. You want to provide default arguments to the executable that can be easily overridden by a user passing arguments directly to 'podman run'. Which instruction combination is best?

A.Use ENTRYPOINT for the binary and CMD for the default arguments.
B.Use ENV for the binary and WORKDIR for the arguments.
C.Use RUN for both the binary and the arguments.
D.Use CMD for the binary and ENTRYPOINT for the default arguments.
AnswerA

Combining ENTRYPOINT with CMD allows the base command to remain fixed while parameters supplied to podman run override the CMD defaults.

Why this answer

ENTRYPOINT should define the executable, and CMD should define the default parameters that can be overridden easily when running the container.

160
MCQmedium

You need to inspect the network traffic of a container by capturing packets on its virtual interface. Where can you find the host-side veth interface name associated with a running container?

A.It is always named 'eth0' on the host system.
B.In the /etc/resolv.conf file inside the container.
C.In the systemd journal logs exclusively.
D.In the container's network inspection output under network interface details.
AnswerD

Podman inspect exposes interface names assigned to the container.

Why this answer

Inspecting the network settings or container JSON reveals the interface name or network details, or using 'podman inspect' with network settings.

161
MCQhard

An administrator needs to list all created Podman secrets on the system. Which command should they execute?

A.podman secret list
B.podman secret ls
C.podman secrets ls
D.podman system secrets
AnswerB

'ls' is the correct subcommand to display stored secrets.

Why this answer

'podman secret ls' lists all available secrets managed by Podman.

162
MCQeasy

Which Containerfile instruction sets the working directory for any subsequent RUN, CMD, ENTRYPOINT, COPY, and ADD instructions?

A.PATH
B.ENV
C.WORKDIR
D.RUN
AnswerC

WORKDIR is the correct instruction to change directories.

Why this answer

The WORKDIR instruction sets the working directory for any instructions that follow it in the Containerfile.

163
MCQmedium

You want to remove a custom Podman network named 'testnet', but it currently has active containers attached to it. What happens?

A.The network is removed, and the containers lose their network interface silently.
B.The deletion fails until all connected containers are stopped and disconnected.
C.The containers are automatically disconnected and moved to the default bridge network.
D.The containers are automatically terminated and the network is removed.
AnswerB

Active containers prevent network removal.

Why this answer

Podman prevents network deletion while active endpoints/containers are connected to ensure integrity.

164
MCQmedium

An administrator needs to pass a single environment variable directly on the command line when starting a container. Which flag accomplishes this?

A.podman run -e DB_HOST=localhost myapp
B.podman run --set-env DB_HOST=localhost myapp
C.podman run -v DB_HOST=localhost myapp
D.podman run --variable DB_HOST=localhost myapp
AnswerA

The -e flag sets individual environment variables.

Why this answer

The --env or -e flag defines environment variables for the container.

165
Multi-Selectmedium

Which THREE of the following are valid options or flags when working with Podman secrets? (Choose THREE)

Select 3 answers
A.podman secret extract
B.podman secret rm
C.podman secret ls
D.podman secret compile
E.podman secret create
AnswersB, C, E

Removes a secret.

Why this answer

'podman secret create', 'podman secret ls', and 'podman secret rm' are valid commands for secret management.

166
Multi-Selecthard

Which TWO files or backend network management utilities are heavily relied upon by Podman for container networking stack configuration on modern Linux distributions? (Choose two.)

Select 2 answers
A.aardvark-dns
B.libnetwork
C.docker-proxy
D.iptables-nft
E.netavark
AnswersA, E

Aardvark-dns is the DNS server used for container name resolution.

Why this answer

Netavark and aardvark-dns are the modern backend tools used by Podman.

167
Multi-Selectmedium

An administrator wants to temporarily pause a running container's processes and later resume them. Which TWO commands should be used? (Choose TWO)

Select 2 answers
A.podman unpause
B.podman pause
C.podman freeze
D.podman resume
E.podman stop
AnswersA, B

podman unpause resumes execution of a paused container.

Why this answer

podman pause suspends container processes, and podman unpause resumes them.

168
Multi-Selecthard

Which TWO networking configurations are mandatory or automatically handled when creating a user-defined bridge network in Podman? (Choose two.)

Select 5 answers
A.Automatic IPsec tunneling
B.Automatic BGP route advertisement
C.Mandatory public IPv4 assignment
D.IPAM subnet and gateway assignment
E.Creation of a Linux bridge device on the host
AnswersA, B, C, D, E

IPsec tunneling is not built into standard CNI bridge networks.

Why this answer

A bridge interface is created on the host, and IPAM allocates a subnet.

169
MCQeasy

Which user instruction changes the user name or UID and group name or GID to use when running subsequent instructions in the Containerfile?

A.LOGIN
B.IDENTITY
C.USER
D.ACCOUNT
AnswerC

USER sets the execution user context.

Why this answer

The USER instruction sets the user name or UID to use for running the image and for any RUN, CMD and ENTRYPOINT instructions that follow it.

170
MCQeasy

An administrator needs to create a persistent storage volume that Podman can manage independently of any specific container lifecycle. Which command accomplishes this?

A.podman volume init mydata
B.podman storage volume-add mydata
C.podman create volume --name mydata
D.podman volume create mydata
AnswerD

Correct. This provisions a named managed volume.

Why this answer

The command podman volume create is used to provision a new managed volume in Podman's storage backend.

171
MCQmedium

An administrator wants to rename an existing stopped container from old_name to new_name. Which command should be used?

A.podman update --name new_name old_name
B.podman mv old_name new_name
C.podman modify --name new_name old_name
D.podman rename old_name new_name
AnswerD

podman rename changes the name of a container.

Why this answer

podman rename renames an existing container.

172
MCQmedium

An administrator wants to export the filesystem of a container named golden_image into a tar archive file named container_fs.tar. Which command should be used?

A.podman save -o container_fs.tar golden_image
B.podman backup golden_image --file container_fs.tar
C.podman archive golden_image container_fs.tar
D.podman export -o container_fs.tar golden_image
AnswerD

podman export packages a container's filesystem contents into a tar archive.

Why this answer

podman export exports a container's filesystem as a tar archive.

173
Multi-Selecteasy

An administrator needs to inspect running containers and their resource consumption. Which TWO commands provide information about running container state or resource usage? (Choose TWO)

Select 2 answers
A.podman storage
B.podman stats
C.podman ps
D.podman images
E.podman network ls
AnswersB, C

podman stats streams real-time CPU, memory, and I/O utilization for containers.

Why this answer

podman ps lists containers, and podman stats displays live resource usage statistics.

174
MCQeasy

A rootless user wants to run a container and mount a host directory into it. The container process reports permission denied errors when trying to write to the mounted volume. Which SELinux-related flag is typically appended to the volume mount option to resolve container volume permission issues in rootful mode, or handled via user namespaces in rootless mode?

A.:ro
B.:shared
C.:z
D.:exec
AnswerC

The :z option tells Podman to share the volume content among multiple containers using a shared SELinux content volume label.

Why this answer

The ':z' or ':Z' suffix handles SELinux relabeling for volume mounts.

175
MCQhard

An administrator configures rootless Podman on RHEL 9. For container user namespace mapping to function correctly for a specific user account, entries must be present in which two system files?

A./etc/passwd and /etc/group
B./etc/containers/namespace.conf and /etc/containers/users.conf
C./etc/security/limits.conf and /etc/login.defs
D./etc/subuid and /etc/subgid
AnswerD

/etc/subuid and /etc/subgid allocate ranges of subordinate UIDs and GIDs for rootless users.

Why this answer

Rootless user namespaces rely on /etc/subuid and /etc/subgid.

176
Multi-Selecthard

When configuring a custom CNI network in Podman using 'podman network create', which TWO parameters can be explicitly defined via command-line flags during creation? (Choose two.)

Select 3 answers
A.--mtu
B.--subnet
C.--dns-server
D.--vlan-id
E.--gateway
AnswersA, B, E

Wait, let's look at subnet and gateway as the most common ones. --driver is also valid. Let's check standard flags: --subnet, --gateway, --driver are all valid.

Why this answer

--subnet and --gateway can be specified during network creation.

177
MCQeasy

An administrator needs to remove all stopped containers from the system to free up disk space in a single command. Which command should be used?

A.podman rm stopped
B.podman container prune
C.podman system clean
D.podman rm --all
AnswerB

podman container prune deletes all stopped containers after prompting for confirmation (or use -f to skip prompt).

Why this answer

podman container prune removes all stopped containers.

178
MCQmedium

You are troubleshooting a build where a RUN instruction fails because it cannot reach a remote URL to download a file. The local network uses an HTTP proxy. How should you pass the proxy settings to the build command without hardcoding them into the image?

A.podman build --proxy http://proxy.example.com:8080 .
B.podman build --env HTTP_PROXY=http://proxy.example.com:8080 .
C.podman build --build-arg HTTP_PROXY=http://proxy.example.com:8080 .
D.podman build --set-proxy http://proxy.example.com:8080 .
AnswerC

Passing build arguments allows injecting proxy settings securely.

Why this answer

Build arguments can be passed via --build-arg to provide proxy settings dynamically.

179
Multi-Selecteasy

Which THREE commands are valid Podman subcommands for managing container networks? (Choose three)

Select 3 answers
A.podman network ls
B.podman network create
C.podman network restart
D.podman network upgrade
E.podman network inspect
AnswersA, B, E

Correct. 'ls' lists all available container networks.

Why this answer

Podman provides network management via 'podman network ls', 'podman network inspect', and 'podman network create'.

180
MCQmedium

You need to configure container DNS servers explicitly when running a container, overriding the host's /etc/resolv.conf settings. Which Podman flag do you use?

A.--resolv-conf custom
B.--nameserver 8.8.8.8
C.--dns-search 8.8.8.8
D.--dns 8.8.8.8
AnswerD

Sets custom DNS servers for the container.

Why this answer

The --dns flag specifies custom DNS servers for the container.

181
MCQmedium

An administrator needs to inspect low-level configuration, network settings, and state details of a running container named redis_cache in JSON format. Which command provides this?

A.podman show redis_cache
B.podman details redis_cache
C.podman inspect redis_cache
D.podman query --json redis_cache
AnswerC

podman inspect outputs comprehensive JSON-formatted metadata about the container.

Why this answer

podman inspect provides detailed configuration and state information about containers, images, and other objects in JSON.

182
MCQmedium

An operator wants to create a custom user-defined bridge network named 'app-net' with a specific subnet of '192.168.100.0/24' using Podman. Which command is correct?

A.podman bridge create app-net --subnet 192.168.100.0/24
B.podman network create --subnet 192.168.100.0/24 app-net
C.podman create network --ip 192.168.100.0/24 app-net
D.podman network new --subnet=192.168.100.0/24 app-net
AnswerB

Correct. This command creates a custom bridge network with the specified subnet.

Why this answer

User-defined networks are created with 'podman network create'. The --subnet flag specifies the CIDR block for the network.

183
MCQmedium

By default, podman build executes build instructions using the root user. You want to switch the execution context to a non-privileged user named 'appuser' for all subsequent RUN, CMD, and ENTRYPOINT instructions. Which instruction should you use?

A.USER
B.LOGIN
C.SU
D.ACCOUNT
AnswerA

USER specifies the user profile for subsequent build and runtime instructions.

Why this answer

The USER instruction sets the user name (or UID) and optionally the user group (or GID) to use when running the image and for any RUN, CMD and ENTRYPOINT instructions that follow it in the Containerfile.

184
MCQeasy

How do you list all available Podman networks on your system?

A.podman network ls
B.podman network list
C.podman network status
D.podman network show
AnswerA

Lists all networks.

Why this answer

'podman network ls' lists all configured container networks.

185
Multi-Selecthard

A container named 'app_prod' is currently running, and an operator needs to troubleshoot its current configuration, network settings, and mounted volumes in detail. Which THREE commands or approaches can retrieve this information? (Choose THREE)

Select 3 answers
A.Run 'podman inspect app_prod' to output comprehensive JSON-formatted metadata regarding configuration, mounts, and network settings.
B.Run 'podman config app_prod' to print a summary of environment variables and limits.
C.Run 'podman top app_prod' to display the processes running inside the container.
D.Run 'podman port app_prod' to view the current port mappings between the host and the container.
E.Run 'podman diff app_prod' to view changes to the container's file system, which is primarily used for tracking modifications rather than initial configuration.
AnswersA, C, D

The 'podman inspect' command outputs detailed configuration information in JSON format.

Why this answer

Podman provides several ways to inspect running containers, including 'podman inspect', 'podman port', and 'podman exec' / 'podman top'.

186
MCQhard

When configuring an environment file for use with '--env-file', how are comment lines designated?

A.Using '//' at the beginning of the line
B.Using '#' at the beginning of the line
C.Using ';' at the beginning of the line
D.Using '/* ... */' block syntax
AnswerB

The hash sign (#) designates comments in env files.

Why this answer

Lines beginning with the hash character (#) are treated as comments in Podman environment files.

187
Multi-Selectmedium

Which THREE features or characteristics distinguish the ADD instruction from the COPY instruction in a Containerfile? (Choose three.)

Select 3 answers
A.ADD can automatically extract local compressed tar archive files into the destination directory.
B.ADD requires the source file to be located within a git repository, unlike COPY.
C.COPY supports remote URLs natively just like ADD.
D.ADD supports fetching files directly from remote URLs.
E.COPY is generally recommended over ADD for simple file copying due to its predictable, transparent behavior.
AnswersA, D, E

ADD auto-extracts tarballs.

Why this answer

ADD supports remote URLs, auto-extraction of tarballs, and local sources, whereas COPY only supports local sources.

188
MCQeasy

A user wants to save a locally stored container image to a tar archive file to transfer it across systems without a registry. Which command should they use?

A.podman export -o image.tar container_name
B.podman backup image_name
C.podman dump image_name
D.podman save -o image.tar image_name
AnswerD

podman save writes an image to an archive file specified by -o.

Why this answer

'podman save' exports an image to a tarball archive.

189
MCQhard

A security administrator is implementing image signature verification on RHEL 9. Where is the default system-wide signature policy file located?

A./etc/containers/signatures.yaml
B.~/.config/containers/policy.json
C./etc/containers/policy.json
D./etc/containers/registries.conf
AnswerC

/etc/containers/policy.json dictates the signature verification requirements for registries and transports.

Why this answer

The signature verification policy is defined in /etc/containers/policy.json.

190
MCQhard

You need to configure a container port mapping in Podman Compose so that host port 80 forwards to container port 8080. Which YAML syntax is correct under the service definition?

A.publish: - 80->8080
B.ports: - "80:8080"
C.expose: - "80:8080"
D.ports: container: 8080 host: 80
AnswerB

Standard format for mapping host port to container port.

Why this answer

The 'ports' directive uses strings or lists in 'HOST:CONTAINER' format.

191
MCQmedium

A container named app_server is running and consuming excessive CPU. An administrator needs to gracefully stop this container with a 30-second timeout before forcing termination. Which command accomplishes this?

A.podman kill --signal SIGTERM --timeout 30 app_server
B.podman halt -s 30 app_server
C.podman stop --time 30 app_server
D.podman terminate --grace-period=30 app_server
AnswerC

The --time (or -t) flag sets the seconds to wait for stop before killing the container.

Why this answer

The podman stop command stops one or more running containers and accepts a -t or --time option to specify the seconds to wait before killing the container.

192
MCQmedium

An administrator needs to restart a running container named app_v1 so that configuration changes take effect. Which command performs a container restart?

A.podman reload app_v1
B.podman restart app_v1
C.podman cycle app_v1
D.podman refresh app_v1
AnswerB

podman restart restarts the specified container.

Why this answer

podman restart stops and then restarts a container.

193
Multi-Selectmedium

Which TWO conditions are typically required for rootless container users to successfully map UIDs and GIDs from host accounts to container accounts? (Choose two.)

Select 2 answers
A.The user account must have assigned ranges in /etc/subuid and /etc/subgid.
B.The user must have root privileges via sudo on the host system.
C.The kernel must support user namespaces (which is enabled by default in RHEL 9).
D.The storage driver must be set to vfs exclusively.
E.SELinux must be set to disabled mode globally.
AnswersA, C

Subordinate UID/GIDs define the mapping pool for rootless namespaces.

Why this answer

Rootless UID/GID mapping requires entries in /etc/subuid and /etc/subgid, and support from user namespaces.

194
Multi-Selecteasy

Which TWO commands help clean up unused or dangling Podman storage resources? (Choose TWO)

Select 2 answers
A.podman storage wipe
B.podman system clean
C.podman system prune
D.podman volume clean
E.podman volume prune
AnswersC, E

Removes unused containers, networks, and images.

Why this answer

'podman volume prune' and 'podman system prune' are used to clean up unused resources.

195
MCQmedium

You are deploying a container and want to bind its published port exclusively to the loopback interface (127.0.0.1) on the host to prevent external network access. Which syntax is correct?

A.-p 127.0.0.1:8080:80
B.-p 8080:80@127.0.0.1
C.-p 80:80 --host-ip 127.0.0.1
D.--bind-ip 127.0.0.1 -p 8080:80
AnswerA

Correct. This binds the port exclusively to the local loopback interface.

Why this answer

Podman allows binding ports to a specific host IP using the format ip:host_port:container_port. Therefore, 127.0.0.1:8080:80 accomplishes this.

196
MCQmedium

An administrator wants to bind mount a host file directly into a container as a configuration file. Is this supported in Podman?

A.Yes, Podman supports bind mounting individual files from the host.
B.No, bind mounts are restricted to named volumes only.
C.No, Podman only supports bind mounting entire directories.
D.Yes, but only if the file is located inside /var/lib/containers.
AnswerA

Bind mounts can target individual files as well as directories.

Why this answer

Podman supports bind mounting both directories and individual files from the host into a container.

197
MCQeasy

You have a file named config.env containing multiple KEY=VALUE pairs. Which flag allows you to load these configurations into a container as environment variables?

A.--config-file config.env
B.--volume config.env:/etc/env
C.--secret file=config.env
D.--env-file config.env
AnswerD

Correct. --env-file reads environment variables from a file.

Why this answer

The --env-file flag parses a file line by line and passes the key-value pairs into the container as environment variables.

198
MCQhard

An administrator is troubleshooting container exit codes. A container exited with code 137. What does this specific exit code typically signify in container engines?

A.The container was terminated forcefully by SIGKILL (often due to Out-Of-Memory).
B.The container executed an invalid system call blocked by seccomp.
C.The container encountered an application-level syntax error.
D.The container startup script had a permission denied error.
AnswerA

Signal 9 (SIGKILL) added to base 128 results in 137, commonly triggered by the kernel OOM killer.

Why this answer

Exit code 137 indicates that the container process was terminated forcibly by the OOM killer or SIGKILL (128 + 9).

199
MCQmedium

A Podman secret named 'db_password' has been created. How is this secret made accessible inside a running container?

A.podman run --secret db_password,type=mount myapp
B.podman run --env SECRET=db_password myapp
C.podman run --inject-secret db_password myapp
D.podman run --use-secret db_password myapp
AnswerA

The --secret flag mounts or injects the secret into the container.

Why this answer

The --secret flag allows mounting or injecting a secret into the container filesystem or environment.

200
Multi-Selecthard

An administrator is troubleshooting container exit codes and low-level state details. Which TWO of the following inspect format expressions correctly extract container state attributes? (Choose TWO)

Select 2 answers
A.podman inspect --format='{{.Metadata.ExitCode}}' container_name
B.podman inspect --format='{{.State.StartedAt}}' container_name
C.podman inspect --format='{{.Status.Running}}' container_name
D.podman inspect --format='{{.Exit}}' container_name
E.podman inspect --format='{{.State.ExitCode}}' container_name
AnswersB, E

This retrieves the timestamp when the container was started.

Why this answer

.State.ExitCode and .State.StartedAt are valid Go template expressions for podman inspect.

201
MCQmedium

An administrator wants to run a one-off command (/bin/sh) interactively inside an existing running container named legacy_app. Which command should be used?

A.podman run -it legacy_app /bin/sh
B.podman enter legacy_app /bin/sh
C.podman attach legacy_app --shell=/bin/sh
D.podman exec -it legacy_app /bin/sh
AnswerD

podman exec -it runs an interactive shell inside the target running container.

Why this answer

podman exec runs a new command inside a running container, and -it allows interactive terminal access.

202
MCQhard

You need to completely remove a custom user-defined bridge network named 'test-net' that has no active containers attached to it. Which command performs this action?

A.podman network prune --force
B.podman network rm test-net
C.podman rm network test-net
D.podman network delete test-net
AnswerB

Correct. 'podman network rm' removes the specified network.

Why this answer

The 'podman network rm' command deletes an existing unused user-defined network.

203
MCQeasy

An administrator needs to commit the changes made to a running container named test_lab into a new image named my_custom_img:latest. Which command should be used?

A.podman commit test_lab my_custom_img:latest
B.podman create-image test_lab my_custom_img:latest
C.podman save test_lab my_custom_img:latest
D.podman build --container test_lab -t my_custom_img:latest
AnswerA

podman commit captures container changes and saves them as a new container image.

Why this answer

podman commit creates a new image from a container's changes.

204
MCQeasy

Which command removes all unused Podman networks that are not currently connected to any containers?

A.podman network prune
B.podman network clean
C.podman network rm --unused
D.podman prune networks
AnswerA

Removes unused networks.

Why this answer

'podman network prune' deletes unused networks.

205
Multi-Selecteasy

When configuring container networking in Podman, which TWO built-in network modes are available by default without creating custom networks? (Choose two)

Select 2 answers
A.bridge
B.host
C.macvlan
D.routed
E.overlay
AnswersA, B

Correct. Bridge is the default network mode for new containers.

Why this answer

Podman provides default network behaviors including 'bridge' (the default NAT network) and 'host' (sharing the host network stack).

206
MCQmedium

An administrator has created a systemd service file named container-web.service using podman generate systemd. Where should this file be placed for a rootless user to manage it as a user-level service?

A.~/.local/share/podman/systemd/
B./etc/systemd/system/
C.~/.config/systemd/user/
D./var/lib/containers/systemd/
AnswerC

Rootless user services are managed by user systemd instances reading from ~/.config/systemd/user/.

Why this answer

Rootless systemd service files for user sessions must be placed in the user's systemd user directory.

207
MCQmedium

A container image needs to automatically extract a local tar archive file named 'app.tar.gz' into the destination directory '/opt/app' during the build process. Which instruction should be used?

A.COPY app.tar.gz /opt/app/
B.EXTRACT app.tar.gz /opt/app/
C.ADD app.tar.gz /opt/app/
D.RUN tar -xzf app.tar.gz -C /opt/app/
AnswerC

ADD automatically recognizes local tar files and extracts them into the destination.

Why this answer

The ADD instruction automatically extracts local tar archives, whereas COPY does not.

208
Multi-Selecteasy

Which TWO statements are true regarding the EXPOSE instruction in a Containerfile? (Choose two.)

Select 2 answers
A.It informs Podman that the container listens on the specified network ports at runtime.
B.It replaces the need to define environment variables for port configuration.
C.It enforces strict firewall rules inside the container network namespace, blocking unexposed ports.
D.It acts as a type of documentation between the image creator and container operator.
E.It automatically publishes all exposed ports to random host ports without needing the -p or -P flag.
AnswersA, D

EXPOSE documents network port usage.

Why this answer

EXPOSE serves as documentation and assists orchestration tools in understanding which ports to publish when using flags like -P.

209
MCQmedium

An administrator needs to run a container that requires access to the host's network stack directly, bypassing network isolation. Which flag should be passed to 'podman run'?

A.--share network
B.--network host
C.--privileged
D.--net bridge
AnswerB

--network host shares the host's network namespace with the container.

Why this answer

Passing '--net=host' or '--network=host' disables network namespace isolation.

210
Multi-Selecteasy

An administrator needs to clean up stopped containers and unused data to reclaim disk space. Which TWO commands can be used to remove containers? (Choose TWO)

Select 2 answers
A.podman image prune
B.podman rmi
C.podman rm
D.podman system clean
E.podman container prune
AnswersC, E

podman rm removes one or more specified containers.

Why this answer

podman rm removes specified containers, and podman container prune removes all stopped containers.

211
MCQeasy

A developer needs to pull an image from a private registry that requires credentials without running an interactive shell session. Where are the authentication credentials stored after a successful 'podman login' command?

A.~/.config/containers/auth.json
B./etc/passwd
C.~/.ssh/authorized_keys
D./etc/containers/login.conf
AnswerA

Podman stores registry authentication tokens in auth.json under the user's config directory.

Why this answer

Login credentials are saved in the auth.json file, typically located in $XDG_RUNTIME_DIR/containers/auth.json or ~/.config/containers/auth.json.

212
MCQhard

How does Podman's rootless build architecture handle volume mounts or privileged operations specified within a RUN instruction in a Containerfile?

A.Rootless builds cannot execute RUN instructions that install RPM packages using dnf.
B.Rootless builds execute within user namespaces, mapping root inside the container to an unprivileged user on the host, restricting certain host-level operations.
C.Rootless builds automatically elevate privileges via sudo when a RUN instruction requires root access.
D.Rootless builds require the buildah daemon to be running as root in systemd.
AnswerB

User namespaces map container root to a normal user on the host, preserving security.

Why this answer

Rootless Podman utilizes user namespaces and often relies on tools like buildah or fuse-overlayfs to perform builds without root privileges on the host.

213
MCQmedium

An administrator needs to create a temporary filesystem mount stored purely in host memory for high-performance temporary data inside a container. Which mount type should be used?

A.podman run --ramdisk /app/cache myapp
B.podman run --mount type=memory,destination=/app/cache myapp
C.podman run --memory-mount /app/cache myapp
D.podman run --tmpfs /app/cache myapp
AnswerD

The --tmpfs flag mounts an ephemeral memory-backed filesystem.

Why this answer

A tmpfs mount stores data in host system memory (RAM), providing high-speed temporary storage.

214
Multi-Selecthard

When generating Kubernetes YAML using 'podman generate kubernetes', which TWO object types can be targeted or generated by the command? (Choose two.)

Select 2 answers
A.Deployment
B.DaemonSet
C.Pod
D.StatefulSet
E.Ingress
AnswersA, C

Can generate a Kubernetes Deployment manifest.

Why this answer

Podman can generate Kubernetes Pod and Deployment manifests.

215
MCQmedium

You need to label your container image with maintainer details and version metadata according to OCI annotation standards. Which instruction should you use?

A.LABEL maintainer="admin@example.com" version="1.0"
B.METADATA maintainer="admin@example.com"
C.ANNOTATE maintainer="admin@example.com"
D.TAG maintainer="admin@example.com"
AnswerA

LABEL is the standard instruction for adding key-value metadata to an image.

Why this answer

The LABEL instruction adds metadata to an image as key-value pairs.

216
Multi-Selectmedium

Which THREE statements are true concerning how Podman builds container images and utilizes the build context? (Choose three.)

Select 3 answers
A.A file named '.containerignore' (or '.dockerignore') can be used to exclude files from being sent to the build context.
B.Podman cannot accept a Containerfile via standard input (stdin); it must always read from a file on disk.
C.Files outside the build context directory can be freely copied into the image using standard COPY instructions without extra flags.
D.The build context is the set of files located in the specified directory or archive passed to 'podman build'.
E.Building an image sends the entire build context to the container storage daemon/engine.
AnswersA, D, E

.containerignore excludes files from the context.

Why this answer

The build context is sent to the builder, .containerignore excludes files, and standard stdin can be used.

217
MCQeasy

Which flag can be passed to 'podman run' to automatically remove the container and its anonymous volumes upon exit?

A.podman run --delete-on-exit
B.podman run --clean
C.podman run --rm
D.podman run --purge
AnswerC

'--rm' automatically deletes the container upon exit.

Why this answer

The --rm flag removes the container and any associated anonymous volumes when the container stops.

218
MCQeasy

You are troubleshooting a container that should have no network access whatsoever for security isolation. Which networking option should you apply?

A.--network isolated
B.--network bridge
C.--network host
D.--network none
AnswerD

Correct. The none network mode disables all networking except loopback.

Why this answer

The 'none' network driver disables all external networking for the container, leaving only the loopback interface active.

219
Multi-Selecteasy

Which TWO instructions in a Containerfile can be used to set metadata or default execution parameters that influence how a container runs? (Choose two.)

Select 2 answers
A.RUN
B.CMD
C.ENTRYPOINT
D.COPY
E.FROM
AnswersB, C

CMD sets default commands or arguments for the container execution.

Why this answer

CMD and ENTRYPOINT both define runtime execution behavior for containers.

220
MCQeasy

An administrator needs to attach to the terminal of a currently running container named backend_app to view its active console output interactively. Which command should be used?

A.podman console backend_app
B.podman connect backend_app
C.podman attach backend_app
D.podman join backend_app
AnswerC

podman attach connects to the running container's primary process streams.

Why this answer

podman attach connects local standard input, output, and error streams to a running container.

221
Multi-Selecteasy

Which TWO types of storage mechanisms are natively supported by Podman for container data persistence? (Choose two.)

Select 2 answers
A.Shared memory block devices via NFS exports
B.Host bind mounts referencing directories on the host filesystem
C.Direct Fibre Channel LUN mapping inside containers
D.Managed volumes stored in Podman's storage graph
E.Distributed HDFS cluster mounts
AnswersB, D

Correct. Bind mounts map host paths directly into containers.

Why this answer

Podman natively supports named managed volumes and host bind mounts.

222
Multi-Selecthard

Which THREE inspection or cleanup actions can be performed on Podman secrets? (Choose THREE)

Select 3 answers
A.List existing secrets with 'podman secret ls'
B.Inspect secret metadata with 'podman secret inspect'
C.Compile secrets into binary format with 'podman secret compile'
D.Edit secret values in-place with 'podman secret edit'
E.Remove secrets with 'podman secret rm'
AnswersA, B, E

Lists stored secrets.

Why this answer

Secrets can be listed, inspected for metadata, and removed.

223
Multi-Selectmedium

Which TWO SELinux relabeling suffixes can be appended to a Podman volume or bind mount? (Choose TWO)

Select 2 answers
A.:s
B.:shared
C.:private
D.:Z
E.:z
AnswersD, E

Makes content private to a single container.

Why this answer

The 'z' and 'Z' suffixes control SELinux shared and private relabeling on host mounts.

224
MCQeasy

When writing a Containerfile, which instruction specifies the base image to be used for the subsequent build steps?

A.BASE
B.INIT
C.FROM
D.PARENT
AnswerC

FROM initializes a new build stage and sets the Base Image.

Why this answer

Every Containerfile must start with a FROM instruction to define the base image.

225
MCQhard

An administrator needs to configure a local container registry mirror that redirects all requests for 'registry.redhat.io' to an internal caching proxy 'mirror.corp.local'. Which section of /etc/containers/registries.conf must be modified?

A.[registries.search] mirrors = [...]
B.[mirror "registry.redhat.io"]
C.[cache.registry] proxy = [...]
D.[[registry]] with prefix and location/mirrors parameters
AnswerD

The [[registry]] array with prefix and mirrors defines mirroring rules.

Why this answer

Mirrors are configured under the [[registry]] table in registries.conf.

Page 2

Page 3 of 5

Page 4

All pages