Intrigued by the art of cloud architecture? Discover how to design, develop, and manage robust, secure, scalable, and dynamic solutions on Google Cloud as you prepare for the Professional Cloud Architect exam!
Block storage in Google Cloud, like Persistent Disks, provides durable storage volumes for virtual machines. A key relationship exists between a disk's capacity and its performance limits, measured in IOPS (operations per second) and throughput (data transferred per second). For many disk types, these performance limits scale automatically with the size of the disk; choosing a larger disk generally provides higher performance. Hyperdisk offers advanced flexibility by allowing you to set IOPS and throughput independently from capacity, which is useful for fine-tuning performance for specific workloads.
Choosing where to allocate storage involves a trade-off between cost and data protection. Zonal Persistent Disks are stored in a single data center zone and are more cost-effective. Regional Persistent Disks provide higher durability by using synchronous replication across two zones within a region, protecting your data if one zone fails. The choice depends on your application's disaster recovery needs. To ensure resources are available during a recovery, you can use capacity reservations to lock in assured resources in a specific zone.
For high-utilization environments, Hyperdisk Storage Pools let you aggregate block storage capacity for multiple virtual machines in a zone. This helps ensure capacity is ready when needed. Regular snapshots provide incremental backups of your disks, protecting against data loss. Combining snapshots with regional replication and capacity reservations forms a robust strategy for meeting recovery time objectives and maintaining system stability.
Google Cloud's managed database services, including Cloud SQL, Spanner, and Bigtable, handle much of the underlying infrastructure management. These services offer built-in tools for scaling storage to support fluctuating data volumes. A primary tool is storage auto-resize, which automatically increases a database's disk capacity when it is nearly full, helping to prevent service interruptions due to lack of space.
For databases with high-performance demands, you can provision specific IOPS and throughput levels, often using Hyperdisk options. Hyperdisk Balanced suits general workloads, while Hyperdisk Extreme is for the highest performance needs. High availability is achieved through data replication; for example, Spanner can use multi-region configurations, and Cloud SQL can use HA-configured instances that automatically fail over to a standby in another zone if the primary fails.
To maintain system stability, you must manage provisioned throughput to ensure the database can handle the required request rate. Reserving sufficient throughput prevents errors and service degradation. Cost efficiency is managed by selecting appropriate storage and using Object Lifecycle Management policies. These policies can automatically move older, less-accessed data to cheaper storage tiers over time, optimizing long-term resource utilization.
Cloud Storage offers multiple storage classes designed for different data access patterns. Standard storage is for frequently accessed data. Nearline, Coldline, and Archive classes are for data accessed less often, with progressively lower storage costs but higher costs to retrieve the data. You also choose a location type: Regional (single area, low latency), Dual-region (two regions), or Multi-region (broad geographic distribution). Multi-region offers the highest availability against large-scale disasters but at a higher cost.
Object Lifecycle Management is a policy engine that automates moving objects between storage classes based on rules you set, such as the object's age or last access time. This automation reduces manual effort and ensures that data automatically transitions to more cost-effective storage classes as it ages or becomes less active, optimizing spending.
The core trade-off in object storage allocation is between performance/access cost and monthly storage cost. Colder storage classes have very low monthly fees but charge more for data retrieval. Your data access patterns dictate the optimal class. Google Cloud ensures data durability by replicating your objects across multiple physical zones automatically; choosing a multi-region location type further protects your data by storing copies across distinct geographic areas.
Prepare and test your skills
Prepare and test your skills
Zonal Persistent Disks are stored in a single data center zone and are more cost-effective, while Regional Persistent Disks provide higher durability by using synchronous replication across two zones within a region to protect data if one zone fails.
You should use Hyperdisk when you need advanced flexibility to set IOPS and throughput independently from capacity, allowing fine-tuning for specific workloads, whereas standard Persistent Disks have performance limits that scale automatically with disk size.
Object Lifecycle Management is a policy engine that automates moving objects between storage classes based on rules like object age or last access time, which reduces manual effort and ensures data transitions to more cost-effective storage classes as it ages or becomes less active.
An enterprise analytics application deployed in Google Cloud processes financial transaction logs. The compliance team mandates that all log data must strictly adhere to data residency regulations and never leave the europe-west3 (Frankfurt) location.
The data access pattern is characterized as follows:
Which Cloud Storage bucket configuration and lifecycle management strategy should you implement to minimize costs while complying with all requirements?