Courseiva

CCNA Registry And Security Questions

57 questions · Registry And Security · All types, answers revealed

1
Multi-Selecthard

Which THREE configuration directives or files are associated with customizing container storage backends and root directory locations in Podman? (Choose three.)

Select 3 answers
A.The environment variables 'CONTAINERS_STORAGE_DRIVER' or 'STORAGE_DRIVER'.
B.The signature verification policy file '/etc/containers/policy.json'.
C.The registry authentication file '~/.config/containers/auth.json'.
D.The user-specific configuration file '~/.config/containers/storage.conf'.
E.The system-wide configuration file '/etc/containers/storage.conf'.
AnswersA, D, E

Environment variables can override default storage driver settings.

Why this answer

Storage options are configured in /etc/containers/storage.conf, via environment variables like STORAGE_DRIVER, or via user home directory overrides.

2
MCQeasy

A container administrator needs to download an image named rhel9/httpd-24 from the Red Hat Ecosystem Catalog using Podman, but requires local authorization without interactive password prompts. Which file should the administrator configure to store these registry credentials in base64-encoded format?

A.~/.local/share/containers/storage/mounts
B.~/.config/containers/auth.json
C./etc/containers/registries.conf
D./etc/sysconfig/podman
AnswerB

This file stores registry credentials for Podman authentication.

Why this answer

Podman uses the standard Docker-compatible auth configuration file located at $XDG_RUNTIME_DIR/containers/auth.json or ~/.config/containers/auth.json to store base64-encoded credentials for registry authentication.

3
MCQeasy

A system administrator logs into a RHEL 9 server as a regular non-root user and executes 'podman ps'. The command succeeds, but no containers are displayed. What architecture feature enables this user to run containers without root privileges?

A.The Docker daemon running as a system service in user space
B.The systemd-logind setuid binary wrapper
C.Linux user namespaces and subuid/subgid mapping
D.SELinux multi-category security (MCS) translation tables
AnswerC

Rootless containers rely on user namespaces and subordinate UID/GID ranges configured in /etc/subuid and /etc/subgid.

Why this answer

Rootless Podman utilizes user namespaces (user_namespaces(7)) to map the unprivileged user to a set of UIDs and GIDs inside the container environment, combined with shadow-utils mapping files.

4
MCQmedium

A container running in rootless mode needs to map a user account on the host to a different user inside the container namespace. Which options configure UID and GID mapping?

A.--userns-map and --groupmap
B.--uidmap and --gidmap
C.--user-namespace-file
D.--map-user and --map-group
AnswerB

--uidmap and --gidmap explicitly define how container UIDs/GIDs map to host UIDs/GIDs.

Why this answer

UID/GID mappings are configured using --uidmap and --gidmap.

5
MCQhard

An administrator needs to configure system-wide registry search shortcuts so that developers can run 'podman pull rhel9' and Podman automatically expands it to 'registry.access.redhat.com/rhel9'. Which configuration file and parameter accomplish this?

A./etc/containers/registries.conf using the unqualified-search-registries parameter
B./etc/sysconfig/podman using the SEARCH_REGISTRIES variable
C./etc/containers/registries.d/default.yaml using the search-domains parameter
D.~/.config/containers/auth.json using the default-registry key
AnswerA

The unqualified-search-registries setting allows Podman to prefix short image names with specified registry domains.

Why this answer

Unqualified search registries are configured in /etc/containers/registries.conf using the unqualified-search-registries array parameter.

6
Multi-Selectmedium

Which TWO settings or files are critical when configuring rootless Podman environments on RHEL 9? (Choose two.)

Select 2 answers
A./etc/selinux/config for enforcing SELinux mode.
B./etc/sudoers for root privileges.
C./etc/subuid and /etc/subgid for user namespace allocations.
D./etc/shadow for root password hashes.
E.~/.config/containers/registries.conf for user-specific registry configurations.
AnswersC, E

Subordinate UID/GID ranges are mandatory for rootless namespace mapping.

Why this answer

Rootless Podman relies on subordinate UIDs/GIDs in /etc/subuid and /etc/subgid, and user configurations in ~/.config/containers/.

7
MCQhard

An organization enforces that all container images must be signed using a local GPG key before they can be deployed in production. Which command generates a signature for an image stored in local storage using a specific signing key?

A.podman push --sign-by <key_id> app:latest
B.podman image sign --sign-by <key_id> registry.example.com/app:latest
C.podman gpg --sign app:latest
D.podman sign --key <key_id> app:latest
AnswerB

podman image sign signs the specified image using the given key ID.

Why this answer

'podman image sign' is used to sign images for verification policies.

8
MCQmedium

