Courseiva

EX188 · domain

troubleshooting

Practise Red Hat Certified Specialist in Containers (EX188, Podman-based) (EX188) troubleshooting practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

296 questions95 easy109 medium92 hard

Focused practice

Practice troubleshooting 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 troubleshooting

troubleshooting 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 troubleshooting 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 troubleshooting questions (296)

Click any question to see the full explanation, or start a practice session above.

1

Which THREE commands are valid when inspecting or managing Podman storage volumes? (Choose THREE)

Easy
2

An administrator needs to execute multiple commands in a single RUN instruction to minimize image layers. Which syntax is standard in a Containerfile?

Medium
3

An 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?

Medium
4

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

Hard
5

How do you disconnect a running container from a custom network named 'mynet'?

Easy
6

An 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)

Medium
7

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?

Easy
8

An 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)

Hard
9

Which TWO commands can be used with Podman to build a container image from a Containerfile? (Choose two.)

Easy
10

You 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?

Easy
11

An 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?

Medium
12

Which subcommand deletes one or more specific named volumes?

Easy
13

A container needs read-only access to a host configuration directory located at /etc/appconfig. Which Podman volume flag configuration correctly achieves this?

Easy
14

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?

Easy
15

You need to inspect the configuration details, including subnet, gateway, and driver, of a custom Podman network named 'appnet'. Which command should you run?

Hard
16

You 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?

Medium
17

Which THREE formatting options or commands can be used with 'podman volume ls' to customize or filter output? (Choose THREE)

Hard
18

You 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?

Hard
19

A container using a named volume needs to be deleted, but you want to ensure the persistent volume data is preserved for future containers. Which command should you execute?

Hard
20

Which THREE mechanisms are valid ways to pass build arguments into a Containerfile during a 'podman build' invocation? (Choose three.)

Medium
21

You 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?

Hard
22

You 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?

Medium
23

What is the primary benefit of utilizing multi-stage builds in Containerfiles?

Medium
24

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?

Medium
25

An 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'?

Hard
26

An 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)

Medium
27

An engineer needs to mount a host directory using the advanced '--mount' syntax instead of '-v'. Which syntax correctly specifies a bind mount?

Medium
28

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?

Hard
29

An administrator runs a container with an SELinux-enforced host bind mount, but the container processes fail to write to the directory due to permission errors. Which volume option resolves this by sharing the SELinux content label?

Medium
30

An 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?

Hard
31

Which TWO instructions can be used to copy files or directories from a build context into a container image?

Medium
32

A 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?

Easy
33

A container named db_master was previously paused using podman pause. Which command should the administrator use to resume its execution?

Medium
34

When inspecting the networking of a container using 'podman inspect', where is the IP address of the container located in the output JSON structure?

Hard
35

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

Medium
36

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?

Hard
37

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?

Medium
38

Which TWO options can be specified when mounting a Podman secret into a container? (Choose TWO)

Hard
39

An 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?

Hard
40

Which environment file option can be used in a Podman Compose file to automatically load environment variables for service configuration?

Easy
41

An 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?

Hard
42

An auditor notices that a container image runs its main application process as the 'root' user by default. Which Containerfile instruction can be added to ensure the container runs as a non-privileged user named 'appuser'?

Medium
43

Which THREE statements correctly describe the differences between CMD and ENTRYPOINT in a Containerfile?

Hard
44

A container needs to read a secret named 'api_key' injected as a file at '/run/secrets/api_key'. What is the default destination path inside the container when mounting a secret without specifying a target?

Hard
45

You want to create a rigid container image where the container always executes a specific binary (/usr/bin/redis-server) and any arguments passed to 'podman run' are appended as arguments to that binary. Which instruction combination is best?

Medium
46

Which flag allows you to publish a container port to a random ephemeral port on the host interface?

Easy
47

Which TWO of the following instructions in a Containerfile can be written using either the shell form or the exec form?

Medium
48

You need to inspect the disk space usage and detailed metadata of all managed volumes currently configured in Podman. Which command provides this information?

Medium
49

An administrator needs to start a container named webapp from the image docker.io/library/httpd in the background. Which podman command should be used?

Easy
50

Which instruction documents the network ports on which a container listens at runtime?

Easy
51

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

Easy
52

An 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?

Hard
53

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

Hard
54

You wish to connect an already running container to an existing custom Podman network named 'mynet'. Which command should you use?

Medium
55

An administrator wants to generate a systemd unit file for an existing Podman container named 'app_server' so that it can be managed as a system service. Which command should be used to generate this unit file and write it directly to the user systemd directory?

