🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Data Management / Database Administration › Cloud Storage for Database Administrators › Lesson 5
TEC-DATA86-08 · Lesson 5 · 14 clock hours · lab

Cloud Backup, Point-in-Time Restore, and Geo-Replication

Objective. Students will configure automated backup policies and geo-redundant replication on a managed cloud database, then execute and verify a point-in-time restore to a specific timestamp.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

Cloud Backup, Point-in-Time Restore, and Geo-Replication

A database administrator's most important job is making sure data can be recovered when something goes wrong. Cloud platforms provide powerful tools for backup, restore, and replication, but those tools only protect you if they are configured correctly and tested regularly. This lesson walks through the core concepts and hands-on skills you need to protect databases on AWS and Azure.

Automated Backups and Retention

AWS RDS automatically takes daily snapshots of your database instance and captures transaction logs continuously. Together, these allow point-in-time restore (PITR), meaning you can recover the database to any second within your retention window. The retention period is set in whole days; AWS supports a range from 1 to 35 days for automated backups. Setting retention to 0 disables automated backups entirely, which is dangerous for any production workload and should be avoided.

When you enable automated backups, RDS stores both the base snapshot and the transaction logs in Amazon S3 in the same region. You must also consider whether those backups are themselves replicated across availability zones or regions — regional storage alone does not protect against a full regional outage.

Azure SQL Database uses a similar model. The platform automatically takes full, differential, and transaction-log backups and retains them for 7 days by default, configurable up to 35 days on most tiers. Azure stores backups in geo-redundant storage (GRS) by default, meaning copies are automatically replicated to a paired region.

Point-in-Time Restore

PITR lets you spin up a new database instance restored to a specific timestamp. On AWS RDS, you initiate a PITR from the console or CLI by specifying the source DB instance and the target restore time. The restored instance is a separate resource — your original instance keeps running. This is critical: PITR does not overwrite the current database. After restore, you must verify the recovered data, then redirect application connection strings to the new instance if you intend to use it as the new primary.

On Azure SQL Database, PITR is available through the portal, CLI, or REST API. You select the database, choose "Restore," and enter the target point in time. The result is a new database on the same or a different logical server.

Always record the exact timestamp of the event you are recovering from — for example, the time a table was accidentally dropped. Choose a restore time a few minutes before that event. After restore, run a query to confirm the recovered object exists before treating the operation as complete.

Recovery Objectives: RTO and RPO

Recovery Point Objective (RPO) is the maximum amount of data loss a business can accept, measured in time. If RPO is 1 hour, the business can tolerate losing up to 1 hour of transactions. Your backup frequency and log shipping interval must be shorter than the RPO.

Recovery Time Objective (RTO) is the maximum time allowed to restore service after a failure. If RTO is 4 hours, the database must be back online within 4 hours of an incident. PITR restore time depends on database size and may take longer than expected — always test restores in a non-production environment and time them with a lab timer or equivalent tool so you have real data for RTO planning.

When selecting backup and replication configurations, start with the business's stated RPO and RTO, then work backward to the required settings.

Multi-AZ Deployment on AWS RDS

Multi-AZ is a high-availability feature, not a backup feature. When enabled, RDS synchronously replicates data to a standby instance in a different Availability Zone within the same region. If the primary fails, RDS automatically fails over to the standby — typically within one to two minutes. This reduces downtime but does not protect against logical errors such as accidental table deletion, because the deletion is replicated to the standby immediately. For logical error recovery, you still need PITR.

Active Geo-Replication on Azure SQL Database

Active geo-replication allows you to create up to four readable secondary replicas in different Azure regions. Replication is asynchronous, so there is a small lag between the primary and secondary. This lag represents your practical RPO for a geo-replication scenario.

To initiate a manual failover from the portal, navigate to the geo-replication blade of your primary database and select the secondary you want to promote. Azure promotes the secondary to primary and demotes the original primary to a secondary role. After failover, applications must reconnect using the updated connection string for the new primary. On Azure SQL, if you use a failover group, the DNS endpoint automatically redirects connections, simplifying application reconfiguration.

Safety and Operational Discipline

