Courseiva

EX188 · domain

Networking And Compose

This domain covers Podman container networking and Compose-based multi-container deployment on Red Hat Enterprise Linux. You must configure bridge and custom networks, attach containers and pods to shared network namespaces, inspect and remove networks, and translate Compose files into running Podman workloads using podman-compose or podman kube play.

53 questions17 easy20 medium16 hard

Focused practice

Practice Networking And Compose 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 Networking And Compose

Be able to create a custom Podman network, run containers or pods attached to it, verify connectivity and DNS resolution, remove unused networks, and bring up a Compose file. The key is matching each container's network attachment to the intended shared namespace.

Creating and inspecting Podman bridge networks with podman network create, ls, inspect, and rm

Sharing a network namespace by placing containers in the same Podman pod

Using CNI or Netavark with aardvark-dns as the backend networking stack

Deploying multi-container applications from Compose files with podman-compose

Watch out for

Common Networking And Compose exam traps

  • ▸Assuming containers in the same pod need explicit port mappings to reach each other; they share localhost inside the pod network namespace.
  • ▸Forgetting that podman network rm fails while containers or pods are still attached to the custom network.
  • ▸Mixing up pod-level and container-level port publishing, causing duplicate or unreachable published ports.

Question index

All Networking And Compose questions (53)

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

1

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

Easy
2

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

Medium
3

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
4

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
5

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
6

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

Easy
7

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

Easy
8

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

Easy
9

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

Hard
10

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

Medium
11

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
12

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
13

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
14

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

Easy
15

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
16

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

Easy
17

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

Hard
18

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
19

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
20

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

Medium
21

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

Hard
22

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

Hard
23

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
24

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

Easy
25

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
26

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

Medium
27

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
28

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

Medium
29

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
30

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

Medium
31

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
32

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

Easy
33

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
34

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
35

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

Easy
36

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
37

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
38

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

Medium
39

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
40

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

Easy
41

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

Easy
42

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

Easy
43

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
44

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

Easy
45

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
46

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

Medium
47

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

Medium
48

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
49

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
50

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

Easy
51

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

Medium
52

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
53

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 Networking And Compose domain cover on the EX188 exam?
Be able to create a custom Podman network, run containers or pods attached to it, verify connectivity and DNS resolution, remove unused networks, and bring up a Compose file. The key is matching each container's network attachment to the intended shared namespace.
How many questions are in this domain?
This page lists all 53 Networking And Compose 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 Networking And Compose questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.
Red Hat Certified Specialist in Containers (EX188, Podman-based) (EX188) Networking And Compose Practice Questions