Which description best explains how container networking provides the components and control needed to connect workloads?
Container Networking Fundamentals Online Quiz Questions
Use this free practice quiz with 10 questions to review Container Networking Fundamentals, test your knowledge, and prepare for your next test or exam.
Two containers are attached to different networks. Under what condition can they communicate according to the networking model?
- A
Only when they use the same container image
- B
Only when both containers publish ports to the host
- C
When they share a network or routing connects their networks
- D
Whenever they run on the same physical machine, regardless of network configuration
What is the usual network behavior of services in a Docker Compose project?
- A
They join a shared default network and can resolve one another by service name.
- B
They must all use the same fixed IP address.
- C
They communicate only if each service publishes its ports to the host.
- D
They are automatically placed on separate networks and cannot resolve each other.
A team wants to separate frontend-facing services from backend services so the groups do not all communicate directly. How can custom networks help?
- A
They assign every service the same IP address.
- B
They make every service reachable from every external network.
- C
They require every service to publish its ports to the host.
- D
They can separate service groups so only services on the same network communicate directly.
How can containers within the same Kubernetes Pod communicate with one another?
- A
They must communicate through a published host port.
- B
They share a network namespace and can communicate through localhost.
- C
They each have a separate Pod network identity.
- D
They can communicate only by using a Service.
Which statement describes network communication between separate Kubernetes Pods?
- A
Every Pod shares one network namespace with every other Pod.
- B
Pods communicate only when they are in the same Kubernetes Pod.
- C
Pods have their own network identities, and the cluster network enables Pod-to-Pod communication.
- D
Pod-to-Pod communication requires every Pod port to be published on the host.
Why do applications in Kubernetes generally connect to a Service rather than depend on an individual Pod address?
- A
A Pod may be replaced and its IP address may change, so applications generally connect to a Service.
- B
A Service is required because Pods do not have network identities.
- C
Services are needed only to let containers in the same Pod use localhost.
- D
A Pod address remains fixed when a Pod is replaced.
How can network membership establish a communication boundary between services?
- A
It guarantees that every attached service is reachable from outside the host.
- B
It assigns a permanent IP address to every attached service.
- C
It prevents attached services from communicating with one another.
- D
It can limit which services communicate directly by determining which services share a network.
What role does a container runtime or orchestration platform play in network connectivity?
- A
It replaces network interfaces with published ports.
- B
It connects interfaces to networks and controls traffic flow.
- C
It ensures every container uses a fixed IP address.
- D
It makes all containers communicate through localhost.
A Compose web service needs to locate a database service without relying on its fixed container IP address. What network feature supports this?
- A
Service names work only after each service publishes a host port.
- B
Services must use fixed IP addresses because Compose does not provide name resolution.
- C
Services on the shared default network can resolve one another by service name.
- D
Service names are used only between containers in a Kubernetes Pod.
Related study packs and tools
AWS Cloud Concepts
Practice cloud benefits, deployment models, scalability, elasticity and AWS Cloud concepts.
12 study toolsAWS Cloud Practitioner Practice Test
Comprehensive AWS Certified Cloud Practitioner practice covering cloud concepts, security, AWS services and pricing.
15 study toolsAWS Cloud Technology and Services: Cloud Databases
Focused study of relational and nonrelational databases and service selection concepts.
12 study toolsAWS Cloud Technology and Services: EC2 Compute
Focused study of instances, instance types, scaling and compute use cases.
12 study toolsAWS Cloud Technology and Services: S3 Storage
Focused study of objects, buckets, storage classes and storage use cases.
12 study toolsAWS Cloud Technology and Services: Serverless Services
Focused study of event-driven functions and serverless application concepts.
15 study tools