The domain of a function is all values that the independent variable can assume.
In this case, the independent variable is the time t.
Since the time can't be negative, we have the condition t > 0.
Also, the height can't be negative as well, so we have:
Calculating the intersection of these two conditions, we have that the values of t need to be greater than 0 and less than or equal to 5.
Therefore the correct option is D.