Courseiva

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

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

Page 1

Page 2 of 5

Page 3
76
Multi-Selecthard

An administrator is managing rootless containers and needs to understand how user namespaces and security isolation function. Which TWO of the following configuration files or tools are directly relevant to rootless user mapping and systemd user persistence? (Choose TWO)

Select 2 answers
A.systemctl system-wide-users
B./etc/containers/rootless.conf
C./var/lib/podman/subuid.conf
D./etc/subuid and /etc/subgid
E.loginctl enable-linger
AnswersD, E

These files define the subordinate UID and GID ranges allocated for rootless user namespaces.

Why this answer

/etc/subuid defines subordinate UID ranges, and loginctl enable-linger configures user session persistence for systemd user services.

77
Multi-Selectmedium

An administrator wants to examine the internal state, environment variables, or port mappings of a running container. Which TWO commands or techniques are appropriate? (Choose TWO)

Select 2 answers
A.podman port
B.podman list-ports
C.podman inspect
D.podman env
E.podman show-env
AnswersA, C

podman port lists public port mappings for the container.

Why this answer

podman inspect retrieves low-level metadata, and podman port displays mapped network ports.

78
Multi-Selectmedium

Which THREE directives or practices are associated with implementing secure container builds and adhering to least-privilege principles? (Choose three.)

Select 3 answers
A.Hardcoding database passwords directly into ENV instructions so the application can read them easily.
B.Using minimal, trusted base images to reduce the total software footprint and vulnerability surface.
C.Adding a 'USER' instruction with a non-root UID/username before defining the runtime CMD or ENTRYPOINT.
D.Running all RUN instructions with '--privileged' inside the Containerfile.
E.Using build-time secrets with '--secret' mounts rather than baking credentials into image layers.
AnswersB, C, E

Minimal base images reduce vulnerabilities.

Why this answer

Secure builds involve using non-root users, secure secret mounting, and trusted base images.

79
Multi-Selecthard

An administrator is managing Podman secrets and needs to interact with the secret store. Which THREE commands or operations are valid when working with podman secret? (Choose three.)

Select 3 answers
A.podman secret ls
B.podman secret export
C.podman secret inspect
D.podman secret rm
E.podman secret modify
AnswersA, C, D

Correct. Lists all available secrets.

Why this answer

Podman secrets support creation, listing, inspection, and removal.

80
MCQeasy

An administrator wants to immediately stop and remove a running container named temp_test in a single command. Which command should be used?

A.podman kill --remove temp_test
B.podman delete --force temp_test
C.podman stop --rm temp_test
D.podman rm -f temp_test
AnswerD

The -f or --force flag forces the removal of a running container (it stops it and removes it).

Why this answer

The --rm flag with run automatically removes containers upon exit, but to remove an existing running container immediately, podman rm with -f can be used.

81
MCQhard

An administrator wants to run a container with a custom health check command that disables health checking entirely for a container that inherited one from its base image. Which flag achieves this?

A.--health-enabled=false
B.--health-cmd=none
C.--disable-health
D.--no-healthcheck
AnswerB

Passing none to --health-cmd disables any health check defined in the image.

Why this answer

Setting --health-cmd=none disables the health check inherited from the base image.

82
MCQhard

You are optimizing a Containerfile using multi-stage builds to minimize image size. What is the key advantage of a multi-stage build in Podman?

A.It automatically converts Dockerfiles into systemd service units.
B.It allows you to copy only finalized artifacts from a heavy build stage into a minimal production stage.
C.It enables building container images concurrently across multiple remote container registries.
D.It eliminates the need for caching layers during the podman build process.
AnswerB

Multi-stage builds allow leaving build tools in earlier stages and copying only runtime assets to the final output image.

Why this answer

Multi-stage builds allow you to use multiple FROM instructions in a single Containerfile. Each FROM instruction starts a new stage with a different base, and you can copy artifacts from previous stages into the final stage, leaving behind build tools, compilers, and SDKs.

83
MCQhard

When using the ADD instruction with a remote URL source, what is a recommended best practice regarding security and layer efficiency?

A.Always use ADD for remote URLs because it automatically verifies SSL/TLS certificates against the host system store.
B.ADD for remote URLs is deprecated and will cause podman build to abort with an error.
C.Avoid ADD for remote URLs; instead, use curl or wget within a RUN instruction to download, extract, and clean up in a single layer.
D.Use ADD for remote URLs because it creates a smaller layer than RUN.
AnswerC

Using curl/wget in a RUN instruction gives granular control over downloads, headers, and cache handling.

Why this answer

Downloading remote archives or files via ADD does not allow caching effectively, and it's generally recommended to use curl or wget inside a RUN instruction combined with cleanup to keep images lean and secure.

84
MCQhard

A security engineer is troubleshooting why signature verification fails when pulling an image from a trusted registry. The policy file (/etc/containers/policy.json) specifies 'signedBy' using a GPG key, but the transport uses 'dir://'. Where must the public GPG key be imported for Podman to successfully verify the signature?

