How do I know if I need a food cottage permit or if I have to prepare food I am selling for my business in a certified commercial kitchen?

Should I elect to have my LLC taxed as an S Corp?