0
0
Computer Networksknowledge~10 mins

Container networking in Computer Networks - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the sentence to describe the basic purpose of container networking.

Computer Networks
Container networking allows containers to [1] with each other and external systems.
Drag options to blanks, or click blank then click option'
Acommunicate
Bcompile
Cstore
Dencrypt
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'compile' because it sounds technical but it is unrelated to networking.
Choosing 'store' which relates to data storage, not networking.
2fill in blank
medium

Complete the sentence to identify a common network mode for containers.

Computer Networks
In Docker, the default network mode for containers is called [1] mode.
Drag options to blanks, or click blank then click option'
Ahost
Bnone
Coverlay
Dbridge
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'host' which uses the host's network directly, not the default.
Choosing 'overlay' which is used for multi-host networking.
3fill in blank
hard

Fix the error in the sentence describing container IP addressing.

Computer Networks
Each container is assigned a unique [1] address within its network to enable communication.
Drag options to blanks, or click blank then click option'
ADNS
BIP
CMAC
DPort
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'MAC' which is a hardware address, not typically assigned uniquely per container in virtual networks.
Choosing 'DNS' which is a naming system, not an address.
4fill in blank
hard

Fill both blanks to complete the description of container port mapping.

Computer Networks
To allow external access, a container's [1] is mapped to a host's [2].
Drag options to blanks, or click blank then click option'
Aport
BIP address
Cport number
Dnetwork interface
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing IP address with port number.
Mixing network interface with port concepts.
5fill in blank
hard

Fill both blanks to complete the dictionary comprehension that maps container names to their IP addresses if the IP is not empty.

Computer Networks
container_ips = { [1]: [2] for }, ip in containers.items() if ip != '' {{BLANK_5}}
Drag options to blanks, or click blank then click option'
A{
Bip
Cname
D}
E:
Attempts:
3 left
💡 Hint
Common Mistakes
Using '}' at the start instead of '{'.
Swapping the key and value positions.