A.Into the local GnuPG keyring using 'gpg --import'
B.Into ~/.config/containers/policy.d/keys/
C.Into /etc/containers/certs.d/keys/
D.Into /var/lib/containers/sigstore/
AnswerA

Podman uses the GnuPG keyring to verify signatures when configured with GPG verification.

Why this answer

Public keys used for verification must be imported into the local GPG keyring managed by GnuPG.

85
MCQmedium

You are writing a Containerfile and need to ensure that the default command executed when the container starts can be easily overridden by passing arguments on the podman run command line. Which instruction should you use?

A.RUN
B.EXEC
C.ENTRYPOINT
D.CMD
AnswerD

CMD sets default parameters that are easily overridden.

Why this answer

CMD provides default arguments for an entrypoint or a default command, which is easily overridden by command-line arguments.

86
MCQeasy

You want to set the working directory for any subsequent RUN, CMD, ENTRYPOINT, COPY, and ADD instructions that follow it in the Containerfile. Which instruction achieves this?

A.DIR
B.WORKDIR
C.CD
D.PATH
AnswerB

WORKDIR changes the active directory context for subsequent instructions.

Why this answer

The WORKDIR instruction sets the working directory for any RUN, CMD, ENTRYPOINT, COPY, and ADD instruction that follows it in the Containerfile.

87
MCQhard

When configuring a secure private registry that uses a self-signed TLS certificate, a user receives an x509 certificate signed by an unknown authority error when pulling images. Where should the CA certificate file be placed on a RHEL system for system-wide trust?

A./etc/pki/ca-trust/source/anchors/registry.crt
B./usr/share/pki/trust/anchors/ca.crt
C./etc/containers/certs.d/registry.example.com/ca.crt
D.~/.config/containers/certs.d/ca.crt
AnswerC

Podman looks in /etc/containers/certs.d/<registry> for TLS certificates (ca.crt, client.cert, client.key).

Why this answer

Custom CA certificates for registries are placed in /etc/containers/certs.d/<registry-name>/ or /etc/docker/certs.d/.

88
MCQeasy

What type of storage pattern is used by default when a container writes logs and temporary application state directly to its writable layer without any volumes attached?

A.Persistent named storage
B.Ephemeral container storage
C.Bind mount storage
D.Block storage replication
AnswerB

Ephemeral storage is temporary and tied to the container lifecycle.

Why this answer

Ephemeral storage refers to temporary storage bound to the container's lifecycle and destroyed when the container is removed.

89
Multi-Selectmedium

An administrator wants to modify container settings or state. Which TWO of the following commands are valid Podman subcommands for container management? (Choose TWO)

Select 2 answers
A.podman reconfigure
B.podman alter
C.podman modify
D.podman restart
E.podman rename
AnswersD, E

podman restart stops and starts a container.

Why this answer

podman rename and podman restart are valid subcommands.

90
MCQhard

When using the '--mount' flag, what parameter specifies the type of mount being performed (e.g., bind, volume, tmpfs)?

A.kind=
B.type=
C.method=
D.mount-type=
AnswerB

'type=' defines the mount type.

Why this answer

The 'type=' key specifies whether the mount is a bind, volume, or tmpfs mount.

91
Multi-Selectmedium

Which TWO statements are true regarding Podman bind mounts? (Choose TWO)

Select 2 answers
A.They are automatically deleted when the container is removed
B.They cannot be mounted in read-only mode
C.They are managed entirely inside Podman's internal volume database without host paths
D.They link a specific host path directly into the container filesystem
E.Host file permissions and SELinux contexts directly impact container access
AnswersD, E

Bind mounts map host paths to container paths.

Why this answer

Bind mounts map a host directory or file into a container and depend on host path availability and permissions.

92
MCQeasy

An administrator needs to run a container that shares the host's network namespace directly so it can listen on privileged ports without port forwarding. Which Podman command flag achieves this network mode?

A.--network host
B.--network bridge
C.--publish-all
D.--net=none
AnswerA

Correct. Using --network host shares the host network stack directly.

Why this answer

The --net=host or --network host flag causes the container to run in the host's network namespace, giving it direct access to the host network interfaces and ports.

93
MCQmedium

You want to ensure that if any command in a multi-command RUN instruction fails, the entire container build process fails immediately. What shell option should be set or is default in Containerfiles?

A.RUN --strict-error command1 && command2
B.BUILD --fail-on-error
C.RUN ignore-errors=false command1 && command2
D.RUN set -e && command1 && command2
AnswerD

'set -e' causes the shell to exit immediately if a command exits with a non-zero status.

Why this answer

By default, the shell used in shell form runs with /bin/sh -c. To ensure failures propagate, strict error handling like set -o pipefail can be used.

94
MCQeasy

Which configuration block in a Podman Compose YAML file is used to define custom isolated networks for the multi-container application?

A.interfaces:
B.bridges:
C.networks:
D.connections:
AnswerC

Correct. The top-level 'networks' key defines custom networks.

Why this answer

