Which is a guarantee of the 6th amendment

A) a defendant has a right to have the media at trial.

B) a defendant has a right to wait years for a trial.

C) a defendant has a right to a private trial.

D) a defendant has the right to a lawyer at trial.