Amazon SOA-C02: Databases and Caching — Study Guide

Part of the AWS SysOps Administrator Associate SOA-C02 — Study Guide. Practice with verified answers in the Amazon exam hub, or take timed practice tests on ExamRoll.io.

Databases and caching are core operational responsibilities for a SysOps administrator: they provide persistent storage, availability, and low-latency reads for applications. This domain covers running managed relational databases (RDS and Aurora), scaling read/write capacity, replication and failover behavior, and using ElastiCache to reduce DB load. Proper configuration of backups, parameter groups, monitoring, and cache-invalidation patterns prevents data loss and reduces operational incidents.

RDS and Aurora operations, backups, and Multi-AZ

RDS (MySQL, PostgreSQL, MariaDB, Oracle, SQL Server) and Amazon Aurora (MySQL- and PostgreSQL-compatible) are managed relational engines with different operational semantics. Multi-AZ for RDS creates a synchronous standby in another AZ — managed by AWS, automated failover within minutes, no manual promotion, and the standby is not accessible for reads. Aurora separates writer and reader endpoints: writer is a cluster endpoint backed by a primary, and Aurora uses distributed storage that automatically replicates across AZs and can typically fail over faster than RDS because storage is shared.

Configure backups and retention using:

Decision criteria:

Operational CLI examples:

Read replicas, failover, and replication strategies

Read replicas are asynchronous copies (RDS or Aurora readers) used primarily to scale read traffic and offload reporting. They incur replication lag (monitor ReplicaLag metric) and are not suited for strong consistency. Read replicas can be promoted to standalone DB instances to support disaster recovery.

Replication strategies and choices:

Operational patterns:

Decision criteria:

Caching with ElastiCache and cache invalidation

ElastiCache offers Redis and Memcached to reduce DB load and latency. Choose Redis when you need persistence, replication, data structures, and high availability with Multi-AZ and automatic failover. Choose Memcached for simple horizontal caching where sharding and multithreaded performance are priorities.

Key configuration and patterns:

Cache invalidation strategies:

Database parameter groups, scaling, and monitoring

Parameter groups control engine-specific settings (e.g., max_connections, innodb_buffer_pool_size). RDS uses DB parameter groups for instances and DB cluster parameter groups for Aurora. Changes to some parameters require reboot (apply pending-reboot), others apply immediately.

Management patterns:

Monitoring and scaling signals:

Backup/restore procedures and migration considerations

Backups and restores must be explicit and tested. Automated backups provide PITR within retention; manual snapshots are retained until deleted and can be copied across regions and to different KMS keys. Be explicit about region and timestamp when restoring.

Common restore commands:

Migration considerations:

Common Pitfalls and Decision Criteria

Practical Problem: Use-Case Scenario

Acme Retail runs a MySQL RDS primary with heavy read traffic and occasional analytics spikes; they face replica lag during nightly ETL and see high connection churn causing CPU spikes.

  1. Enable an additional read replica group for analytics isolated from application readers, and place it in a different AZ or region for DR.
  2. Configure replica monitoring (ReplicaLag metric) and add autoscaling logic to add readers when lag or ReadLatency exceeds thresholds.
  3. Deploy RDS Proxy in front of the application to multiplex connections and reduce connection churn; tune max_connections in parameter group appropriately.
  4. Move analytics jobs to use the analytics replica and adopt cache-aside caching via ElastiCache Redis with appropriate TTLs to reduce repeated queries.
  5. Test failover and restore procedures: perform a PITR restore on a staging instance and validate replica promotion steps.

This approach separates read workloads, reduces connection pressure at the primary, and uses caching to lower DB read volume. It follows AWS best practices by combining read scaling, connection pooling, and tested backup/restore processes to maintain availability and operational resilience.


Compute and Auto Scaling · All domains · Serverless and Application Integration

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Amazon →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product