At the root level of a Compose file, the 'networks:' top-level element defines custom networks that services can attach to.

95
MCQhard

An engineer needs to inspect the content and metadata of an existing Podman secret named 'my_secret' without outputting the raw secret value in plain text if masked, or viewing its metadata. Which command inspects the secret?

A.podman secret cat my_secret
B.podman secret show my_secret
C.podman secret inspect my_secret
D.podman secret view my_secret
AnswerC

'inspect' outputs secret metadata in JSON format.

Why this answer

'podman secret inspect' displays detailed metadata about the secret object.

96
MCQhard

You need to ensure that a container image built with Podman includes reproducible timestamps for files to improve security and supply chain verification. Which flag or environment variable controls this?

A.PODMAN_REPRODUCIBLE_BUILD=true
B.TIMESTAMP=0 in the Containerfile ENV
C.--reproducible flag in podman build
D.SOURCE_DATE_EPOCH
AnswerD

SOURCE_DATE_EPOCH standardizes file timestamps across image builds for reproducibility.

Why this answer

Setting SOURCE_DATE_EPOCH environment variable ensures reproducible builds by normalizing file timestamps.

97
MCQhard

An administrator is working with a rootless Podman setup and needs to ensure that container user namespaces map UIDs correctly such that container root (UID 0) maps to the unprivileged user's UID on the host. Which file configures subordinate UID mappings for rootless users on RHEL?

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

/etc/subuid and /etc/subgid define the subordinate user and group ID ranges allocated for user namespaces.

Why this answer

Rootless user namespaces rely on /etc/subuid and /etc/subgid for mapping ranges.

98
Multi-Selecthard

Which THREE behaviors occur when utilizing multi-stage builds in a Containerfile? (Choose three.)

Select 3 answers
A.You can include multiple 'FROM' instructions in a single Containerfile, where each 'FROM' starts a new stage of the build.
B.All intermediate stages are automatically tagged and pushed to the local registry when the build completes.
C.You can assign a name to a build stage using the 'AS stage_name' syntax on the FROM instruction.
D.Artifacts from earlier stages are automatically merged into the final image layers unless explicitly deleted.
E.You can use 'COPY --from=<stage_name>' to pull compiled artifacts from a previous stage into the current stage.
AnswersA, C, E

Multiple FROM instructions define distinct build stages.

Why this answer

Multi-stage builds allow multiple FROM lines, naming stages, and selective copying between them.

99
MCQeasy

An administrator wants to view the last 50 lines of logs for a running container named log_test and keep the log stream open for new entries. Which command should be used?

A.podman tail 50 log_test
B.podman log-stream --lines=50 log_test
C.podman inspect --tail=50 log_test
D.podman logs --tail 50 --follow log_test
AnswerD

--tail 50 limits output to the last 50 lines, and --follow streams new log additions in real-time.

Why this answer

The --tail and --follow (or -f) flags in podman logs control line limits and streaming.

100
Multi-Selecteasy

Which TWO instructions are used to define variables or set environment values within a Containerfile? (Choose two.)

Select 2 answers
A.DEFINE
B.VAR
C.ARG
D.ENV
E.SET
AnswersC, D

ARG defines build-time variables.

Why this answer

ARG and ENV are used for defining build arguments and environment variables respectively.

101
MCQmedium

An administrator wants to inspect the container storage configuration settings, such as graph root and storage driver, on a RHEL system. Which configuration file should they examine?

A./etc/containers/podman.conf
B./etc/containers/registries.conf
C./etc/containers/storage.conf
D./etc/sysconfig/docker
AnswerC

/etc/containers/storage.conf contains parameters for the containers storage subsystem.

Why this answer

Storage settings for containers are defined in /etc/containers/storage.conf.

102
MCQhard

A container named api_gw is configured with a health check. An administrator needs to check the current health status (e.g., healthy, unhealthy, starting) using the command line without reading the full inspect JSON. Which command string achieves this?

A.podman inspect --format='{{json .State.Health.Status}}' api_gw
B.podman health status api_gw
C.podman ps --filter health=unhealthy
D.podman status api_gw
AnswerA

This inspect command uses a Go template to extract the exact health status string from the container state.

Why this answer

Using format strings with podman inspect allows extracting specific fields like the health status directly.

103
Multi-Selecthard

Which THREE actions occur when a container is executed with the --network none flag? (Choose three)

Select 3 answers
A.No default gateway is configured in the container's routing table.
B.The container automatically shares the host's physical network card.
C.The container is assigned a private IP address on the default bridge.
D.Only the loopback (lo) interface is created inside the container.
E.Port publishing flags (-p) are ignored or fail when starting the container.
AnswersA, D, E

Correct. Without external interfaces, there is no default gateway.

Why this answer

Using --network none results in no external network interfaces except loopback, no default gateway, and no external IP address assigned.

104
MCQeasy

You are writing a Containerfile to build a custom application image using podman build. Which instruction should you use as the mandatory first non-comment instruction to define the base image?

A.IMPORT
B.FROM
C.BASE
D.INIT
AnswerB