A user is running rootless Podman and needs to verify why a container cannot bind to TCP port 80. By default, unprivileged users cannot bind to ports below 1024. Which parameter controls the minimum unprivileged port that can be bound?

A.user.max_user_namespaces
B.net.ipv4.tcp_port_range
C.fs.inotify.max_user_watches
D.net.ipv4.ip_unprivileged_port_start
AnswerD

This kernel parameter determines the lowest port number that can be bound by non-root users.

Why this answer

The sysctl parameter net.ipv4.ip_unprivileged_port_start controls the lowest port unprivileged users can bind to.

9
Multi-Selecteasy

Which TWO actions can an administrator take to manage container image tags in local Podman storage? (Choose two.)

Select 2 answers
A.Use 'podman rmi' to remove a specific image tag from local storage.
B.Use 'podman push --tag' to rename images remotely.
C.Use 'podman rename' to change an image tag.
D.Use 'podman tag' to assign a new name or tag to an existing local image ID.
E.Use 'podman commit --tag' to tag running containers during creation.
AnswersA, D

podman rmi removes an image reference or tag from storage.

Why this answer

Podman allows tagging existing images with 'podman tag' and removing tags/images with 'podman rmi'.

10
Multi-Selecthard

An administrator is troubleshooting an issue where a rootless container cannot access a host file because of SELinux denials. Which THREE statements accurately describe how SELinux interacts with rootless Podman containers on RHEL 9? (Choose three.)

Select 3 answers
A.Rootless containers run under the user's unprivileged process context and are still constrained by SELinux policy rules.
B.Rootless containers completely disable SELinux enforcement automatically upon startup.
C.Rootless containers require the container host to be booted with selinux=0 kernel parameter to function.
D.SELinux MCS (Multi-Category Security) label separation prevents rootless containers from escaping into other users' namespaces.
E.Rootless Podman processes cannot dynamically modify host file security contexts (such as via chcon) unless granted specific administrative capabilities.
AnswersA, D, E

SELinux mandatory access control applies to all processes on the system, including rootless container engines.

Why this answer

Rootless containers run in user namespaces. While they do not have root privileges, SELinux still applies constraints. Specifically, rootless containers run under an unprivileged user process label (such as unconfined_u:unconfined_r:unconfined_t:s0 or similar user-space mappings), cannot dynamically relabel arbitrary host paths using container tools with the same privileges as root, and rely on container process confinement governed by the active SELinux policy.

11
Multi-Selecteasy

Which TWO commands allow a user to remove unwanted items from local Podman storage? (Choose two.)

Select 2 answers
A.podman container clear
B.podman rmi
C.podman prune-all
D.podman rm
E.podman image delete
AnswersB, D

podman rmi removes local container images.

Why this answer

'podman rmi' removes images and 'podman rm' removes containers.

12
MCQeasy

A user needs to download an image from Docker Hub named 'library/alpine' using its explicit transport prefix. Which command demonstrates the correct transport syntax?

A.podman pull registry://alpine:latest
B.podman pull remote://alpine:latest
C.podman pull OCI://alpine:latest
D.podman pull docker://alpine:latest
AnswerD

The docker:// transport explicitly tells Podman to pull from a Docker-compatible registry.

Why this answer

Podman supports explicit transport prefixes like docker://.

13
MCQeasy

A practitioner wants to view all container images currently stored in local storage, including their size, tag, and image ID. Which command should they execute?

A.podman list images
B.podman images
C.podman show images
D.podman ps -a
AnswerB

podman images lists local container images.

Why this answer

'podman images' lists all locally stored images.

14
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.

15
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/.

16
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.

17
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.

18
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.

19
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.

20
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.

21
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>/.

22
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.

23
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.

24
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.

25
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.

26
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.

27
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'.

28
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.

29
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.

30
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.

31
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.

32
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.

33
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.

34
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.

35
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.

36
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.

37
Multi-Selectmedium

Which TWO scenarios correctly describe when an administrator should use the ':z' SELinux mount option instead of ':Z'? (Choose two.)

Select 2 answers
A.When disabling SELinux checks entirely for the volume.
B.When content generated on the host needs to be safely read and written by multiple container instances using a shared label.
C.When multiple containers need concurrent read-write access to the same mounted host volume.
D.When absolute isolation is required so that no other container can ever read the volume.
E.When mounting a host directory as strictly read-only.
AnswersB, C

Shared multi-container access requires the shared :z SELinux label.

Why this answer

The ':z' option is used when volume content needs to be shared read-write among multiple containers simultaneously.

38
MCQeasy

A user needs to log out from a private container registry to remove stored credentials from their local machine. Which command accomplishes this?

