Correct option is D
The energy input for all ecosystems originates from the Sun. Solar energy drives photosynthesis in plants, which is the foundational process that supports all life in an ecosystem. Through photosynthesis, plants convert sunlight into chemical energy stored in glucose, which is then passed through the food chain as different organisms consume plants and each other. Thus, the Sun is the primary source of energy for nearly all ecosystems on Earth.
