A police officer is typically a general-purpose law enforcement officer. ... A sheriff is an elected position and is usually a ceremonial officer that meets certain needs within a county. A U.S. Marshal is a much more specific job. As a marshal, you provide security for courts at the local, state, and federal level.