September 28, 2022 at 10:24 AM As a legitimate reply.
There's no definitive answer, there's quite a significant number of ways a hacker could obtain a database. The most common being SQL injection and NoSQL injection. but this isn't very common for huge sites, and a lot of huge sites aren't even on SQL.