The district attorney decides when to defer prosecution. But if that deferral includes probation under G.S. 15A-1341(a1), the court has a role in the process—including what to do in response to a violation of the deferred prosecution agreement. Sometimes the State and the judge are on the same page. Sometimes they aren’t.