Schools and COVID: How is it determined who should quarantine?

How do health departments and schools determine who should quarantine when someone within the school tests positive for COVID-19