exam questions

Exam KCNA All Questions

View all questions & answers for the KCNA exam

Exam KCNA topic 1 question 68 discussion

Actual exam question from Linux Foundation's KCNA
Question #: 68
Topic #: 1
[All KCNA Questions]

Can a Kubernetes Service expose multiple ports?

  • A. No, you can only expose one port per each Service.
  • B. Yes, but you must specify an unambiguous name for each port.
  • C. Yes, the only requirement is to use different port numbers.
  • D. No, because the only port you can expose is port number 443.
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
mc2301
2 months ago
Multi-port Services For some Services, you need to expose more than one port. Kubernetes lets you configure multiple port definitions on a Service object. When using multiple ports for a Service, you must give all of your ports names so that these are unambiguous. For example: apiVersion: v1 kind: Service metadata: name: my-service spec: selector: app.kubernetes.io/name: MyApp ports: - name: http protocol: TCP port: 80 targetPort: 9376 - name: https protocol: TCP port: 443 targetPort: 9377
upvoted 2 times
...
miskill
2 months, 1 week ago
Selected Answer: B
B is correct: C suggests that only different port numbers are required, but it overlooks the need for a unique name to avoid confusion and conflicts, especially when multiple ports are involved. Therefore, B is correct because, in addition to different port numbers, a unique name for each port is required.
upvoted 2 times
...
miskill
2 months, 3 weeks ago
Selected Answer: C
ist is correct
upvoted 1 times
...
hovnival
7 months, 2 weeks ago
Selected Answer: C
Copilot says C
upvoted 2 times
...
pulsefire
9 months ago
Selected Answer: C
should be C
upvoted 2 times
...
omerco61
9 months, 3 weeks ago
Option B is incorrect because, while you can name the ports for clarity, it is not a strict requirement. Correct C
upvoted 2 times
...
3c9bc24
11 months, 1 week ago
Isn't the correct answer C? I don't think it requires a name for each port
upvoted 2 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 ...