Cloud SQL Flashcards

1
Q

Cloud SQL definition

A

Managed database service that provides MySQL, PostgreSQL and SQL Server databases

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

Key points of CloudSQL (4)

A
  1. Allows users to set up database without all the database administration tasks
  2. High Availability - manages replication and allows for automatic failover
  3. Suited for applications with consistent data structure (for databases that don’t need to scale horizontally)
  4. Scales vertically (by running on servers with more memory and CPUs)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What databases and versions does CloudSQL support?

A
  1. MySQL 5.6/5.7 up to 416GB RAM and 30TB data storage
  2. PostgreSQL up to 416GB RAM and 64 CPUs and 30TB storage
  3. SQL Server 416 GB RAM 64 CPUs 30 TB storage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you connect to Cloud SQL via shell?

A

gcloud sql connect [INSTANCE NAME] -user=[USERNAME]

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

How do you backup (on demand) Cloud SQL via shell?

A

gcloud sql backups create –async –instance [INSTANCE NAME]

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

How do you schedule automatic backup on Cloud SQL via shell?

A

gcloud sql instances patch [INSTANCE NAME] -backup-start-top [HH:MM]

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

Where is backup data stored for Cloud SQL?

A

In a bucket in Cloud Store.

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

How do you export Cloud SQL data via shell?

A

gcloud sql export [TYPE] {INSTANCE NAME] gs://[BUCKET]/[FILE NAME] –database=[DATABASE NAME]

You need to make sure that the service account can write to the bucket.

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

How do you import Cloud SQL data via shell?

A

gcloud sql import [TYPE] {INSTANCE NAME] gs://[BUCKET]/[FILE NAME] –database=[DATABASE NAME]

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