The path between Hogsmeade to Hogwarts was patrolled by the same group of recruits that Albus had once been a part of. Other guards ensured that access to the castle was only granted to high-ranking officials from the Ministry.