An adverb serves to modify a verb.
In this case, our verb is clearly "whined."
Simply put, B and C are incorrect because puppy is not a verb.
As for A, "my little puppy" doesn't modify the verb, it's the subject of the verb.
The correct answer is D. "Throughout the thunderstorm" modifies "whined."