Cloud-based or local network storage
Please refer to CiviCRM documentation, section on installation here https://docs.civicrm.org/sysadmin/en/latest, CiviCRM database is stored on your hard drive or local network depending on your setup