A.podman logout registry.example.com
B.podman rm auth registry.example.com
C.podman clear-credentials registry.example.com
D.podman disconnect registry.example.com
AnswerA

podman logout deletes stored authentication tokens for the specified registry.

Why this answer

'podman logout' removes stored credentials for a registry.

39
Multi-Selecteasy

When interacting with container registries using Podman, which THREE commands or tasks are valid operations supported natively by the Podman CLI? (Choose three.)

Select 3 answers
A.podman mount-registry --remote
B.podman compile-image --from-registry
C.podman pull registry.example.com/image:tag
D.podman push registry.example.com/image:tag
E.podman login registry.example.com
AnswersC, D, E

podman pull downloads container images from a specified registry.

Why this answer

Podman natively supports pulling, pushing, tagging, logging into, and searching container registries using standard commands matching Docker syntax.

40
MCQhard

An administrator needs to set up a local directory to act as an OCI-compliant layout image store, and then push an image into it using Podman. Which transport prefix is used for local OCI layout directories?

A.tar:directory_path:tag
B.dir:directory_path:tag
C.local:directory_path:tag
D.oci:directory_path:tag
AnswerD

The oci: transport specifies an OCI-compliant image layout directory.

Why this answer

The 'oci:' transport prefix is used for local OCI layout directories.

41
MCQeasy

A user running rootless Podman wants to check the disk space consumed by images and containers in local storage. Which command provides this storage usage summary?

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

podman system df displays storage consumption statistics for containers, images, and volumes.

Why this answer

'podman system df' reports disk space usage for Podman storage.

42
MCQmedium

A developer wants to search for all available container images matching the term 'rhel9' across configured registries using Podman. Which command should they run?

A.podman find rhel9
B.podman query rhel9
C.podman search rhel9
D.podman lookup rhel9
AnswerC

podman search queries the container registries defined in registries.conf for matching image names.

Why this answer

'podman search' queries configured registries for matching images.

43
MCQeasy

An administrator needs to push a locally built Podman image named 'app:latest' to a remote container registry at 'registry.example.com/team'. Which command must be executed first to authenticate with the registry before pushing?

A.podman push --auth registry.example.com
B.podman auth registry.example.com
C.podman login registry.example.com
D.podman connect registry.example.com
AnswerC

podman login authenticates against the specified container registry.

Why this answer

Before pushing an image to a registry, you must authenticate using 'podman login'.

44
MCQmedium

A security team requires that all container processes run with a specific SELinux type instead of the default container_t. How can an administrator specify a custom SELinux type when launching a container with 'podman run'?

A.--security-opt label=type:custom_t
B.--selinux-type custom_t
C.--cap-add SELINUX
D.--env SELINUX_TYPE=custom_t
AnswerA

--security-opt label=type:... overrides the default SELinux type for the container process.

Why this answer

The '--security-opt' flag can be used to set custom SELinux labels (e.g., label=type:custom_t).

45
MCQhard

An administrator needs to configure a custom search domain for short-name image pulls across all users on a RHEL 9 system. Which configuration file must be edited?

A./etc/containers/storage.conf
B./etc/containers/policy.json
C./etc/containers/registries.conf
D./etc/containers/registries.d/
AnswerC

Global registry settings like unqualified-search-registries are configured in /etc/containers/registries.conf.

Why this answer

System-wide registry configurations, including unqualified-search-registries, are defined in /etc/containers/registries.conf.

46
Multi-Selectmedium

Which TWO actions are required when configuring a secure container workflow to push a signed image to a registry using Podman? (Choose two.)

Select 2 answers
A.Disable SELinux enforcement globally on the container host before generating signatures.
B.Store the private signing key inside the container image payload.
C.Set the container storage driver to vfs in storage.conf.
D.Generate a cryptographic key pair and ensure the private key is available to sign the image.
E.Configure /etc/containers/registries.d/ to specify where signature transport and storage are located.
AnswersD, E

A private key is strictly required to cryptographically sign container images.

Why this answer

Pushing a signed image requires generating a local key pair (e.g., using GPG), configuring the signature storage destination in registries.d, and signing the image during or after the push process using podman push or podman image sign.

47
MCQmedium

An administrator wants to prevent users from pulling images from any registry except 'registry.access.redhat.com'. Where should this restriction be configured?

A./etc/containers/policy.json under 'default' block rules
B./etc/containers/registries.conf under 'unqualified-search-registries' and blocked registries lists
C./etc/containers/storage.conf under 'block-pull'
D.~/.config/containers/access.conf
AnswerB

Registries can be blocked or restricted via registries.conf directives.

Why this answer

