Objective

Configure cloud databases with IaC, scaling, and monitoring.

Tools & Technologies

  • Azure SQL
  • AWS RDS
  • Terraform

Key Commands

terraform apply -auto-approve
az sql db update --tier GeneralPurpose
aws rds modify-db-instance --db-instance-identifier mydb

Lab Steps

01
Terraform Deployment

Deploy RDS/Azure SQL with Terraform for reproducible infrastructure.

02
Read Replicas

Configure read replicas for horizontal scaling.

03
Automated Backups

Set backup retention and automated snapshot policies.

04
Performance Insights

Enable and analyze AWS RDS Performance Insights.

Challenges Encountered

  • Terraform state drift when manual changes are made in portal
  • Read replica lag during write bursts

Key Takeaways

  • Always encrypt databases at rest and in transit
  • Use connection pooling (PgBouncer/ProxySQL) for high-concurrency apps