It depends on the county, and in the USA, the state. In some states the district attorney is an elected official. He or she is responsible for representing the state.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.