FROM specifies the base image and is required as the first instruction in a Containerfile.

Why this answer

The FROM instruction initializes a new build stage and sets the Base Image for subsequent instructions. Every valid Containerfile or Dockerfile must start with a FROM instruction.

105
MCQmedium

Two containers running on the same custom user-defined bridge network need to communicate with each other. What built-in mechanism allows them to resolve each other by container name?

A.Automatic DNS resolution provided by the CNI/Netavark network backend
B.Static ARP table broadcasting managed by the kernel
C.Multicast DNS (mDNS) running inside every container image by default
D.Automatic editing of the host's /etc/hosts file by the Podman daemon
AnswerA

Correct. Custom networks enable built-in DNS name resolution between containers.

Why this answer

User-defined bridge networks in Podman (backed by CNI or Netavark) provide automatic internal container name resolution through embedded DNS services.

106
MCQhard

An administrator needs to update the CPU shares (cpu-shares) of a running container named compute_job on the fly without stopping it. Which command should be used?

A.podman update --cpu-shares 512 compute_job
B.podman config compute_job cpu-shares=512
C.podman modify --cpu-shares 512 compute_job
D.podman set --shares=512 compute_job
AnswerA

podman update allows live modification of container resource limits such as CPU shares.

Why this answer

podman update modifies container configuration resources on a running container.

107
MCQmedium

A rootless user runs a container that needs to write data to a host directory using podman run -v /home/user/data:/data:Z. When the container starts, permission denied errors occur when writing to /data. What is the cause of this SELinux issue in rootless mode?

A.Rootless containers automatically disable SELinux enforcement for all mounted volumes, bypassing container isolation.
B.The SELinux policy enforcement level must be set to permissive globally across the entire RHEL host.
C.The host directory must be owned by the root user before mounting into a rootless container.
D.Rootless containers cannot use the :Z or :z SELinux volume options because rootless Podman runs inside a user namespace where process MCS labeling is restricted.
AnswerD

Rootless Podman does not have privileges to dynamically relabel host files using chcon/restorecon with unique MCS categories in the same way privileged root Podman does, causing permission failures when :Z is incorrectly applied.

Why this answer

In rootless mode, the underlying user namespace maps the user to a UID/GID range on the host, but the SELinux sandbox limitations in older kernels or certain rootless configurations prevent standard multi-category security (MCS) label translation for shared volumes unless configured correctly. Specifically, the correct SELinux handling for rootless containers using shared volumes often requires relying on the user's process label or using the ':disable' suffix if SELinux is not enforcing within the namespace.

108
Multi-Selecthard

Which THREE methods or options can be used to authenticate or supply credentials when pulling images from a private registry that requires authentication? (Choose three.)

Select 3 answers
A.Running 'podman login' beforehand to store credentials in auth.json.
B.Setting the environment variable 'PODMAN_PASSWORD' without any login command.
C.Passing '--password-stdin' directly to 'podman pull'.
D.Using the '--authfile' flag pointing to a custom credentials file.
E.Providing username and password inline using '--creds username:password'.
AnswersA, D, E

podman login saves credentials that Podman automatically uses for subsequent pulls.

Why this answer

Authentication can occur via interactive 'podman login', passing credentials on the CLI, or referencing a stored auth file.

109
Multi-Selecthard

Which THREE conditions or practices can cause layer cache invalidation during a 'podman build' operation? (Choose three.)

Select 3 answers
A.Adding a comment line '#' at the very top of the Containerfile before the first FROM instruction.
B.Modifying the content or modification timestamp (mtime) of a file referenced by a COPY instruction.
C.Changing the order of instructions within the Containerfile.
D.Passing a different value to an 'ARG' instruction via '--build-arg' compared to the previous build.
E.Running 'podman build' on a different physical workstation while using the exact same build context and Containerfile.
AnswersB, C, D

File changes invalidate the cache for that instruction and all following ones.

Why this answer

Cache invalidation happens when instructions change, files change (checksum/mtime), or ARG values change.

110
MCQmedium

Two containers running on the same custom user-defined bridge network need to communicate using container names as hostnames. What is required for this to work natively in Podman?

A.You must use the default 'podman' bridge network.
B.You must edit /etc/hosts inside the containers manually.
C.Nothing extra; user-defined bridge networks include built-in DNS resolution.
D.You must manually link containers using the --link flag.
AnswerC

Custom networks automatically enable DNS name resolution between containers.

Why this answer

User-defined networks in Podman leverage CNI and netavark/aardvark-dns to provide automatic container name resolution out of the box.

111
MCQeasy

You need to define a persistent environment variable named 'PORT' with the value '8080' that is available during both the build process and when running containers from the resulting image. Which instruction should you use?

A.SET
B.ENV
C.VAR
D.EXPORT
AnswerB

ENV defines environment variables that persist in the built container image.

Why this answer

The ENV instruction sets the environment variable <key> to the value <value>. This value will be persistent in the container when it runs and can also be referenced during build time.

