Is it mandatory for e-commerce operator to obtain registration

Yes. As per Section 24(x) of the CGST Act, 2017 the benefit of threshold exemption is not available to e-commerce operators and they are liable to be registered irrespective of the value of supply made by them.

(FAQ 3: E-COMMERCE)