Biodiversity is the variation in living organisms from all sources such as terrestrial and aquatic ecosystems. It also involves the interaction of the biotic and abiotic factors with each other. Biodiversity is responsible for maintenance of balance in the ecosystem. Thus the correct answer is option D.