Where does denitrification happen?

at the roots of plants

in the air

in deep soil or anoxic aquatic sediment

all of the above