112
MCQeasy

Where are Podman named volumes typically stored on the host file system by default for a non-root user?

A./var/lib/containers/storage/volumes/
B./etc/containers/volumes/
C./var/run/containers/storage/
D.~/.local/share/containers/storage/volumes/
AnswerD

This is the standard location for rootless user managed volumes.

Why this answer

For non-root users, Podman stores managed volume data inside their home directory under ~/.local/share/containers/storage/volumes/.

113
MCQhard

A container named 'worker' was configured with a health check command during build time, but an administrator needs to temporarily override or define a new health check command while running the container. Which flag should be passed to 'podman run' to achieve this?

A.--check-command
B.--healthcheck-run
C.--health-cmd
D.--health-test
AnswerC

The '--health-cmd' option specifies the command to run to check container health at runtime.

Why this answer

The '--health-cmd' flag allows defining or overriding the health check command when starting a container.

114
MCQhard

An organization mandates that all container images produced internally must be signed using local GPG keys before being pushed to the production registry. Which tool and configuration file must be used to enforce that Podman rejects unsigned images during a pull operation?

A./etc/containers/policy.json
B./etc/containers/registries.conf
C./var/lib/shared/sigstore
D.~/.config/containers/auth.json
AnswerA

The policy.json file defines signature verification policies, allowing administrators to reject unsigned images.

Why this answer

To enforce signature verification on pull, the policy file /etc/containers/policy.json must be updated to specify 'reject' by default and configure a 'transport' and 'signedBy' requirement for specific registry scopes.

115
Multi-Selectmedium

Which TWO actions occur when a container is run with ephemeral storage (the default behavior without volume mounts)? (Choose TWO)

Select 2 answers
A.All container changes are written directly back to the read-only image layer
B.The container has its own writable scratchpad layer separate from the image
C.Data persists automatically across host reboots and container deletions
D.Data written to the container layer is lost when the container is removed
E.Host files are automatically synchronized into the container storage
AnswersB, D

An overlay writable layer is provisioned for the running container instance.

Why this answer

Ephemeral storage means data written inside the container layer is temporary and discarded when the container is removed.

116
MCQmedium

An administrator wants to pass custom options to a volume driver when creating a volume. Which flag should be used?

A.podman volume create --options ...
B.podman volume create --opt type=nfs ...
C.podman volume create -o-drv ...
D.podman volume create --driver-opt ...
AnswerB

'--opt' supplies driver-specific options.

Why this answer

The --opt flag passes driver-specific options when creating a named volume.

117
MCQeasy

Which instruction should be used in a Containerfile to copy local files from the host machine into the container filesystem?

A.COPY
B.TRANSFER
C.ADD
D.MOVE
AnswerA

COPY is the standard instruction to copy local files into the image.

Why this answer

The COPY instruction takes files from the local context and adds them to the container's filesystem.

118
MCQeasy

An operator needs to troubleshoot a failing service inside a container named 'auth_api'. Which command should the operator run to view the standard output log stream generated by this container?

A.podman output auth_api
B.podman logs auth_api
C.podman events auth_api
D.podman history auth_api
AnswerB

The 'podman logs' command retrieves the standard output and standard error logs of the specified container.

Why this answer

The 'podman logs' command fetches the logs generated by a container.

119
Multi-Selecthard

Which THREE advanced configuration steps or flags are available when performing rootless builds or utilizing buildah/podman build advanced features? (Choose three.)

Select 3 answers
A.Using '--tls-verify=false' to bypass TLS verification when pulling base images from insecure registries.
B.Using '--format oci' to explicitly specify that the resulting image should be in OCI image format rather than Docker v2.2.
C.Using '--no-cache' to force Podman to rebuild all layers from scratch without utilizing the cache.
D.Using '--rm=false' to automatically keep intermediate build container containers indefinitely on disk after successful builds.
E.Using '--privileged-build' to grant full root host capabilities to a rootless container build.
AnswersA, B, C

--tls-verify disables TLS checks for registry interaction.

Why this answer

Advanced build features include custom storage, volume/secret mounts, and architecture specification.

120
MCQeasy

A running Podman container named 'dbapp' is unresponsive, and a technician needs to immediately and forcefully terminate it without waiting for a graceful shutdown timeout. Which Podman command should be executed?

A.podman stop --force dbapp
B.podman kill dbapp
C.podman terminate dbapp
D.podman rm -f dbapp
AnswerB

The 'podman kill' command sends the SIGKILL signal to the container's init process, stopping it immediately.

Why this answer

The 'podman kill' command immediately stops the container using the KILL signal, whereas 'podman stop' attempts a graceful shutdown first.

121
MCQhard

An administrator wants to retrieve only the IP address of a running container named web_svc by querying podman inspect with a specific format template. Which command is correct?

A.podman ps --format='{{ .IP }}' web_svc
B.podman inspect --ip web_svc
C.podman inspect --format='{{ .NetworkSettings.IPAddress }}' web_svc
D.podman inspect --query=ip web_svc
AnswerC

