Complete the code to create a read replica of an RDS instance.
aws rds create-db-instance-read-replica --db-instance-identifier myreadreplica --source-db-instance-identifier [1]The --source-db-instance-identifier option specifies the original database instance to replicate. Here, it should be the source instance name.
Complete the code to enable automatic backups required for read replicas.
aws rds modify-db-instance --db-instance-identifier mydbinstance --backup-retention-period [1]Read replicas require automatic backups enabled. Setting --backup-retention-period to 1 or more days enables backups.
Fix the error in the command to describe read replicas of an RDS instance.
aws rds describe-db-instances --filters Name=read-replica-source-db-instance-identifier,Values=[1]The filter read-replica-source-db-instance-identifier expects the source instance identifier to list its replicas.
Fill both blanks to configure a read replica with Multi-AZ deployment and a specific DB instance class.
aws rds create-db-instance-read-replica --db-instance-identifier myreadreplica --source-db-instance-identifier mydbinstance --multi-az [1] --db-instance-class [2]
Setting --multi-az to true enables high availability. The --db-instance-class defines the instance size; here, db.m5.large is a common choice for performance.
Fill all three blanks to create a read replica with encryption enabled, in a specific availability zone, and with a custom port.
aws rds create-db-instance-read-replica --db-instance-identifier myreadreplica --source-db-instance-identifier mydbinstance --storage-encrypted [1] --availability-zone [2] --port [3]
Encryption is enabled by setting --storage-encrypted to true. The availability zone specifies where the replica runs, and the port defines the database listening port.