Hard
56

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

Easy
57

An 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'?

Medium
58

When 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)

Hard
59

Which TWO flags can be used to mount volumes or bind mounts when running a container? (Choose TWO)

Easy
60

An 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)

Hard
61

You are writing a Podman Compose file and want to ensure a service depends on another service being fully started before it initializes. Which directive should you use?

Medium
62

A 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?

Easy
63

An 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?

Hard
64

Which command starts services defined in a Podman Compose file in detached mode?

Easy
65

Which TWO methods can be used to supply environment variables to a Podman container? (Choose TWO)

Hard
66

Which THREE practices should be observed when managing environment variables (ENV vs ARG) in Containerfiles for secure and efficient builds? (Choose three.)

Hard
67

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?

Easy
68

An 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?

Medium
69

A 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?

Medium
70

An administrator is using Podman Quadlets to manage containers via systemd. Where must the Quadlet .container configuration file be placed for system-wide root containers?

Hard
71

An 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)

Hard
72

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?

Easy
73

An administrator needs to export container contents or create new images from containers. Which TWO commands accomplish these actions? (Choose TWO)

Medium
74

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)

Hard
75

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)

Medium
76

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

Medium
77

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

Hard
78

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

Easy
79

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?

Hard
80

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?

Hard
81

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

Hard
82

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?

Hard
83

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?

Medium
84

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?

Easy
85

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?

Hard
86

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?

Easy
87

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

Medium
88

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

Hard
89

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

Medium
90

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?

Easy
91

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?

Medium
92

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

Easy
93

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?

Hard
94

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?

Hard
95

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?

Hard
96

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

Hard
97

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?

Easy
98

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

Easy
99

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?

Medium
100

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?

Hard
101

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

Hard
102

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?

Easy
103

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?

Medium
104

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?

Hard
105

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?

Medium
106

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

Hard
107

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

Hard
108

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?

Medium
109

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?

Easy
110

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

Easy
111

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?

Hard
112

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?

Hard
113

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

Medium
114

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

Medium
115

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

Easy
116

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?

Easy
117

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

Hard
118

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?

Easy
119

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?

Hard
120

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

Hard
121

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?

Hard
122

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

Hard
123

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?

Medium
124

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)

Easy
125

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

Hard
126

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

Medium
127

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?

Hard
128

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

Medium
129

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

Medium
130

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

Hard
131

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

Medium
132

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

Medium
133

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

Medium
134

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

Easy
135

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

Easy
136

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

Hard
137

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?

Medium
138

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

Hard
139

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?

Medium
140

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?

Medium
141

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

Easy
142

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?

Easy
143

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

Easy
144

Which command lists all named volumes currently managed by Podman?

Easy
145

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

Easy
146

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?

Hard
147

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?

Medium
148

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

Hard
149

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

Hard
150

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

Easy
151

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

Medium
152

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?

Easy
153

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

Medium
154

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

Easy
155

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?

Medium
156

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

Easy
157

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

Hard
158

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

Medium
159

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

Hard
160

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

Easy
161

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

Medium
162

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

Medium
163

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

Medium
164

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

Hard
165

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

Medium
166

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

Easy
167

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

Easy
168

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

Medium
169

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

Medium
170

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

Easy
171

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?

Easy
172

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

Easy
173

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

Medium
174

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

Easy
175

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

Medium
176

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

Medium
177

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

Medium
178

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

Medium
179

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

Easy
180

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

Hard
181

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

Hard
182

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

Medium
183

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?

Easy
184

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

Hard
185

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

Hard
186

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

Medium
187

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

Medium
188

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

Medium
189

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

Easy
190

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

Medium
191

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

Medium
192

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

Easy
193

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

Hard
194

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

Medium
195

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

Hard
196

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

Medium
197

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

Hard
198

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

Easy
199

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

Easy
200

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

Easy
201

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

Medium
202

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

Medium
203

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

Easy
204

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'?

Medium
205

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

Easy
206

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?

Easy
207

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

Hard
208

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

Medium
209

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

Hard
210

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

Medium
211

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

Medium
212

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

Easy
213

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

Easy
214

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

Easy
215

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

Easy
216

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

Easy
217

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

Hard
218

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

Medium
219

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

Easy
220

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?

Hard
221

An 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?

Hard
222

A 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?

Easy
223

You 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?

Hard
224

An 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?

Easy
225

Which TWO commands or flags are valid for managing Podman named volumes? (Choose TWO)