This template extracts the primary IP address assigned to the container.

Why this answer

Go templates in podman inspect can target network settings, such as .NetworkSettings.IPAddress.

122
Multi-Selecthard

Which THREE mechanisms are part of Podman's image signature verification framework on RHEL 9? (Choose three.)

Select 3 answers
A.Signature storage backends (such as sigstore) where detached signatures are stored.
B.Automatic kernel SELinux policy compilation during image pull.
C.Built-in TLS client certificate authorities for registry TCP handshakes.
D.The policy configuration file (/etc/containers/policy.json) that defines required verification checks.
E.GnuPG public key rings or signature verification keys used to validate cryptographic signatures.
AnswersA, D, E

Signatures are stored in independent sigstore locations or container registries.

Why this answer

Image verification relies on policy.json, signature storage transports (sigstore), and public keys.

123
MCQhard

An administrator wants to configure Podman to pull images using a specific TLS client certificate for mutual TLS authentication against a secure private registry. Where should the client certificate and private key be placed?

A./etc/containers/certs.d/registry.example.com/ (with client.cert and client.key)
B.~/.config/containers/tls/
C./etc/pki/tls/private/
D./etc/containers/auth.d/
AnswerA

Podman reads client.cert and client.key from the registry-specific certs.d directory for mTLS.

Why this answer

Client certificates and keys are placed in /etc/containers/certs.d/<registry-name>/.

124
Multi-Selecthard

Which THREE actions occur when an administrator runs a container with an SELinux volume mount suffix ':Z'? (Choose three.)

Select 3 answers
A.The host path's SELinux context is altered to match the container's private category.
B.The SELinux enforcement mode on the host is temporarily set to permissive.
C.The mounted content is labeled with a private, unshared SELinux security context.
D.The host directory becomes completely read-only across all namespaces.
E.Only the specific container launched with the flag can access the labeled files under SELinux enforcement.
AnswersA, C, E

Podman automatically applies the relabeling directly to the host files/directories.

Why this answer

The ':Z' suffix labels the content with a private SELinux context, modifies the host file context if necessary, and ensures isolation from other containers.

125
MCQmedium

An administrator wants to monitor resource usage (CPU, memory, block I/O, network I/O) of all running containers in real-time. Which command provides this functionality?

A.podman stats
B.podman monitor resources
C.podman top
D.podman system df
AnswerA

podman stats streams resource utilization metrics for running containers.

Why this answer

podman stats displays a live stream of resource usage statistics for containers.

126
Multi-Selecteasy

An administrator needs to manage container lifecycles in Podman. Which TWO of the following commands can be used to start an existing, stopped container? (Choose TWO)

Select 2 answers
A.podman exec
B.podman run
C.podman start
D.podman up
E.podman restart
AnswersC, E

podman start explicitly boots up an existing stopped container.

Why this answer

podman start and podman restart (which starts a stopped or running container) can be used to start stopped containers. podman run creates a new container, and podman exec runs commands in running containers.

127
MCQhard

When utilizing Podman Compose, how are service dependencies and container startup orders typically managed within the YAML structure?

A.By ordering the service keys alphabetically in the YAML file
B.Using the 'links' parameter exclusively
C.Through the 'startup_order' directive
D.Using the 'depends_on' configuration key under the service definition
AnswerD

Correct. 'depends_on' controls the startup order of services.

Why this answer

The 'depends_on' key in a Compose file is used to express startup dependencies between services.

128
Multi-Selectmedium

Which TWO actions can be performed using the podman volume management command suite? (Choose two.)

Select 2 answers
A.Modify the size limit of an existing volume using podman volume resize
B.Display detailed low-level configuration of a volume using podman volume inspect
C.Encrypt a managed volume at rest using podman volume encrypt
D.Convert a bind mount to a named volume using podman volume convert
E.Remove all unused volumes using podman volume prune
AnswersB, E

Correct. 'podman volume inspect' outputs configuration details.

Why this answer

Podman volumes can be inspected and pruned using the volume subcommand suite.

129
MCQhard

An engineer needs to inspect the low-level configuration details, mount points, and driver options of a named volume named 'app_vol'. Which command provides this information in JSON format?

A.podman volume inspect app_vol
B.podman volume show app_vol
C.podman volume status app_vol
D.podman inspect volume app_vol
AnswerA

Inspect provides the detailed JSON metadata for the volume.

Why this answer

'podman volume inspect' retrieves detailed configuration and metadata for specified volumes.

130
MCQmedium

An application container requires multiple configuration variables defined in a local file named 'app.env'. Which flag loads these variables into the container environment?

A.podman run --env-file app.env myapp
B.podman run --config-file app.env myapp
C.podman run -e @app.env myapp
D.podman run --load-env app.env myapp
AnswerA

--env-file correctly parses key-value pairs from the file.

Why this answer

The --env-file flag reads environment variables line by line from the specified file and passes them into the container.

131
Multi-Selectmedium

Which THREE practices should be followed to optimize container image size and build caching when writing Containerfiles? (Choose three.)

