Cloud Datastore Flashcards
1
Q
Cloud Datastore decsription
A
Highly-scalable NoSQL managed document database
2
Q
Key points of Cloud Datastore (5)
A
- Managed service - serverless
- Document database
- Accessed via REST API in Compute Engine, Kubernetes Engine or App Engine
- Automatically partitions data and scales up or down as needed
- Supports transactions, indexes and SQL-like queries (using GQL)
3
Q
What is Cloud Datastore suited for?
A
Applications that demand high scalability, structured data and don’t need strong consistency
4
Q
Key points of a document database (6)
A
- Does not use relational model and does not require fixed structure or schema
- Data organized into documents
- Documents are made up of key-value pairs called entities
- Entities do not need to have the same set of properties
- Allows for a flexible schema
- Does not support relational operations like joining tables or computing aggregates
- Kind is analogous to a table name
5
Q
How do you import/export Cloud Datastore data?
A
Done via shell only and data is stored in a bucket in Cloud Storage
6
Q
How do you export Cloud Datastore data via shell, and what files does it create?
A
gcloud datastore export –namespaces=”(default)” gs://[BUCKET]
- it will create a folder using the date and time of the export
- the folder will contain a metadata file and a folder containing the exported data
- the metadata file is used when importing that data
7
Q
What permission does someone doing a Cloud Datastore export need?
A
datastore.database.export