Easy
226

An 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?

Medium
227

You 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?

Medium
228

You 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?

Hard
229

When writing a Containerfile, what is the difference between shell form and exec form for the CMD instruction?

Medium
230

An 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?

Hard
231

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

Medium
232

An administrator needs to manage multiple containers simultaneously using Podman. Which THREE actions can be performed directly using Podman commands? (Choose THREE)

Easy
233

An 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)

Medium
234

An administrator wants to forcefully kill a running container named runaway_job immediately by sending the SIGKILL signal. Which command should be used?

Medium
235

A 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?

Medium
236

Which TWO actions can be performed using the 'podman network' subcommand? (Choose two.)

Easy
237

An 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?

Medium
238

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

Easy
239

A 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?

Medium
240

Which THREE subcommands are valid under 'podman-compose' (or 'podman compose') for managing container lifecycles and application stacks? (Choose three.)

Medium
241

You 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?

Hard
242

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

Easy
243

Which THREE storage-related items can be inspected using 'podman system df'? (Choose THREE)

Easy
244

Which THREE statements are correct regarding the behavior and usage of the WORKDIR instruction? (Choose three.)

Medium
245

Which THREE practices are recommended when optimizing cache utilization during image builds with podman build?

Hard
246

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?

Hard
247

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?

Easy
248

An administrator needs to create a Podman secret from a file on disk named 'secret.txt'. Which command correctly performs this action?

Medium
249

An 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?

Hard
250

An 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?

Easy
251

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

Medium
252

Which TWO conditions are required for a non-root (rootless) user to successfully bind mount a host directory into a container? (Choose TWO)

Medium
253

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?

Easy
254

An administrator needs to stop and remove a running container in a single workflow. Which TWO of the following approaches accomplish this? (Choose TWO)

Easy
255

In a Podman Compose file, how do you define a custom network and connect a service to it?

Medium
256

You 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?

Medium
257

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'?

Medium
258

How can an administrator remove all unused, dangling Podman volumes that are not currently attached to any container?

Easy
259

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?

Hard
260

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

Medium
261

Which TWO commands are used to manage Podman secrets? (Choose TWO)

Easy
262

When publishing container ports using the Podman CLI, which THREE methods or syntaxes are valid for the -p / --publish flag? (Choose three)

Medium
263

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

Medium
264

When creating multi-architecture container images using podman build, how can you ensure that architecture-specific binaries are correctly handled when using instructions like COPY?

Hard
265

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

Easy
266

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?

Medium
267

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

Easy
268

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?

Hard
269

Which THREE methods or directives can be used to pass environment variables into containers via Podman Compose? (Choose three.)

Medium
270

A 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?

Medium
271

Which flag is used with 'podman run' to create an ephemeral, writable container layer scratchpad that is automatically destroyed when the container stops?

Easy
272

An 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?

Hard
273

You 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?

Hard
274

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

Medium
275

Which THREE configuration keys are valid within a service definition block in a Podman Compose file for managing container networking and ports? (Choose three.)

Medium
276

Which Podman network mode completely isolates a container from any network communication, removing all interfaces except the loopback?

Easy
277

An 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?

Medium
278

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?

Medium
279

Which TWO statements are true regarding user-defined bridge networks in Podman? (Choose two)

Medium
280

You 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?

Hard
281

An administrator needs to list all containers, including both running and stopped ones, on the system. Which command should be used?

Easy
282

A 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?

Easy
283

An 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)

Hard
284

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

Easy
285

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?

Easy
286

Which TWO options are valid flags for the 'podman build' command to specify build arguments and tags? (Choose two.)

Easy
287

An auditor reviewing your Containerfile notices an EXPOSE instruction for port 80. What is the primary function of the EXPOSE instruction?

Medium
288

When deploying containers using Podman Compose, what is the default network driver assigned to user-defined networks created by compose if no driver is specified?

Hard
289

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

Easy
290

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

Easy
291

An administrator wants to find out which host port is mapped to port 80/tcp inside a running container named proxy_svr, using format templating with podman inspect. Which command accomplishes this?

Hard
292

An 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?

Hard
293

A 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?

Hard
294

An administrator wants to generate a systemd unit file for an existing container named web_frontend so it can be managed by systemd. Which command should be run?

Easy
295

An 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)

Easy
296

You 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?

Medium

Frequently asked questions

What does the troubleshooting domain cover on the EX188 exam?
troubleshooting 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 296 troubleshooting 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 troubleshooting questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.