UV photons and low-energy electrons play an important role in the evolution of various molecules in the interstellar medium (ISM). Here, we examined the product molecule formation as a result of irradiation of 193 nm photons and 6.4 eV electrons (same energy under identical laboratory conditions) on D 2 O|CH 4 + ND 3 |D 2 O sandwiched films deposited on Ru(0001) substrate at 25 K in ultrahigh vacuum as a model for processes in the ISM. Temperature-programmed desorption spectra performed following the irradiation revealed the signature of hydrazine and formamide product molecules. These molecules were, however, formed exclusively following the photons' irradiation. These results were compared with the products obtained from a D 2 O|CH 4 |D 2 O sample without ammonia, where deuterated formaldehyde was the dominant product, formed also by photons only. Our results indicate that the photon-induced activation of the cofrozen molecules within D 2 O occurs via direct (partial) dissociation of the host and embedded molecules, followed by sample annealing. The electron-induced activation occurs through a direct dissociative electron attachment mechanism.