Those figures are from Israeli sources[1]. We must be careful using figures from active combatants to assess something. To paraphrase an earlier post of yours [2] "All of those come from Israel, is that a source you trust?"
Was any military action "justified"
Yes. I don't think many people would have been upset with extrajudicial assassinations by the IDF in Gaza. But displacing 1.7 million people[3] is disproportionate.
[1] https://en.wikipedia.org/wiki/2023_Hamas-led_attack_on_Israe...
[2] https://news.ycombinator.com/item?id=38453490
[3] https://www.unrwa.org/resources/reports/unrwa-situation-repo...