Bolts have grade markings on the heads. They look like tick marks molded into the heads. You will want to match those grades in your new bolts.
Grade 8 bolts are far stronger than grade 2, and more expensive.
Probably for your alternator, grade 5 is sufficient.