0
0
Microservicessystem_design~20 mins

Container networking in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Container Networking Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Container Network Isolation
Which option best describes how container network isolation is typically achieved in Docker?
AEach container gets its own network namespace, isolating its network stack from others.
BContainers share the host's network stack without any isolation.
CContainers use a shared IP address but different ports without network namespaces.
DContainers communicate only through shared volumes, not networks.
Attempts:
2 left
💡 Hint
Think about how containers keep their network traffic separate.
Architecture
intermediate
2:00remaining
Choosing a Container Network Model
You need to design a microservices system where containers on different hosts must communicate securely and efficiently. Which container network model is best suited?
AHost network model, where containers share the host's network stack.
BBridge network model, where containers communicate only on the same host.
COverlay network model, which allows containers across hosts to communicate securely.
DNone, containers cannot communicate across hosts.
Attempts:
2 left
💡 Hint
Consider multi-host communication with security.
scaling
advanced
2:00remaining
Scaling Container Networking for High Traffic
Your containerized application experiences high traffic and you want to scale networking without bottlenecks. Which approach best supports scalable container networking?
AUse a single bridge network for all containers to simplify routing.
BAssign static IPs to containers and manually configure routing tables.
CDisable container networking and use host networking for all containers.
DImplement a distributed service mesh to manage container communication and load balancing.
Attempts:
2 left
💡 Hint
Think about dynamic routing and load balancing at scale.
tradeoff
advanced
2:00remaining
Tradeoffs Between Host and Overlay Networking
What is a key tradeoff when choosing host networking over overlay networking for containers?
AHost networking provides better performance but less network isolation compared to overlay.
BOverlay networking has no encryption, while host networking encrypts all traffic.
CHost networking offers better isolation but worse performance than overlay.
DOverlay networking requires containers to share the host's IP address.
Attempts:
2 left
💡 Hint
Consider isolation versus performance.
estimation
expert
2:00remaining
Estimating Network Capacity for Containerized Microservices
You run 1000 containers, each sending 1 Mbps traffic continuously. What is the minimum network bandwidth your container host cluster must support to avoid bottlenecks?
A100 Gbps
B10 Gbps
C100 Mbps
D1 Gbps
Attempts:
2 left
💡 Hint
Multiply containers by their traffic and convert units.