The ecological niche of an organism is best described as:
A) The organism's habitat
B) Its tolerance level for all possible environmental factors it would potentially encounter
C) The geographic range of the organism
D) The specific role or function the organism plays in its ecosystem, including its interactions with other species and its use of resources