Peace officer has 2 different meanings across 1 category:
Noun
an officer of the law
a civil law enforcement officer with a duty to maintain law and order, i.e. bylaw officer, police officer, sheriff, et cetera.