exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 176 discussion

Actual exam question from Cisco's 350-901
Question #: 176
Topic #: 1
[All 350-901 Questions]

An engineer is developing a Docker container for an application in Python. For security reasons the application needs to be accessible on port 5001 only. Which line should be added to the dockerfile in order to accomplish this?

  • A. ADD PORT 5001
  • B. ENTRYPOINT 5001
  • C. EXPOSE 5001
  • D. PORT SRC 5001
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Teringzooi
7 months, 3 weeks ago
Selected Answer: C
Correct answer: C EXPOSE <port> [<port>/<protocol>...] https://docs.docker.com/engine/reference/builder/
upvoted 2 times
...
designated
8 months, 2 weeks ago
Selected Answer: C
C, EXPOSE. The EXPOSE instruction informs Docker that the container listens on the specified network ports at runtime. You can specify whether the port listens on TCP or UDP, and the default is TCP if the protocol is not specified. https://docs.docker.com/engine/reference/builder/
upvoted 1 times
...
cubic
1 year ago
Selected Answer: C
The solution is "C" is correct.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...