In AWS, if could you look at above picture, I understand that if any instance in subnet's attached to route table, is trying to hit the IP address between (10.0.0.0-10.0.255.255) should go to local, it should not go the Internet. Let's assume I have public IP address for my instance in public subnet of VPC, it is trying to hit the public IP address of external domain which has the ip address 10.0.0.5/32.
At that scenario, how routing happens, either to local or Internet?