Select 3 answers
A.Order Containerfile instructions from least frequently changing to most frequently changing to maximize cache hits.
B.Combine package installation and cache cleanup in a single RUN instruction to prevent cache retention across layers.
C.Avoid using .containerignore files so that all host files are always cached by Podman.
D.Use multi-stage builds to separate build-time dependencies from the final runtime image.
E.Install all debugging tools and heavy development SDKs in the final production stage.
AnswersA, B, D

Placing base dependencies before source code maximizes cache reuse.

Why this answer

Caching and layer minimization depend on instruction order, cleanup in the same layer, and avoiding unnecessary tool installation.

132
Multi-Selecthard

Which THREE tasks can be performed using the 'podman system' command set? (Choose three.)

Select 3 answers
A.Configuring system-wide kernel sysctl parameters for container networking.
B.Displaying storage disk space usage statistics with 'podman system df'.
C.Running an API-serving background listener with 'podman system service'.
D.Automatically updating all running systemd container services.
E.Cleaning up unused containers, images, and networks with 'podman system prune'.
AnswersB, C, E

podman system df reports disk space usage.

Why this answer

'podman system' subcommands include df, migrate, prune, and service.

133
Multi-Selectmedium

Which THREE characteristics describe Podman named volumes compared to bind mounts? (Choose THREE)

Select 3 answers
A.Must always point to pre-existing host directories
B.Require absolute paths on the host system during creation
C.Stored within Podman's designated storage directory on the host
D.Managed completely by Podman engine
E.Easier to migrate or back up using volume management commands
AnswersC, D, E

Volume data resides in paths like /var/lib/... or ~/.local/share/...

Why this answer

Named volumes are managed by Podman, stored in container storage areas, and persist independently of host path structures.

134
Multi-Selectmedium

Which TWO configuration files or directories are routinely modified when establishing secure private container registry trust and signature policies on RHEL 9? (Choose two.)

Select 2 answers
A./etc/fstab
B./etc/containers/registries.conf
C./etc/hosts
D./etc/passwd
E./etc/containers/policy.json
AnswersB, E

registries.conf defines registries, search paths, and mirrors.

Why this answer

Registry definitions and security policies are configured in /etc/containers/registries.conf and /etc/containers/policy.json.

135
MCQmedium

A system administrator is auditing containers and notices one running with the option '--security-opt label=disable'. What does this flag do?

A.It turns off SELinux separation and labeling for the container.
B.It disables seccomp system call filtering.
C.It disables user namespace mapping.
D.It disables AppArmor enforcement.
AnswerA

label=disable disables SELinux enforcement for the container process.

Why this answer

The '--security-opt label=disable' flag disables SELinux separation for that specific container.

136
MCQeasy

How do you stop and remove containers, networks, and volumes created by a Podman Compose file?

A.podman-compose rm --all
B.podman-compose down
C.podman-compose destroy
D.podman-compose stop --purge
AnswerB

Stops and removes resources defined in the compose file.

Why this answer

'podman-compose down' tears down the entire application stack defined in the compose file.

137
MCQeasy

Which command displays disk space usage statistics for Podman storage, including volumes and containers?

A.podman system df
B.podman disk status
C.podman volume df
D.podman storage usage
AnswerA

'system df' shows disk usage summary similar to filesystem df.

Why this answer

'podman system df' reports storage consumption for containers, images, and volumes.

138
Multi-Selecthard

When configuring container mounts using the --mount flag, which THREE key-value pairs are valid parameters in the option string? (Choose three.)

Select 3 answers
A.destination
B.source
C.permission
D.owner
E.type
AnswersA, B, E

Correct. 'destination' specifies the mount path inside the container.

Why this answer

The --mount flag accepts options such as type, source (or src), and destination (or dst/target).

139
MCQmedium

An administrator needs to run a container named 'web01' using Podman in the background using the image registry.access.redhat.com/ubi8/httpd-24:latest. Which command correctly starts this container in detached mode and maps port 8080 on the host to port 80 in the container?

A.podman start -d --name web01 -p 8080:80 registry.access.redhat.com/ubi8/httpd-24:latest
B.podman container create -d --name web01 -p 8080:80 registry.access.redhat.com/ubi8/httpd-24:latest
C.podman run -d --name web01 -p 8080:80 registry.access.redhat.com/ubi8/httpd-24:latest
D.podman run -b --name web01 -p 80:8080 registry.access.redhat.com/ubi8/httpd-24:latest
AnswerC

This command correctly specifies detached mode, container naming, port forwarding, and the target image.

Why this answer

The correct command uses 'podman run -d' for detached mode, '--name web01' to set the name, '-p 8080:80' for port mapping, and the correct image reference.

140
Multi-Selecthard

Which THREE statements accurately describe the differences between shell form and exec form for CMD and ENTRYPOINT instructions? (Choose three.)

