What does it take to be a police officer?

I don’t see the police around everyday. Only once a while a small glance of their car on the street passing by. It was on the news that a police officer was killed by intention. The homeless are back on the street. The case with the homeless is not the police’s fault.