The correct form of the verb is Did, sleep.
The sentence in the Past Simple Tense in Interrogative form.
Did you sleep in the tent in 2024?
Ты спал в палатке в 2024 году?