SindhuCloudSQL-Concepts Flashcards
What are the main benefits of using Cloud SQL as a managed service?
The main benefits include automated updates, patching, backups, and failover, which eliminate the need for manual database management. This ensures better reliability, security, and availability of the database services.
Which database engines are supported by Cloud SQL?
Cloud SQL supports MySQL, PostgreSQL, and SQL Server.
How does Cloud SQL ensure data encryption?
Cloud SQL ensures data encryption both at rest and in transit, using various encryption protocols and technologies such as SSL/TLS for data in transit and AES-256 for data at rest.
What are the key features of Cloud SQL’s backup system?
Cloud SQL provides automated daily backups as well as on-demand backups. This ensures that data can be restored to a previous state in case of data loss or corruption.
Explain the high availability feature in Cloud SQL.
Cloud SQL offers high availability through automatic failover. This means that if the primary instance fails, a standby instance is automatically promoted to primary, ensuring minimal downtime.
What types of network connectivity options are available in Cloud SQL?
Cloud SQL offers network connectivity via private IP or public IP with SSL/TLS encryption. This provides secure and flexible options for connecting to the database.
Describe the VM-based instance in Cloud SQL.
A VM-based instance in Cloud SQL runs on a virtual machine with a persistent disk. This setup provides scalable and durable storage for database operations.
What is the significance of a static IP in Cloud SQL?
A static IP ensures consistent network configurations and simplifies firewall management. This is important for applications that need a stable IP address to connect to the database.
Remove - What are the differences between the Enterprise Edition and Enterprise Plus Edition in Cloud SQL?
The Enterprise Edition provides a balance of performance, availability, and cost, while the Enterprise Plus Edition offers enhanced performance and availability, improved read/write performance, and automatic tuning for more demanding applications.
Remove - How can databases be managed in Cloud SQL?
Databases can be created and deleted via the Cloud Console or API. Integration with Identity and Access Management (IAM) allows for fine-grained access control and management of user permissions.
What factors influence the pricing of Cloud SQL?
Pricing is based on the amount of storage, the number of CPUs, the memory allocated, network traffic, and the use of static IP addresses.
How are system updates handled in Cloud SQL?
System updates and configurations are managed by Google Cloud. Updates can be user-initiated or automated to ensure that the system remains up-to-date with the latest features and security patches.
What features are specific to MySQL in Cloud SQL?
Cloud SQL for MySQL provides managed backups, patching, and failover. Data is encrypted at rest and in transit, and replication options include intra-zone and inter-zone with automatic failover.
Remove - Which features are not supported in MySQL on Cloud SQL?
Unsupported features include the Federated Engine, Memory Storage Engine, and certain plugins that are not compatible with the managed environment.
What versions of PostgreSQL are supported by Cloud SQL?
Cloud SQL supports PostgreSQL versions 9.6, 10, 11, 12, and 13.
Remove- Name some of the PostgreSQL extensions supported by Cloud SQL.
Supported extensions include PostGIS for geographic data, PLV8 for JavaScript support, and pg_stat_statements for query statistics.
Describe the high availability feature in PostgreSQL on Cloud SQL.
High availability is achieved through automatic failover with synchronous replication, which ensures minimal data loss during failovers.
Remove - What are the best practices for scheduling maintenance windows in Cloud SQL?
Schedule maintenance windows during off-peak times to minimize the impact on database operations and ensure that updates do not interfere with critical workloads.
How can read replicas improve performance in Cloud SQL?
Read replicas can offload read operations from the primary instance, distributing the load and improving overall performance. They are especially useful for read-heavy applications.
Remove - Why is it important to avoid operation overlaps in Cloud SQL?
Avoiding overlaps between long-running operations, backups, and maintenance periods ensures that performance is not degraded and reduces the risk of conflicts that can cause failures or delays.
What are the best practices for monitoring CPU and memory usage in Cloud SQL?
Regularly monitor CPU and memory usage through Cloud Monitoring tools. Set up alerts for high utilization and investigate any anomalies promptly to prevent performance degradation.
How can instances be scaled in Cloud SQL?
Instances can be scaled vertically by adding more CPUs and memory, or horizontally by adding read replicas to distribute the load and improve performance.
Why is horizontal scaling preferred for managing smaller instances in Cloud SQL?
Horizontal scaling allows for better resource management by distributing the load across multiple smaller instances rather than relying on a single large instance. This can lead to improved performance and fault tolerance.
What is the role of connection pooling in Cloud SQL?
A connection pool is a cache of database connections that are shared and reused to improve connection latency and performance. When your application needs a database connection, it borrows one from its pool temporarily; when the application is finished with the connection, it returns the connection to the pool, where it can be reused the next time the application needs a database connection.Connection pooling manages database connections efficiently, reducing the overhead of establishing and closing connections and improving application performance.