I want to hang two shelves in the laundry room above the washer and dryer. The shelves are 2x12's that are 60" long. I bought a pair of heavy duty brackets (11 5/8" x 8 1/4") rated to 1000 lbs per pair. My plan is to use 2 brackets per shelf and secure them to the studs. I'll use 6 x 1 1/4" interior screws to attach the shelf to the bracket. I'm at a loss for what fastener to use to attach the brackets to the studs. I have 1/4-2 3/4" exterior Power Pro screws. I'm worried these might be too long. Maybe I should use 1/4-2 1/4" screws instead. The bracket is 1/8" and the drywall is 1/2".
My main questions are, how do I choose the right fastener? Also, does this plan make sense? The previous shelves fell down recently (the previous owners hung them with drywall anchors), and I have a feeling my brackets are overkill, but I want to avoid any crashes in the future for us or future owners.
EDIT: I hung the shelves. 1/4-2" lag screws into studs with 3/32" pilot holes. 3 lag screws per bracket. Brackets are rated to 1000 lbs. per pair. I connected the shelf to the brackets with 1-1/4" screws. I even hung on them for good measure and everything looked good.
Thank you to everyone for your advice! It was very helpful. Picture of installed shelves is below.