Pre PYQs GS

UPSC Prelims 2022 GS question 43

"If rainforests and tropical forests are the lungs of the Earth, then surely wetlands function as its kidneys." Which one of the following functions of wetlands best reflects the above statement ?