Fair, I actually think the YOG qualification should work like this:
1) Every NOC gets 4 athletes to use in any event they want - 824 Athletes
2) Every Individual sport gets 32 male and 32 female quotas to distribute as they wish - 1,664 Athletes
3) Beach Volletball gets 32 teams per gender - 128 athletes
4) Basketball gets 20 teams per gender - 160 athletes
5) Beach Handball gets 12 teams per gender - 240 athletes
6) Field Hockey gets 12 teams per gender - 216 athletes
7) Futsal gets 12 teams per gender - 240 athletes
8) Rugby Sevens gets 6 teams per gender - 144 athletes
9) The IOC will allocate the last 884 quotas to make sure that all individual events have 16 entries and pair events have 8
Total Athletes - 4500