1 x 4mm screw. The one I used, with double sided tape on top in order to lighly fix the shelf. Good enough if you doesn't have much weight or zero cantilever.
1 x 4mm screw and 2 x 3,5mm screw. Probably a better call for secure project with cantilever.