Registry blocking is configured in /etc/containers/registries.conf using the unqualified-search-registries or blocked registries directives.

48
Multi-Selecteasy

Which TWO commands are used to transfer container images via archive files without interacting with a network registry? (Choose two.)

Select 2 answers
A.podman save
B.podman import
C.podman export
D.podman load
E.podman transfer
AnswersA, D

podman save exports images to a tar archive.

Why this answer

'podman save' exports images to tar archives and 'podman load' imports them.

49
MCQmedium

A system administrator needs to load a container image from a previously generated tar archive named 'app.tar' into local Podman storage. Which command should be executed?

A.podman import app.tar
B.podman restore -i app.tar
C.podman load -i app.tar
D.podman read app.tar
AnswerC

podman load reads an image archive created by podman save.

Why this answer

'podman load' imports an image from a tar archive.

50
MCQeasy

A user needs to remove a local container image that is no longer needed. Which command should be used?

A.podman image delete image_name
B.podman rm image_name
C.podman delete image_name
D.podman rmi image_name
AnswerD

podman rmi removes specified local images.

Why this answer

'podman rmi' removes one or more local images.

51
MCQhard

An administrator configures a mirror for a primary registry in /etc/containers/registries.conf. What is the correct TOML syntax format to define a registry block with a mirror?

A.registry: name: registry.example.com mirror: internal-mirror.example.com
B.[[registry]] prefix = "registry.example.com" location = "internal-mirror.example.com"
C.SERVER=registry.example.com MIRROR=internal-mirror.example.com
D.[registry "registry.example.com"] mirror = "internal-mirror.example.com"
AnswerB

The [[registry]] array of tables format with location and mirrors is correct for registries.conf.

Why this answer

TOML syntax in registries.conf uses [[registry]] tables and registries.search or registries.block fields alongside mirrors.

52
Multi-Selectmedium

Which TWO parameters or directives can be configured inside '/etc/containers/registries.conf' to control how Podman interacts with container registries? (Choose two.)

Select 2 answers
A.default_transport
B.storage_driver
C.signature_policy_file
D.[[registry]] for defining prefix matching, mirrors, and insecure registries.
E.unqualified-search-registries
AnswersD, E

The TOML table [[registry]] configures specific registry behavior including transport and mirrors.

Why this answer

registries.conf handles unqualified search registries and registry blocking/mirroring.

53
MCQmedium

A user running rootless Podman wants to pull an image from an insecure registry running over HTTP on port 5000. When running 'podman pull', the command fails with a connection error. Where must the administrator define this registry as insecure for the user?

A.~/.local/share/containers/storage.conf
B./etc/sysconfig/podman
C./etc/containers/registries.conf
D.~/.config/containers/registries.conf
AnswerD

Rootless Podman looks for user-specific registry configurations in ~/.config/containers/registries.conf.

Why this answer

For rootless users, insecure registries are configured in ~/.config/containers/registries.conf.

54
Multi-Selecteasy

Which TWO methods can a user employ to verify that an image has been successfully downloaded to their local machine? (Choose two.)

Select 2 answers
A.Running 'podman network ls' to verify image network attachment.
B.Running 'podman image inspect <image_name>' to view its configuration metadata.
C.Running 'podman ps -a' to see the downloaded image layers.
D.Running 'podman volume inspect' to check image storage paths.
E.Running 'podman images' to check if the image name and tag appear in the list.
AnswersB, E

podman image inspect displays detailed metadata for a local image.

Why this answer

Images can be verified using 'podman images' or 'podman image inspect'.

55
MCQeasy

A user wants to remove all unused container images that are not currently associated with an existing container from local storage. Which command should they execute?

A.podman container prune
B.podman rmi --all
C.podman image prune -a
D.podman system clean
AnswerC

podman image prune with -a removes all images not used by a container, not just dangling ones.

Why this answer

'podman image prune' removes unused images.

56
Multi-Selecteasy

Which TWO commands display information about container images present in local Podman storage? (Choose two.)

Select 2 answers
A.podman container list
B.podman ps
C.podman volume ls
D.podman image inspect
E.podman images
AnswersD, E

podman image inspect shows detailed metadata for an image.

Why this answer

'podman images' and 'podman image inspect' display local image information.

57
MCQeasy

A user wants to inspect the metadata and layers of an image stored locally without running it. Which Podman command should be used?

A.podman inspect image_name
B.podman view image_name
C.podman info
D.podman show image_name
AnswerA

podman inspect outputs low-level information on Podman objects in JSON format.

Why this answer

'podman inspect' provides detailed configuration and metadata for an image or container.

Ready to test yourself?

Try a timed practice session using only Registry And Security questions.