I do not use socket head screws such as shown in your link for exhaust systems. I'm not a fan of using that type of fastener in an alloy cylinder head as I believe it increases the risk of stripping the threads in the head due to the wear and tear of install/removal each time the exhaust is removed. I might feel differently if I could reach the screws with a torque wrench. If the heads have had thread inserts installed then I would say those screws are fine.
I prefer to use studs, similar to the factory setup, but in a high strength stainless steel. ARP makes racing quality fasteners for a variety of applications.
Some links:
For some light reading, check out the ARP catalog
https://arpcatalog.com/94/Better to buy their products from a retailer, as ARP itself really isn't well set up for small orders.
And for purchasing the studs and nuts, check out Pegasus Auto Racing Supplies:
https://www.pegasusautoracing.com/productdetails.asp?RecID=23074 And:
https://www.pegasusautoracing.com/productselection.asp?Product=MS21042You can also find ARP products on Amazon and other online retailers.
Edit: Forgot about Totally Stainless!, They are a great source for all kinds of stainless fasteners: (click on their .pdf catalog to get an overview of their offering. They also have paper catalogs.
https://shop.totallystainless.com Online presence is dated, though.
I'm not certain about the stud length, but can check later tomorrow to see what I actually used.