Hi,
Welcome to Microsoft Q&A community forum!
in the case of this question, not having the onfailure option, the correct answer is always, because it is the default setting when no other restart policy is configured.
you have to see which answer among those provided is the best
Hope this helps
Cheers
Luca
Please "Accept as Answer" and Upvote if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues