Homicide is justifiable when committed by peace officers and those acting by their command in their aid and assistance, under either of the following circumstances:
(a) In obedience to any judgment of a competent court.
(b) When the homicide results from a peace officer’s use of force that is in compliance with Section 835a.
(Amended by Stats. 2019, Ch. 170, Sec. 1. (AB 392) Effective January 1, 2020.)