Complete the code to create a backup of a Cloud Storage bucket.
gsutil [1] gs://my-bucket gs://my-backup-bucketThe gsutil rsync command synchronizes the contents of two buckets, making it suitable for backups.
Complete the code to create a snapshot of a Compute Engine disk.
gcloud compute disks snapshots create my-snapshot --disk=[1] --zone=us-central1-aThe --disk flag requires the name of the disk to snapshot, which is my-disk.
Fix the error in the Terraform code to enable multi-region replication for a Cloud Storage bucket.
resource "google_storage_bucket" "backup" { name = "my-backup-bucket" location = [1] force_destroy = true }
To enable multi-region replication, the bucket location must be set to a multi-region like US, not a single region like us-central1.
Fill both blanks to configure a Cloud SQL instance for high availability with failover replicas.
resource "google_sql_database_instance" "primary" { name = "primary-instance" database_version = "POSTGRES_14" region = [1] settings { availability_type = [2] } }
The region should be a valid GCP region like us-central1. For high availability, availability_type must be set to REGIONAL to enable failover replicas.
Fill all three blanks to define a Cloud DNS managed zone with private visibility for disaster recovery.
resource "google_dns_managed_zone" "private_zone" { name = [1] dns_name = [2] visibility = [3] }
The managed zone needs a name like private-zone-1, a DNS name ending with a dot like example.internal., and visibility set to private for internal use in disaster recovery.