Enterprise Database Management with Cloud SQL & Cloud Spanner

ADVANCED
160 minutes
5 tasks

In this advanced lab, you will simulate the database needs of a growing enterprise that requires high availability, scalability, and disaster recovery. You'll deploy and manage a Cloud SQL instance for transactional operations and integrate it with Cloud Spanner for global consistency and high throughput analytics. You will address access management, performance optimization, and cost efficiency while ensuring data safety through comprehensive backup and recovery strategies.

Scenario

A multinational e-commerce company anticipates a 200% increase in customer interactions and needs to ensure seamless database performance. Current operations require 99.99% uptime and capacity to handle a thousand transactions per second across multiple geographies. Implementing a Cloud SQL database for real-time transactions and leveraging Cloud Spanner for analytics gives the company the scalability and reliability it seeks.

Learning Objectives

  • Set up and configure Cloud SQL with high availability.
  • Integrate Cloud SQL with Cloud Spanner for analytics.
  • Implement IAM policies for secure database access.
  • Optimize database performance and cost.
  • Design a scalable database backup and recovery solution.

tasks (5)

task 1: Create a high-availability Cloud SQL instance

45 min

task 2: Integrate Cloud SQL with Cloud Spanner via a data pipeline

60 min

task 3: Implement IAM roles for database access control

30 min

task 4: Optimize database performance with query tuning and index management

40 min

task 5: Establish a backup and recovery strategy with point-in-time recovery

50 min

Prerequisites

  • Understanding of Cloud SQL and Cloud Spanner concepts
  • Basic IAM roles and permissions knowledge
  • Familiarity with Cloud SQL Insights for monitoring

Skills Tested

Setting up and managing Cloud SQL with HAIntegrating Cloud SQL with Cloud Spanner for analyticsImplementing IAM roles for secure database operationsTuning database performance with query and index optimizationDesigning backup and recovery strategies with PITR