Which of the following sentences shows correct capitalization?

The district attorney was upset when Judge Morales dismissed the case.
The District Attorney was upset when judge Morales dismissed the case.
The district attorney was upset when judge Morales dismissed the case.
The District Attorney was upset when Judge Morales dismissed the case.
please help