Which function do the stomata perform in photosynthesis?

Absorbing water
Gas exchange
Capturing light energy
Producing glucose

The stomata perform the function of gas exchange in photosynthesis. They allow the entry of carbon dioxide (CO2) into the leaf for use in the process of photosynthesis and the exit of oxygen (O2) as a waste product.