The process of ATP formation is phosphorylation.
The conversion of \(\text{3-BiPGA}\) to 3-phosphoglyceric acid (PGA), is an energy-yielding process; this energy is trapped by the formation of ATP. Another ATP is synthesized during the conversion of PEP to pyruvic acid. While the formation of glucose-6 phosphate from glucose uses ATP. Hence, in the process of glycolysis, there is a net gain of 2 ATP molecules.
So, the correct answer is "option D"