its basically google you are talking about here because it is a google product… think of it like the google version of Amazon Web Services (AWS)
for security there are rules and authentication that you just need to set up. and along with the database it comes with a cloud storage (firestore) for photos and videos if you need them. it also has built-in persistence( which simply means data can still be accessed even when offline as long as you already loaded it )