Cloud Datastore Flashcards

1
Q

Cloud Datastore decsription

A

Highly-scalable NoSQL managed document database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Key points of Cloud Datastore (5)

A
  1. Managed service - serverless
  2. Document database
  3. Accessed via REST API in Compute Engine, Kubernetes Engine or App Engine
  4. Automatically partitions data and scales up or down as needed
  5. Supports transactions, indexes and SQL-like queries (using GQL)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Cloud Datastore suited for?

A

Applications that demand high scalability, structured data and don’t need strong consistency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Key points of a document database (6)

A
  1. Does not use relational model and does not require fixed structure or schema
  2. Data organized into documents
  3. Documents are made up of key-value pairs called entities
  4. Entities do not need to have the same set of properties
  5. Allows for a flexible schema
  6. Does not support relational operations like joining tables or computing aggregates
  7. Kind is analogous to a table name
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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]

  1. it will create a folder using the date and time of the export
  2. the folder will contain a metadata file and a folder containing the exported data
  3. the metadata file is used when importing that data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What permission does someone doing a Cloud Datastore export need?

A

datastore.database.export

How well did you know this?
1
Not at all
2
3
4
5
Perfectly