When is it appropriate for officers to use deadly force?

When is it appropriate for officers to use deadly force?