If you are using an APS-C camera or a FF above 30MP, at f/10 you are already suffering from diffraction. You really want to be between f/5.6 and f/8. Of course, composition is still the most important thing, so if you need the depth of field you need the depth field.
As for the exposure you can just use aperture priority with your ISO set to the base ISO. On a Nikon camera you'd actually want to be at 64. If the scene doesn't have challenging highlights then going under the base ISO or overexposing will provide even better results.