Google ACE: Storage, Databases and Data Services — Study Guide

Part of the Google Associate Cloud Engineer — Study Guide. Practice with verified answers in the Google exam hub, or take timed practice tests on ExamRoll.io.

Overview

This section provides a practical, operations-focused reference for Google Cloud storage, databases, and analytical data services. It emphasizes configuration patterns, access control, durability mechanisms, performance and cost characteristics, and safe recovery practices. The goal is to help you decide which service to use for a given workload, understand the operational trade-offs, and anticipate common failure modes.

Cloud Storage design, access, lifecycle, and protection

Cloud Storage is durable, highly available object storage for unstructured data and backups.

Access control and sharing:

Failure modes and mitigation:

Useful commands:

Block and file storage for compute workloads

Choose storage by access pattern, performance needs, and durability requirements for Compute Engine and GKE.

Failure considerations:

Managed databases and data services

Cloud SQL (managed MySQL, PostgreSQL, SQL Server):

Cloud Spanner:

Firestore and Bigtable:

Memorystore:

BigQuery:

Data movement, migration, validation, and operations trade-offs

Migration and transfer:

Performance, availability, capacity, and cost trade-offs:

Troubleshooting and safe recovery:

Practical Problem Scenario

Contoso Retail is consolidating backups and analytics data while hardening access controls and enabling point-in-time recovery for its transactional systems. They need to: store application backups with automated tiering, provide short-lived file sharing to third parties, enable PITR for a small relational workload, and estimate analytics query costs before execution.

Approach:

  1. Create a regional Cloud Storage bucket with UBLA, retention, and lifecycle.

    • Command: gcloud storage buckets create gs://contoso-backups –location=us-central1 –uniform-bucket-level-access –default-storage-class=STANDARD gcloud storage buckets update gs://contoso-backups –retention-period=365d gsutil lifecycle set lifecycle.json gs://contoso-backups
    • Rationale: UBLA centralizes authorization in IAM and improves auditability. A one-year retention prevents accidental deletion. Lifecycle transitions backups to Coldline after 90 days and deletes them at expiry to control cost.
  2. Grant write-only access for backup jobs via a dedicated service account.

    • Command: gcloud storage buckets add-iam-policy-binding gs://contoso-backups –member=serviceAccount:backup-writer@contoso.iam.gserviceaccount.com –role=roles/storage.objectCreator
    • Rationale: storage.objectCreator prevents metadata tampering and read-back of sensitive backups, adhering to least privilege.
  3. Share a sensitive backup with a vendor for four hours using a signed URL without distributing keys.

    • Command: gcloud storage sign-url gs://contoso-backups/db-dump-2024-09-30.sql.gz –duration=4h –impersonate-service-account share-signer@contoso.iam.gserviceaccount.com
    • Rationale: Time-bounded, identity-less access avoids creating external identities or long-lived secrets. Impersonation uses centralized KMS-backed signing and eliminates leaked key risks.
  4. Enable Cloud SQL backups and PITR for the order database.

    • Command: gcloud sql instances patch orders-sql –backup-start-time=02:00 –enable-bin-log
    • Rationale: Automated backups plus binary/WAL logging provide restore points to any second within the retention window, protecting against logical corruption and operator error.
  5. Test recovery by restoring to a new instance and validating data before cutover.

    • Command: gcloud sql backups list –instance=orders-sql gcloud sql instances restore-backup orders-restore –backup-id=LATEST –destination-instance=orders-restore
    • Rationale: Restoring to a separate instance avoids impacting production and allows validation via checksums and sample queries before any DNS or application-level switch.
  6. Estimate BigQuery query cost with a dry run and optimize with partitioning.

    • Command: bq query –use_legacy_sql=false –dry_run=true ‘SELECT COUNT(*) FROM contoso.analytics.sales WHERE sale_date >= “2026-01-01”’
    • Rationale: Dry runs surface bytes to be scanned; ensuring sale_date is a partition column with a bounded predicate reduces scanned bytes and controls on-demand costs.
  7. Monitor and audit access.

    • Steps:
      • Enable Data Access logs for Cloud Storage and BigQuery.
      • Configure Cloud Monitoring alerts on Cloud SQL connections, disk usage, and backup failures.
    • Rationale: Data Access logs provide object-level read/write visibility for compliance. Proactive alerts shorten MTTR and ensure backups and PITR remain effective.
  8. Document failure modes and runbooks.

    • Steps:
      • Record procedures for object version restores, signed URL revocation, Cloud SQL PITR, and BigQuery table recovery using time travel.
    • Rationale: Clear, tested runbooks reduce operational risk during incidents and standardize safe recovery practices across teams.

VPC Networking · All domains · Deployment

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Google →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product