Complete the code to specify the database engine when launching an RDS instance.
aws rds create-db-instance --db-instance-identifier mydb --db-instance-class db.t2.micro --engine [1] --allocated-storage 20
The --engine parameter specifies the database engine type. For RDS, valid engines include mysql, postgres, etc. Here, mysql is correct.
Complete the code to specify the instance class for the RDS instance.
aws rds create-db-instance --db-instance-identifier mydb --db-instance-class [1] --engine mysql --allocated-storage 20
The --db-instance-class parameter defines the compute and memory capacity of the RDS instance. db.t2.micro is a valid small instance class for RDS.
Fix the error in the command to enable public accessibility for the RDS instance.
aws rds create-db-instance --db-instance-identifier mydb --db-instance-class db.t2.micro --engine mysql --allocated-storage 20 --publicly-accessible [1]
The --publicly-accessible parameter expects a boolean value: true or false. Using 'true' enables public access.
Fill both blanks to specify the master username and password for the RDS instance.
aws rds create-db-instance --db-instance-identifier mydb --db-instance-class db.t2.micro --engine mysql --allocated-storage 20 --master-username [1] --master-user-password [2]
The --master-username sets the admin username, commonly 'admin'. The --master-user-password sets the password, here 'password123' as an example.
Fill all three blanks to create an RDS instance with a specific storage type, multi-AZ deployment, and backup retention period.
aws rds create-db-instance --db-instance-identifier mydb --db-instance-class db.t2.micro --engine mysql --allocated-storage 20 --storage-type [1] --multi-az [2] --backup-retention-period [3]
The --storage-type can be 'standard' for magnetic storage. --multi-az expects a boolean like 'true' to enable high availability. --backup-retention-period is the number of days to keep backups, here 7 days.