フリー問題

CompTIA Linux+ のフリー問題 9 / 20 問目

問題文

Two containers on the same host must talk to each other by name, while neither should be reachable from outside the host. Which arrangement achieves both?

選択肢

  1. Run both containers with the host's network stack and rely on the firewall to block outside access, and sharing the host stack lets each container reach the other on the loopback address.
  2. Share a volume between the two containers so they can exchange data through files, and a shared file path serves as the address each container uses for the other.
  3. Publish each container's port to the host and add a rule that drops traffic from outside, since published ports are the only way containers can reach each other and name resolution between containers is provided by the host's resolver once the ports are published.
  4. Attach both containers to the same user-defined container network and publish no ports to the host.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。