exam questions

Exam KCNA All Questions

View all questions & answers for the KCNA exam

Exam KCNA topic 1 question 161 discussion

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

Which of these is a valid container restart policy?

  • A. On login
  • B. On update
  • C. On start
  • D. On failure
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
shahy0
4 days, 21 hours ago
Selected Answer: D
In Kubernetes, a container restart policy defines the conditions under which a container should be restarted. There are three valid restart policies for containers in Kubernetes: Always: The container will always be restarted if it stops, regardless of the exit status. OnFailure: The container will be restarted only if it exits with a non-zero exit status (indicating a failure). Never: The container will not be restarted, regardless of the exit status. The valid container restart policies in Kubernetes are Always, OnFailure, and Never. The correct answer, OnFailure, specifies that the container will be restarted only if it exits with a non-zero exit status, indicating a failure.
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago