Which of the following did the Peace of Augsburg accomplish?

It set up the Spanish Inquisition to root out heresy.
It ended the Thirty Year’s War
It granted the Netherlands Independence from Spain
It allowed German rulers to choose the religion of their states .

It allowed German rulers to choose the religion of their states.