Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Cisco 200-901 Exam - Topic 17 Question 26 Discussion

Refer to the exhibit.Which function does the EXPOSE line perform when building an image from this Dockerfile?
C) Local port 8080 is accessible from other containers running on the same docker host as the container that launched with this docker image.
A) Local port 8080 of the container that launched with this docker image is accessible from co-hosted containers and external clients.
B) Local port 8080 is not reachable at all because no IP address is specified along with the EXPOSE command of the Dockerfile.
D) Local port 8080 of the container that launched with this docker image is accessible to external clients.

Cisco 200-901 Exam - Topic 17 Question 26 Discussion

Actual exam question for Cisco's 200-901 exam
Question #: 26
Topic #: 17
[All 200-901 Questions]

Refer to the exhibit.

Which function does the EXPOSE line perform when building an image from this Dockerfile?

Show Suggested Answer Hide Answer
Suggested Answer: C

By default, the EXPOSE instruction does not expose the container's ports to be accessible from the host. In other words, it only makes the stated ports available for inter-container interaction.

Whereas publishing a port using either -P or -p exposes it, exposing a port using EXPOSE or --expose does not publish it.

So, while exposed ports can only be accessed internally, published ports can be accessible by external containers and services.

https://www.whitesourcesoftware.com/free-developer-tools/blog/docker-expose-port/


Contribute your Thoughts:

0/2000 characters
Gladys
10 months ago
B seems right; no IP means no external access.
upvoted 0 times
...
Benedict
10 months ago
Definitely option C! That's how it works.
upvoted 0 times
...
Kirk
11 months ago
Wait, so it doesn't open the port to the outside world? That's surprising!
upvoted 0 times
...
Yuonne
11 months ago
I think it's only accessible to other containers, not external clients.
upvoted 0 times
...
Eileen
11 months ago
EXPOSE just makes the port available to other containers.
upvoted 0 times
...
Linwood
11 months ago
Okay, I've got this. If the washing powder has achieved high market growth and a high market share, that means it's in the "star" quadrant of the BCG matrix. That's the one for products with high growth and high market share.
upvoted 0 times
...
Melvin
11 months ago
I'm pretty sure the list of Document Revisions comes from Managed Documents, so I'll go with option A.
upvoted 0 times
...
Mona
11 months ago
I'm torn between A and B, but I lean towards A because it emphasizes "ongoing" support, right?
upvoted 0 times
...

Save Cancel