Select 3 answers
A.Shell form is mandatory when using multi-stage builds.
B.Exec form allows shell variable expansion (like $VAR) directly without needing explicit shell invocation.
C.Exec form ensures that Unix signals (such as SIGTERM) sent by Podman are received directly by the application process as PID 1.
D.Exec form is written using JSON array syntax (e.g., ["executable", "param"]).
E.Shell form automatically wraps the command with '/bin/sh -c', which causes the application to run as a child process rather than PID 1.
AnswersC, D, E

Direct execution receives signals properly.

Why this answer

Exec form uses JSON array syntax, avoids running a shell, and correctly passes signals as PID 1.

141
MCQmedium

An administrator needs to inspect the configuration details, including subnet and gateway, of an existing custom network named 'my-net'. Which command should be executed?

A.podman network show my-net
B.podman network details my-net
C.podman network inspect my-net
D.podman inspect network my-net
AnswerC

Correct. This command outputs detailed network metadata.

Why this answer

The 'podman network inspect' command displays detailed configuration JSON for a specified network.

142
MCQmedium

You are using a multi-stage build in your Containerfile. How do you copy a compiled binary named 'app' from a build stage named 'builder' into your final production runtime stage?

A.COPY --stage=builder /app /app
B.ADD --stage-name=builder /app /app
C.IMPORT --from=builder /app /app
D.COPY --from=builder /app /app
AnswerD

--from=builder specifies copying from the stage labeled 'builder'.

Why this answer

The COPY --from=<stage_name> instruction allows copying artifacts from previous named stages.

143
Multi-Selecteasy

An administrator wants to check container port mappings and process listings inside containers. Which TWO commands provide these insights? (Choose TWO)

Select 2 answers
A.podman port
B.podman ps-ports
C.podman processes
D.podman top
E.podman netstat
AnswersA, D

podman port displays public port mappings for a container.

Why this answer

podman port shows port mappings and podman top shows running processes.

144
MCQeasy

An administrator needs to view all network ports exposed or mapped by a container named web_prod using a simplified summary command. Which command can be used?

A.podman port web_prod
B.podman show-ports web_prod
C.podman network list-ports web_prod
D.podman inspect --ports web_prod
AnswerA

podman port lists the port mappings for the specified container.

Why this answer

podman port displays public port mappings for a container.

145
MCQeasy

How do you check the logs of all services managed by a Podman Compose file?

A.podman-compose monitor
B.podman-compose logs
C.podman-compose output
D.podman logs --compose
AnswerB

Shows logs for compose services.

Why this answer

'podman-compose logs' displays log output from all services defined in the compose file.

146
MCQeasy

Which command lists all named volumes currently managed by Podman?

A.podman volume list
B.podman volume ls
C.podman ls volumes
D.podman volume show
AnswerB

'ls' outputs the list of volumes.

Why this answer

'podman volume ls' displays a list of all named volumes.

147
MCQeasy

How can an administrator remove an existing Podman secret named 'old_secret'?

A.podman rm secret old_secret
B.podman secret rm old_secret
C.podman secret delete old_secret
D.podman secret remove old_secret
AnswerB

'rm' is the correct subcommand to remove a secret.

Why this answer

'podman secret rm' deletes the specified secret from storage.

148
MCQhard

An auditor notices that a container running with SELinux enforcement needs to access a specific host directory with a private read-write security context. Which SELinux suffix should be applied to the volume mount if the content is exclusive to that single container and should not be shared?

A.:z
B.:Z
C.:private
D.:seclabel
AnswerB

The :Z option labels the volume with a private unshared label (e.g., s0:c100,c200), ensuring only the container can access it.

Why this answer

The ':Z' suffix assigns a private unshared SELinux label to the volume.

149
MCQmedium

A developer wants to push a locally built container image named webapp:v1 to a private container registry located at registry.local:5000/myteam/. Which sequence of commands correctly tags and pushes the image?

A.podman push webapp:v1 --registry registry.local:5000/myteam/
B.podman tag localhost/webapp:v1 registry.local:5000/myteam/webapp:v1 followed by podman push registry.local:5000/myteam/webapp:v1
C.podman commit webapp:v1 registry.local:5000/myteam/webapp:v1
D.podman export webapp:v1 > registry.local:5000/myteam/webapp:v1.tar
AnswerB

The image must be explicitly retagged with the destination registry prefix before pushing.

Why this answer

Before pushing an image to a specific remote registry namespace, it must be tagged with the fully qualified registry URL, path, and tag using 'podman tag', followed by 'podman push'.

150
MCQhard

When generating a Kubernetes Pod YAML from a Podman container using 'podman generate kubernetes', how are published ports mapped into the resulting Kubernetes manifest?

A.They are translated into container port definitions within the containers spec array.
B.They are converted into host-level iptables rules embedded in annotations.
C.They are ignored entirely and must be added manually.
D.They cause the generation command to fail with a port conflict error.
AnswerA

Podman converts -p flags into container ports in the generated Kubernetes YAML.

Why this answer

Published ports are translated into container ports inside the pod specification and exposed via service/ports specifications depending on options.

Page 1

Page 2 of 5

Page 3

All pages