0
0
GCPcloud~20 mins

Creating a Cloud SQL instance in GCP - Practice Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Cloud SQL Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Configuration
intermediate
2:00remaining
Identify the correct gcloud command to create a MySQL Cloud SQL instance

You want to create a MySQL Cloud SQL instance named my-instance in the us-central1 region with 10GB storage. Which gcloud command will do this correctly?

Agcloud sql instances create my-instance --database-version=POSTGRES_13 --tier=db-f1-micro --region=us-central1 --storage-size=10
Bgcloud sql instances create my-instance --database-version=MYSQL_8_0 --tier=db-f1-micro --region=us-central1 --storage-size=10
Cgcloud sql instances create my-instance --database-version=MYSQL_5_7 --tier=db-n1-standard-1 --region=us-central1 --storage-size=10
Dgcloud sql instances create my-instance --database-version=MYSQL_8_0 --tier=db-f1-micro --region=us-east1 --storage-size=20
Attempts:
2 left
💡 Hint

Check the database version, region, and storage size carefully.

Architecture
intermediate
2:00remaining
Choose the best architecture for high availability with Cloud SQL

You want to deploy a Cloud SQL instance that remains available even if one zone fails. Which architecture option achieves this?

ACreate a single Cloud SQL instance in one zone with automated backups enabled.
BCreate two separate Cloud SQL instances in different regions and manually switch between them.
CCreate a Cloud SQL instance with high availability (HA) enabled, which creates a primary and standby instance in different zones.
DCreate a Cloud SQL instance with read replicas in the same zone.
Attempts:
2 left
💡 Hint

Think about automatic failover and zone redundancy.

security
advanced
2:00remaining
Determine the correct way to restrict access to a Cloud SQL instance

You want to allow only your Compute Engine VM instances in the default network to connect to your Cloud SQL instance. Which method correctly restricts access?

AAdd the VM instances' internal IP addresses to the Cloud SQL instance's authorized networks.
BDisable all authorized networks and allow connections from any IP.
CAdd the VM instances' external IP addresses to the Cloud SQL instance's authorized networks.
DEnable the Cloud SQL instance's private IP and ensure the VM instances are in the same VPC network.
Attempts:
2 left
💡 Hint

Consider private IP connectivity within the same network.

service_behavior
advanced
2:00remaining
Predict the behavior when deleting a Cloud SQL instance with automated backups enabled

You delete a Cloud SQL instance that has automated backups enabled. What happens to the backups?

AAutomated backups are retained for the backup retention period and can be used to restore a new instance.
BBackups are converted to manual backups and remain indefinitely.
CAll automated backups are deleted immediately along with the instance.
DBackups are archived to Cloud Storage and billed separately.
Attempts:
2 left
💡 Hint

Think about backup retention policies after instance deletion.

Best Practice
expert
2:00remaining
Select the best practice for managing Cloud SQL instance maintenance windows

You want to minimize downtime during maintenance for your Cloud SQL instance. Which approach follows best practice?

AConfigure the maintenance window to a low-traffic period when your application usage is minimal.
BSet the maintenance window to a random time during the day to avoid peak hours.
CDisable maintenance windows to prevent any automatic updates or restarts.
DSchedule maintenance windows during peak hours to ensure quick updates.
Attempts:
2 left
💡 Hint

Consider when your users are least active.