EX188 · domain
scenario questions
Practise Red Hat Certified Specialist in Containers (EX188, Podman-based) (EX188) scenario questions practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.
Focused practice
Practice scenario questions questions
Scored sessions drawing only from this domain — pick a length below.
Start 20-question practice test →What this domain covers
What to know about scenario questions
scenario questions questions test whether you can apply the concept in context, not just recognise a definition.
How the topic appears in realistic exam-style scenarios.
Which detail in the question changes the correct answer.
How to eliminate plausible but wrong options.
How to connect the question back to the wider exam objective.
Watch out for
Common scenario questions exam traps
- ▸Answering from memory before reading the full scenario.
- ▸Missing a constraint such as cost, availability, security, scope or command context.
- ▸Choosing a broad answer when the question asks for the most specific fix.
- ▸Ignoring why the wrong options are tempting.
Question index
All scenario questions questions (264)
Click any question to see the full explanation, or start a practice session above.
Which THREE commands are valid when inspecting or managing Podman storage volumes? (Choose THREE)
Easy2An administrator needs to execute multiple commands in a single RUN instruction to minimize image layers. Which syntax is standard in a Containerfile?
Medium3An administrator needs to copy a configuration file named /tmp/nginx.conf from the host into a running container named web_server at path /etc/nginx/nginx.conf. Which command should be used?
Medium4How do you disconnect a running container from a custom network named 'mynet'?
Easy5An administrator is troubleshooting a misbehaving container and needs to examine its output logs and event history. Which TWO commands are appropriate for this task? (Choose TWO)
Medium6You are defining a Podman Compose file for a web application stack. You need to ensure that the 'app' service can communicate with the 'cache' service using the hostname 'cache', and that the 'cache' service is assigned a static IP address 10.89.0.10 on the custom network 'backend'. Which TWO configuration elements must be present in the Compose file? (Choose two.)
Medium7An administrator is troubleshooting process execution and live configuration updates on a running container. Which TWO commands allow interacting with processes or updating resource limits on the fly? (Choose TWO)
Hard8Which TWO commands can be used with Podman to build a container image from a Containerfile? (Choose two.)
Easy9You need to set a persistent environment variable named 'APP_PORT' with the value '8080' inside a container image via the Containerfile. Which instruction should you use?
Easy10An administrator wants to monitor real-time Podman system events, such as when containers are created, started, stopped, or removed, for auditing purposes. Which command should be executed?
Medium11An administrator needs to run a PostgreSQL container that stores its database files in a Podman named volume called pgdata, which was created earlier. The container must also have the volume mounted at /var/lib/postgresql/data inside the container. Which command should the administrator use?
Medium12Which subcommand deletes one or more specific named volumes?
Easy13A 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?
Easy14You need to inspect the configuration details, including subnet, gateway, and driver, of a custom Podman network named 'appnet'. Which command should you run?
Hard15You are building an image behind a corporate firewall that requires a custom Certificate Authority (CA) certificate to trust internal registries and repositories. How can you add this CA certificate to the build container?
Medium16You need to pass sensitive database credentials to a Podman container securely without storing them in plaintext environment variables. Which sequence of commands correctly creates and injects the secret?
Hard17You are building a minimal container image from scratch using 'FROM scratch'. Your statically compiled Go binary fails to execute when the container starts, with a 'file not found' error, even though it was successfully copied into the image. What is the most likely cause?
Hard18You are configuring a container to consume a Podman secret named db_password. By default, where within the container's file system will this secret be mounted if no destination path is specified?
Medium19What is the primary benefit of utilizing multi-stage builds in Containerfiles?
Medium20A 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?
Medium21An application requires a secret to be exposed as an environment variable inside the container instead of a file mount. Which option achieves this with '--secret'?
Hard22An administrator is managing rootless Podman containers as a non-root user and wants to ensure that these containers automatically start upon system boot and persist across reboots using systemd. Which TWO steps or commands are required to accomplish this? (Choose TWO)
Medium23An engineer needs to mount a host directory using the advanced '--mount' syntax instead of '-v'. Which syntax correctly specifies a bind mount?
Medium24An 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?
Hard25An administrator needs to connect an already running container named 'web1' to an existing user-defined network named 'backend-net' without restarting the container. Which command accomplishes this?
Hard26Which TWO instructions can be used to copy files or directories from a build context into a container image?
Medium27A container needs to be created that shares the host's network stack entirely, bypassing any NAT or virtual interface overhead. Which Podman flag achieves this?
Easy28A developer runs a container with 'podman run -d --name web -p 8080:80 nginx' on a host that already has a service listening on port 8080. The container starts but clients cannot reach the containerized web server on that port. Which command most directly reveals why the port mapping failed?
Easy29A container named db_master was previously paused using podman pause. Which command should the administrator use to resume its execution?
Medium30A 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?
Medium31Which TWO options can be specified when mounting a Podman secret into a container? (Choose TWO)
Hard32An administrator wants to view real-time container lifecycle events across the entire Podman system, such as container creation, starting, and stopping. Which command should be executed?
Hard33Which environment file option can be used in a Podman Compose file to automatically load environment variables for service configuration?
Easy34An administrator needs to view the processes running inside a specific container named worker_node, along with custom ps options like -ef to see full command arguments. Which command accomplishes this?
Hard35Which THREE statements correctly describe the differences between CMD and ENTRYPOINT in a Containerfile?
Hard36Which flag allows you to publish a container port to a random ephemeral port on the host interface?
Easy37Which TWO of the following instructions in a Containerfile can be written using either the shell form or the exec form?
Medium38You are reviewing a Containerfile for a web application. The Containerfile currently uses the shell form for its ENTRYPOINT instruction. You want to ensure that the application receives signals correctly and that arguments passed to `podman run` are properly forwarded to the application. Which TWO changes should you make? (Choose two.)
Medium39An administrator needs to start a container named webapp from the image docker.io/library/httpd in the background. Which podman command should be used?
Easy40Which instruction documents the network ports on which a container listens at runtime?
Easy41Which TWO actions can an administrator take to manage container image tags in local Podman storage? (Choose two.)
Easy42An administrator is troubleshooting container startup failures and wants to inspect the exact entrypoint and command arguments configured for a container named app_run before it starts. Which inspect format expression retrieves this?
Hard43A security-conscious administrator runs a rootless Podman container that must bind-mount a directory from the host. The container process is denied access to the files even though the directory has world-readable permissions, and SELinux is enforcing. Which TWO steps will resolve the denial while keeping SELinux enforcing? (Choose two.)
Hard44You want a Podman Compose service to accept connections from other containers on the same Compose network but not from the host, and you do not want the host to be able to reach the service's port. Which Compose configuration achieves this while keeping the service reachable by name within the network?
Hard45You wish to connect an already running container to an existing custom Podman network named 'mynet'. Which command should you use?
Medium46A developer needs to push a locally built image to a private registry that requires authentication. The registry uses a self-signed certificate, and the developer wants Podman to trust that certificate for this registry only. Which action should be taken?
Medium47Which TWO commands allow a user to remove unwanted items from local Podman storage? (Choose two.)
Easy48An administrator wants to create a named volume using a specific volume driver instead of the default local driver. Which flag should be used with 'podman volume create'?
Medium49When working with Podman Compose files, which TWO options are valid keys that can be specified under a service definition for port and networking configuration? (Choose two)
Hard50Which TWO flags can be used to mount volumes or bind mounts when running a container? (Choose TWO)
Easy51An administrator is configuring container health checks and wants to review health status or force immediate actions. Which TWO of the following statements or commands are accurate regarding Podman health checks? (Choose TWO)
Hard52A containerized web service must be accessible from the host system on TCP port 8080, while the application inside the container listens on port 80. Which flag correctly configures this port mapping?
Easy53An administrator creates a custom CNI network using 'podman network create mynet' and wants to assign a static IP address to a container upon creation. Which option achieves this?
Hard54An administrator is troubleshooting a rootless Podman container that fails to write to a bind-mounted host directory. The directory is owned by the user on the host, but inside the container, the process runs as UID 1000 and receives permission denied. Which action should the administrator take to resolve the issue?
Hard55A user wants to inspect the effective signature verification policy that Podman will apply when pulling images, without modifying any files. Which command displays the current policy configuration?
Easy56Which command starts services defined in a Podman Compose file in detached mode?
Easy57Which TWO methods can be used to supply environment variables to a Podman container? (Choose TWO)
Hard58Which THREE practices should be observed when managing environment variables (ENV vs ARG) in Containerfiles for secure and efficient builds? (Choose three.)
Hard59A user needs to download an image from Docker Hub named 'library/alpine' using its explicit transport prefix. Which command demonstrates the correct transport syntax?
Easy60An administrator has a container that failed to start correctly. They want to inspect the exit code and finished timestamp. Which inspect format string provides the finished time?
Medium61A developer wants to mount a host directory into a container with read-only permissions to prevent accidental data modification. Which volume option flag achieves this?
Medium62An administrator is using Podman Quadlets to manage containers via systemd. Where must the Quadlet .container configuration file be placed for system-wide root containers?
Hard63An administrator is working with Podman Quadlets to manage container lifecycles via systemd. Which TWO statements regarding Quadlet file naming conventions and directory locations are correct? (Choose TWO)
Hard64A practitioner wants to view all container images currently stored in local storage, including their size, tag, and image ID. Which command should they execute?
Easy65An administrator needs to export container contents or create new images from containers. Which TWO commands accomplish these actions? (Choose TWO)
Medium66Which THREE directives or practices are associated with implementing secure container builds and adhering to least-privilege principles? (Choose three.)
Medium67An administrator wants to immediately stop and remove a running container named temp_test in a single command. Which command should be used?
Easy68You are optimizing a Containerfile using multi-stage builds to minimize image size. What is the key advantage of a multi-stage build in Podman?
Hard69When using the ADD instruction with a remote URL source, what is a recommended best practice regarding security and layer efficiency?
Hard70A 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?
Hard71An administrator needs to pass a configuration file located at /etc/myapp/config.yml on the host into a container at the same path. The container should read the file but not modify it. Which Podman run option accomplishes this with minimal risk of accidental modification?
Easy72A rootless Podman user must run a container that needs to write to a bind-mounted host directory. The container consistently fails with permission denied. The host directory is owned by the user and has mode 0775. SELinux is enforcing. Which action will allow the container to write to the directory without disabling SELinux?
Hard73You 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?
Easy74What 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?
Easy75An administrator wants to modify container settings or state. Which TWO of the following commands are valid Podman subcommands for container management? (Choose TWO)
Medium76Which TWO statements are true regarding Podman bind mounts? (Choose TWO)
Medium77An 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?
Easy78Which configuration block in a Podman Compose YAML file is used to define custom isolated networks for the multi-container application?
Easy79You 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?
Hard80An 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?
Hard81Which THREE behaviors occur when utilizing multi-stage builds in a Containerfile? (Choose three.)
Hard82An administrator has a running container named web_front that was started with podman run -d --name web_front nginx. The administrator needs to execute the command 'nginx -T' inside this already-running container to dump the full configuration. Which command accomplishes this?
Easy83You are troubleshooting a Podman Compose deployment where containers on a user-defined network cannot resolve each other by service name, although they can reach each other by IP address. Which TWO conditions would explain the name resolution failure? (Choose two.)
Hard84An 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?
Easy85Which TWO instructions are used to define variables or set environment values within a Containerfile? (Choose two.)
Easy86An 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?
Medium87You 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?
Easy88Two 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?
Medium89An 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?
Hard90Which THREE methods or options can be used to authenticate or supply credentials when pulling images from a private registry that requires authentication? (Choose three.)
Hard91Two 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?
Medium92You 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?
Easy93A team maintains a Podman Compose file where the application service must start only after the database service is healthy, not merely after its container is created. Which Compose construct expresses that health-based startup ordering?
Medium94Where are Podman named volumes typically stored on the host file system by default for a non-root user?
Easy95A 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?
Hard96An 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?
Hard97Which TWO actions occur when a container is run with ephemeral storage (the default behavior without volume mounts)? (Choose TWO)
Medium98An administrator has a container named legacy_api that has been stopped for several weeks. A teammate reports that the container's filesystem still contains an outdated configuration file at /etc/app/config.yml. The administrator wants to replace that file inside the stopped container's filesystem without starting it. Which command should the administrator use?
Medium99Which instruction should be used in a Containerfile to copy local files from the host machine into the container filesystem?
Easy100An 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?
Easy101A 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?
Easy102An administrator wants to create a named volume called appdata and inspect its mount point on the host. Which sequence of commands should the administrator use?
Medium103A developer builds a custom image with `podman build -t app:v1 .` but repeatedly gets stale results because an earlier RUN layer that installs packages is cached, even though the repository metadata has changed. The developer wants to force podman to ignore all cached layers for the next build without deleting the local image or build cache. Which command accomplishes this?
Medium104An 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?
Hard105Which THREE mechanisms are part of Podman's image signature verification framework on RHEL 9? (Choose three.)
Hard106An 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?
Hard107Which THREE actions occur when an administrator runs a container with an SELinux volume mount suffix ':Z'? (Choose three.)
Hard108An 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?
Medium109When utilizing Podman Compose, how are service dependencies and container startup orders typically managed within the YAML structure?
Hard110Which TWO actions can be performed using the podman volume management command suite? (Choose two.)
Medium111An 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?
Hard112An application container requires multiple configuration variables defined in a local file named 'app.env'. Which flag loads these variables into the container environment?
Medium113Which THREE practices should be followed to optimize container image size and build caching when writing Containerfiles? (Choose three.)
Medium114Which THREE tasks can be performed using the 'podman system' command set? (Choose three.)
Hard115You are using Podman Compose to define a multi-service application. The 'web' service must resolve the hostname 'db' to the 'db' service container's IP address, and the 'db' service must not be reachable from outside the Compose network. Which Compose configuration achieves this?
Hard116Which TWO configuration files or directories are routinely modified when establishing secure private container registry trust and signature policies on RHEL 9? (Choose two.)
Medium117A system administrator is auditing containers and notices one running with the option '--security-opt label=disable'. What does this flag do?
Medium118You are building an image with a multi-stage Containerfile. The final stage uses `FROM registry.access.redhat.com/ubi9/ubi-minimal` and you want to copy only the compiled binary from a builder stage named `builder` into `/usr/local/bin/app`. Which Containerfile line correctly copies that artifact?
Hard119Which command displays disk space usage statistics for Podman storage, including volumes and containers?
Easy120When configuring container mounts using the --mount flag, which THREE key-value pairs are valid parameters in the option string? (Choose three.)
Hard121An administrator needs to inspect the low-level configuration of a running container named net_tool, including its network settings, mounted volumes, and environment variables, in a JSON format for automation. Which command should the administrator use?
Easy122An 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?
Medium123Which THREE statements accurately describe the differences between shell form and exec form for CMD and ENTRYPOINT instructions? (Choose three.)
Hard124An administrator needs to inspect the configuration details, including subnet and gateway, of an existing custom network named 'my-net'. Which command should be executed?
Medium125You 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?
Medium126An administrator wants to check container port mappings and process listings inside containers. Which TWO commands provide these insights? (Choose TWO)
Easy127An 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?
Easy128How do you check the logs of all services managed by a Podman Compose file?
Easy129You are optimizing a Containerfile for a Python application. The build currently uses a single RUN instruction that installs dependencies, runs tests, and cleans up temporary files. You want to leverage build caching to speed up rebuilds when only application code changes, while ensuring that dependency installation is cached separately. Which approach best achieves this?
Hard130How can an administrator remove an existing Podman secret named 'old_secret'?
Easy131An 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?
Hard132A 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?
Medium133When generating a Kubernetes Pod YAML from a Podman container using 'podman generate kubernetes', how are published ports mapped into the resulting Kubernetes manifest?
Hard134An administrator needs to pause all processes inside a running container named db_master without stopping it. Which command accomplishes this?
Easy135You want to create a Podman network with a specific subnet and gateway. Which command correctly specifies these parameters?
Medium136A 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?
Easy137An 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?
Medium138You are running a rootless Podman container that serves a web application on port 8080. You want users on other machines in the 192.168.1.0/24 subnet to reach the service by connecting to the host's IP address on port 8080. The host's firewall allows the traffic. Which command correctly publishes the container port?
Medium139Which TWO Containerfile instructions are used to bring files or data from outside the container into the build context or image? (Choose two.)
Easy140After 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?
Medium141An administrator needs to check the disk space consumption of all containers, images, and volumes managed by Podman. Which command should be run?
Easy142You 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?
Hard143You 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?
Medium144An administrator needs to list all created Podman secrets on the system. Which command should they execute?
Hard145Which Containerfile instruction sets the working directory for any subsequent RUN, CMD, ENTRYPOINT, COPY, and ADD instructions?
Easy146You want to remove a custom Podman network named 'testnet', but it currently has active containers attached to it. What happens?
Medium147An administrator needs to pass a single environment variable directly on the command line when starting a container. Which flag accomplishes this?
Medium148Which THREE of the following are valid options or flags when working with Podman secrets? (Choose THREE)
Medium149Which TWO files or backend network management utilities are heavily relied upon by Podman for container networking stack configuration on modern Linux distributions? (Choose two.)
Hard150An administrator wants to temporarily pause a running container's processes and later resume them. Which TWO commands should be used? (Choose TWO)
Medium151Which user instruction changes the user name or UID and group name or GID to use when running subsequent instructions in the Containerfile?
Easy152An administrator needs to create a persistent storage volume that Podman can manage independently of any specific container lifecycle. Which command accomplishes this?
Easy153An administrator wants to rename an existing stopped container from old_name to new_name. Which command should be used?
Medium154An 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?
Medium155An administrator needs to inspect running containers and their resource consumption. Which TWO commands provide information about running container state or resource usage? (Choose TWO)
Easy156A 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?
Easy157An 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?
Hard158An administrator needs to remove all stopped containers from the system to free up disk space in a single command. Which command should be used?
Easy159Which THREE commands are valid Podman subcommands for managing container networks? (Choose three)
Easy160You 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?
Medium161An 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?
Medium162An 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?
Medium163By 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?
Medium164How do you list all available Podman networks on your system?
Easy165When configuring an environment file for use with '--env-file', how are comment lines designated?
Hard166Which THREE features or characteristics distinguish the ADD instruction from the COPY instruction in a Containerfile? (Choose three.)
Medium167A 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?
Easy168A security administrator is implementing image signature verification on RHEL 9. Where is the default system-wide signature policy file located?
Hard169You 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?
Hard170A 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?
Medium171An administrator needs to restart a running container named app_v1 so that configuration changes take effect. Which command performs a container restart?
Medium172Which TWO conditions are typically required for rootless container users to successfully map UIDs and GIDs from host accounts to container accounts? (Choose two.)
Medium173You 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?
Medium174An administrator wants to bind mount a host file directly into a container as a configuration file. Is this supported in Podman?
Medium175You are deploying a three-tier application with Podman Compose. The web service must resolve the database service by the name 'db' on the Compose-created network, and you want the web service to keep that name after container restarts. Which action ensures the 'db' alias is resolvable by the web container on the Compose network?
Medium176You 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?
Easy177An administrator is troubleshooting container exit codes. A container exited with code 137. What does this specific exit code typically signify in container engines?
Hard178An 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)
Hard179An administrator wants to run a one-off command (/bin/sh) interactively inside an existing running container named legacy_app. Which command should be used?
Medium180You 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?
Hard181An 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?
Easy182Which command removes all unused Podman networks that are not currently connected to any containers?
Easy183When configuring container networking in Podman, which TWO built-in network modes are available by default without creating custom networks? (Choose two)
Easy184An 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?
Medium185Which TWO statements are true regarding the EXPOSE instruction in a Containerfile? (Choose two.)
Easy186An 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'?
Medium187An administrator is preparing a Podman container that requires persistent storage for a web application. The storage must survive container restarts and be easily backed up. Which two types of storage mechanisms should the administrator consider? (Choose two.)
Medium188You are writing a Containerfile for a Python web service. You want the image build to install dependencies and then run the service with predictable behavior across environments. Which TWO practices correctly apply build-time and runtime configuration in the Containerfile? (Choose two.)
Hard189An 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)
Easy190How does Podman's rootless build architecture handle volume mounts or privileged operations specified within a RUN instruction in a Containerfile?
Hard191An 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?
Medium192Which flag can be passed to 'podman run' to automatically remove the container and its anonymous volumes upon exit?
Easy193You are troubleshooting a container that should have no network access whatsoever for security isolation. Which networking option should you apply?
Easy194Which TWO instructions in a Containerfile can be used to set metadata or default execution parameters that influence how a container runs? (Choose two.)
Easy195An 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?
Easy196Which TWO types of storage mechanisms are natively supported by Podman for container data persistence? (Choose two.)
Easy197An administrator is troubleshooting a rootless Podman container named payment_svc that fails to start with a permission-related error. The administrator wants to inspect the container's low-level configuration, including its mount points, namespace settings, and the exact command that was configured, without starting the container. Which command provides this information?
Hard198Which THREE inspection or cleanup actions can be performed on Podman secrets? (Choose THREE)
Hard199When writing a Containerfile, which instruction specifies the base image to be used for the subsequent build steps?
Easy200An administrator is configuring a systemd service using podman generate systemd and wants the generated service to stop and remove the container automatically when the service stops, and create a fresh container when it starts. Which flag should be added?
Hard201A developer wants to build a container image using podman build, but the Containerfile is named 'Customfile' and located in a subdirectory named 'dockerfiles'. Which command accomplishes this?
Easy202You are optimizing image build times and notice that a specific RUN instruction fetching dependencies is re-running on every build, even though the requirements.txt file has not changed. What is causing this behavior?
Hard203An administrator wants to view a list of all running containers in a clean, tabular format without stopping containers or showing extra metadata. Which command should be used?
Easy204Which TWO commands or flags are valid for managing Podman named volumes? (Choose TWO)
Easy205An administrator needs to execute a package update and install dependencies during the podman build process, ensuring these commands are committed as a new layer in the final image. Which instruction accomplishes this?
Medium206You want to build an image that has a build-time argument named 'VERSION'. How do you declare this variable inside the Containerfile so it can be used during the build steps?
Medium207You have created a Podman pod and want to launch two containers inside this pod so they share the same network namespace. How do you specify this during container creation?
Hard208When writing a Containerfile, what is the difference between shell form and exec form for the CMD instruction?
Medium209An administrator is managing rootless containers and wants to enable systemd linger for their user account so that user-level container services continue running after the user logs out. Which command should be run?
Hard210An administrator wants to create a new container named app_test from the image registry.example.com/apps/web:v2, but the container should not start immediately so that environment variables can be adjusted first. Which command creates the container without starting it?
Medium211An administrator needs to manage multiple containers simultaneously using Podman. Which THREE actions can be performed directly using Podman commands? (Choose THREE)
Easy212An administrator needs to copy files between the host system and a running container. Which TWO syntax forms or commands are correct when using podman cp? (Choose TWO)
Medium213A developer needs to optimize image size by removing build caches and temporary package manager cache files within the same RUN instruction. Why must this be done in a single RUN instruction?
Medium214Which TWO actions can be performed using the 'podman network' subcommand? (Choose two.)
Easy215An administrator needs to inspect container health check logs to determine why recent health checks failed for a container named app_prod. Which command displays the container's health check log history?
Medium216A user needs to log out from a private container registry to remove stored credentials from their local machine. Which command accomplishes this?
Easy217A container named 'metrics' has been running for several hours, and an engineer needs to inspect its current resource consumption (CPU, memory, and network I/O usage). Which Podman command provides a live-updating stream of resource usage statistics for running containers?
Medium218You need to troubleshoot name resolution between containers on a custom network. Which backend service does Podman utilize by default for container DNS resolution in modern rootless setups?
Hard219When interacting with container registries using Podman, which THREE commands or tasks are valid operations supported natively by the Podman CLI? (Choose three.)
Easy220Which THREE storage-related items can be inspected using 'podman system df'? (Choose THREE)
Easy221Which THREE practices are recommended when optimizing cache utilization during image builds with podman build?
Hard222A 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?
Easy223An administrator needs to create a Podman secret from a file on disk named 'secret.txt'. Which command correctly performs this action?
Medium224An administrator wants to ensure that a bind-mounted directory allows propagation of mounts from the host into the container. Which mount option configures mount propagation mode?
Hard225An administrator needs to create a persistent storage area managed completely by Podman that does not rely on a specific host directory path. Which command should be used?
Easy226A developer wants to search for all available container images matching the term 'rhel9' across configured registries using Podman. Which command should they run?
Medium227Which TWO conditions are required for a non-root (rootless) user to successfully bind mount a host directory into a container? (Choose TWO)
Medium228An 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?
Easy229An administrator needs to clean up a host running rootless Podman. Several containers have exited and are consuming disk space, and the administrator wants to remove only the stopped containers while preserving running containers and all images. Which TWO commands accomplish this? (Choose two.)
Medium230In a Podman Compose file, how do you define a custom network and connect a service to it?
Medium231You need to ensure that a file copied into your image via the COPY instruction is owned by a specific user 'developer' and group 'devgroup'. How can this be achieved efficiently?
Medium232A 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'?
Medium233A developer needs to pass several environment variables to a container from a file named web.env. The file contains lines such as DB_HOST=localhost and DB_PORT=5432. Which Podman run flag should be used to load these variables into the container?
Easy234How can an administrator remove all unused, dangling Podman volumes that are not currently attached to any container?
Easy235Which TWO actions are required when configuring a secure container workflow to push a signed image to a registry using Podman? (Choose two.)
Medium236Which TWO commands are used to manage Podman secrets? (Choose TWO)
Easy237When publishing container ports using the Podman CLI, which THREE methods or syntaxes are valid for the -p / --publish flag? (Choose three)
Medium238Which TWO commands are used to transfer container images via archive files without interacting with a network registry? (Choose two.)
Easy239A 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?
Medium240A user needs to remove a local container image that is no longer needed. Which command should be used?
Easy241A team wants to document ownership and contact information directly in the image so that `podman inspect` shows who maintains it. Which Containerfile instruction should they add to set this metadata?
Easy242An 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?
Hard243A developer has written a Containerfile with multiple COPY instructions for static configuration files that change frequently, placed near the top of the Containerfile before the application code installation. Why is this considered a bad practice for build caching?
Medium244An administrator runs a container with a SELinux-relabeled host directory mount using the Z option, but multiple containers need to share write access to this exact same volume. Which option should be used instead?
Hard245You have a Kubernetes YAML manifest file named 'app.yaml' that defines a Pod with network settings. You want to deploy this directly as a Podman container/pod on your local system. Which command should you use?
Hard246Which THREE configuration keys are valid within a service definition block in a Podman Compose file for managing container networking and ports? (Choose three.)
Medium247Which Podman network mode completely isolates a container from any network communication, removing all interfaces except the loopback?
Easy248An administrator needs to copy a directory named /app/logs from a running container named prod_app to the local host directory /var/backups/. Which command accomplishes this?
Medium249A 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?
Medium250Which TWO statements are true regarding user-defined bridge networks in Podman? (Choose two)
Medium251You need to copy local application source code from your build context into the /app directory inside the container image, automatically unpacking it if it is a local tar archive. Which instruction should you select?
Hard252An administrator needs to list all containers, including both running and stopped ones, on the system. Which command should be used?
Easy253A container named db_cache has stopped unexpectedly. An administrator wants to see the standard output logs generated by this container prior to its exit. Which command should be used?
Easy254An administrator is integrating Podman containers with systemd using generated unit files. Which TWO statements are correct regarding podman generate systemd and its usage? (Choose TWO)
Hard255A developer needs to pull a private image from quay.io. The registry requires authentication. Which command should the developer use to store credentials for quay.io so that subsequent `podman pull` operations succeed without prompting?
Easy256Which TWO methods can a user employ to verify that an image has been successfully downloaded to their local machine? (Choose two.)
Easy257Which TWO options are valid flags for the 'podman build' command to specify build arguments and tags? (Choose two.)
Easy258An auditor reviewing your Containerfile notices an EXPOSE instruction for port 80. What is the primary function of the EXPOSE instruction?
Medium259When deploying containers using Podman Compose, what is the default network driver assigned to user-defined networks created by compose if no driver is specified?
Hard260A user wants to inspect the metadata and layers of an image stored locally without running it. Which Podman command should be used?
Easy261An administrator is troubleshooting a container that fails its health check repeatedly. The container definition needs a health check that runs curl -f http://localhost/ || exit 1 every 30s, with a 5s timeout and 3 retries, starting after a 10s grace period. Which flag combination implements this correctly in podman run?
Hard262A developer wants to pass a secret API key during the container build process without leaving the secret exposed in image layers or history. Which Podman feature should be used?
Hard263An administrator needs to view logs or attach to a running container to troubleshoot an issue. Which TWO commands can be used to interact with container output streams? (Choose TWO)
Easy264You need to configure a container so that its port 8080 maps to port 80 on the host's loopback interface only (127.0.0.1). Which syntax is correct?
MediumOther domains
All EX188 exam domains
Frequently asked questions
- What does the scenario questions domain cover on the EX188 exam?
- scenario questions questions test whether you can apply the concept in context, not just recognise a definition.
- How many questions are in this domain?
- This page lists all 264 scenario questions questions in the EX188 question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
- What is the best way to practise this domain?
- Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
- Can I practise only scenario questions questions?
- Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.