Correct option is A
• The sentence expresses a present situation after continuous action.
• Present perfect continuous → result in present
• So simple present “need” is correct.
• Correct sentence:
I have been studying for the past 2 hours. I need rest.
Meanings of other options:
• have needed – incorrect tense
• will be needing – future
• needed – past