While cloud DBA work does not involve physical electrical hazards requiring lockout/tagout, it carries its own critical safety practices. Always work in a non-production environment when testing restores or failovers; never execute failover commands against a live production instance without a formal change-control approval. Protect credentials: never embed AWS access keys or Azure connection strings in screenshots, scripts committed to shared repositories, or lab submission documents. Use IAM roles and Azure Managed Identity instead of hard-coded credentials. Verify that backup encryption is enabled — both AWS RDS and Azure SQL Database support encryption at rest, and this should be confirmed before a database is moved to production.

Key terms8

Point-in-Time Restore (PITR)A recovery method that allows a database to be restored to the exact state it was in at a specific timestamp, using a combination of base snapshots and transaction logs.
Recovery Point Objective (RPO)The maximum amount of data loss, measured in time, that a business can accept after a failure; it determines how frequently backups or log shipping must occur.
Recovery Time Objective (RTO)The maximum duration of time a business can tolerate for a system to be unavailable after a failure; it drives decisions about failover automation and restore speed.
Multi-AZ DeploymentAn AWS RDS high-availability configuration that synchronously replicates data to a standby instance in a different Availability Zone, enabling automatic failover with minimal downtime.
Active Geo-ReplicationAn Azure SQL Database feature that asynchronously replicates a database to up to four readable secondary replicas in different Azure regions for disaster recovery and read scale-out.
Retention PeriodThe number of days that automated backup snapshots and transaction logs are kept and available for point-in-time restore; on both AWS RDS and Azure SQL Database this can be set up to 35 days.
Failover GroupAn Azure feature that wraps one or more databases in a group with a single listener endpoint; during failover, DNS automatically redirects application connections to the new primary without connection string changes.
Geo-Redundant Storage (GRS)A Microsoft Azure storage replication option that copies data to a paired region automatically, providing durability against a full regional outage.
In class: Lab: on AWS RDS PostgreSQL, enable automated backups with a defined retention period; enable Multi-AZ deployment for high availability; simulate data loss by deleting a table; perform a point-in-time restore to a snapshot before the deletion and verify table presence. · Lab: on Azure SQL Database, configure active geo-replication to a secondary region using the Azure Portal; simulate a failover using the manual failover command; verify the secondary becomes primary and check connection strings update. · Written RTO/RPO planning exercise: given a business scenario with defined recovery time objective and recovery point objective requirements, students select and justify the appropriate AWS or Azure backup/replication configuration, citing specific service settings.
Materials: AWS RDS console; Azure SQL Database geo-replication documentation; Azure Portal; lab timer (to measure actual restore duration against RTO); Microsoft DP-300 study guide chapters on business continuity; DAMA DMBOK2 Chapter 6
Check: Instructor confirms restored instance contains the previously deleted table; failover demo shows successful promotion of secondary; written RTO/RPO exercise reviewed for correct service selection and justification; pass requires all three verified.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Microsoft DP-300: Plan and implement a high availability and disaster recovery solution
1. A DBA sets the AWS RDS automated backup retention period to 0. What is the immediate consequence?
Oracle DBA CA: High Availability and Data Guard
2. An accidental DROP TABLE command executes on an AWS RDS PostgreSQL instance that has Multi-AZ enabled. Which statement best describes the impact on the standby?
DAMA CDMP Associate: Data Management Fundamentals / Business Continuity
3. A business states it can lose no more than 15 minutes of transaction data after a disaster. Which metric does this describe?
Microsoft DP-300: Plan and implement a high availability and disaster recovery solution
4. After executing a manual failover on Azure SQL Database active geo-replication without a failover group, what must the application team do immediately?
PostgreSQL CE (EDB): Backup and Recovery
5. A DBA is performing a PITR on AWS RDS and selects a restore time of 10:00 AM. The accidental table deletion occurred at 10:04 AM. What is the most likely outcome?
Microsoft DP-300: Configure and manage Azure SQL Database
6. Which Azure SQL Database storage option replicates backup data automatically to a geographically paired region?
DAMA CDMP Associate: Data Management Fundamentals / Business Continuity
7. A company's RTO is 2 hours. A DBA tests a PITR restore in a lab and measures the actual restore duration at 3.5 hours for the current database size. What is the correct action?
Oracle DBA CA: High Availability and Data Guard
8. When configuring AWS RDS for high availability, which statement correctly distinguishes Multi-AZ from a Read Replica?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.