Thank you, @Deshmukh, Vijit , for reaching out to the Microsoft Q&A platform. Happy to answer your question.
Azure Application Gateway helps in managing the traffic directed towards users’ web applications. In addition, it has autoscaling features that help in deploying and as it is integrated into Azure is more secure. The header and Body of every request are checked against the rule Web Application Firewall (WAF) to determine if the request is valid or the security threat. Valid requests are routed to the backend pool, and invalid requests are blocked.
If you want to secure your application then you need to consider many other aspects (not just application gateway). Here is an article I wrote which explains the cloud chain kill model and the tools we can use to prevent them.
https://www.linkedin.com/pulse/build-healthy-secure-environment-azure-ravi-kanth-koppala/
----------
Please "Accept as Answer" and Upvote if any of the above helped so that, it can help others in the community looking for remediation for similar issues.