what is IGW-internet default gateway and its significance?

Internet Gateway is a VPC component that allows the resources and components inside a VPC to connect to the internet. It serves as the target for internet-routable traffic in a VPC without which the VPC will not be able to connect with the internet

what is the role of routing table in VPC?

Route Tables are used within a VPC to direct (or route) the traffic to its required destination according to preset routes.

what is the difference between a security group and Routing table?

Security Group is a firewall that controls the inbound and outgoing traffic to an amazon service (like EC2, S3, EFS, etc.).
Route Tables are used within a VPC to direct (or route) the traffic to its required destination according to preset routes.

what is the concept called creating a snapshot and how it used to detach/attach ebs volumes?

The concept of creating a snapshot in the context of Amazon Elastic Block Store (EBS) volumes is essentially taking a point-in-time copy of the data on the volume. Snapshots themselves are not directly detached or attached to EC2 instances.
An EBS volume is created via a Snapshot and that volume is attached or detached from an instance as required.

what is loopback ip address and what is the use of loop back ip?

It is a special IP through which the computer can communicate with itself. Any IP that starts with 127.0.0.0/8 is a loopback address.
It can probably be used to diagnose connections, for example, you can create a web application and use loopback address to access it without connecting to a network. Or, you can type ping 127.0.0.1, which is generally used for connecting to yourself, and if it does not work, it means your network configurations are not setup properly.