what are all the procedlural and substantive ways that a prosecutor and a defense attorney can resolve a case before it goes to a grand jury?

Peruse some of these articles:

http://www.google.com/search?q=pre+grand+jury+process&oq=pre+grand+jury+process&aqs=chrome..69i57.16217j0j9&sourceid=chrome&es_sm=93&ie=UTF-8#q=grand+jury+system&revid=1481553849

http://www.americanbar.org/groups/public_education/resources/law_related_education_network/how_courts_work/pleabargaining.html