Either the prosecuting attorney or a defendant may challenge the array of grand jurors on the ground that a grand jury was not selected, drawn or summoned in accordance with law and may challenge an individual grand juror on the ground that the juror is not legally qualified. Challenges shall be made before the administration of the oath to the jurors and shall be tried by the circuit court.
SDCL 23A-5-3