MCQs on Amazon RDS Automation | AWS RDS Questions

Dive into this collection of AWS RDS MCQ questions and answers focused on Amazon RDS automation. These questions cover critical concepts such as using AWS CLI and SDK for RDS operations, automating with AWS Lambda, leveraging RDS APIs for workflows, and managing automated backups and snapshots. Perfect for AWS certification prep and skill enhancement!


Amazon RDS Automation MCQs

Using AWS CLI and SDK for RDS Operations

  1. Which AWS CLI command is used to describe all RDS instances in an account?
    a) aws rds describe-db-instances
    b) aws rds list-db-instances
    c) aws rds get-db-details
    d) aws rds query-db
  2. What is the purpose of the aws-sdk in RDS operations?
    a) To configure VPCs
    b) To automate RDS workflows in programming languages
    c) To manage IAM roles
    d) To create EC2 instances
  3. Which programming language is NOT supported by the AWS SDK?
    a) Python
    b) Ruby
    c) Swift
    d) COBOL
  4. How can you tag an RDS instance using the AWS CLI?
    a) aws rds add-tags-to-resource
    b) aws rds create-tags
    c) aws rds attach-tags
    d) aws rds set-resource-tags
  5. Which AWS CLI command is used to restore an RDS instance from a snapshot?
    a) aws rds create-db-snapshot
    b) aws rds restore-db-instance-from-snapshot
    c) aws rds clone-db-instance
    d) aws rds replicate-snapshot

Automation with AWS Lambda

  1. Which AWS service is required to trigger Lambda functions for automated RDS tasks?
    a) S3
    b) EventBridge
    c) CloudFormation
    d) Route 53
  2. A common use case for AWS Lambda in RDS automation is:
    a) Managing database schemas
    b) Creating custom reports
    c) Automatically starting and stopping instances based on schedules
    d) Enabling Multi-AZ deployments
  3. How can you secure Lambda’s access to RDS?
    a) Assign an IAM role to the Lambda function
    b) Add the Lambda function to the RDS security group
    c) Use an API Gateway
    d) Enable Public Access
  4. Which language is commonly used to write AWS Lambda functions for RDS?
    a) PHP
    b) Python
    c) C++
    d) JavaScript
  5. What is the maximum runtime for an AWS Lambda function?
    a) 1 minute
    b) 5 minutes
    c) 15 minutes
    d) 60 minutes

Leveraging Amazon RDS APIs for Custom Workflows

  1. Which API operation can be used to list all snapshots of an RDS instance?
    a) DescribeSnapshots
    b) ListSnapshots
    c) GetDBSnapshots
    d) DescribeDBSnapshots
  2. To terminate an RDS instance via API, you would call:
    a) DeleteDBInstance
    b) RemoveDBInstance
    c) TerminateRDSInstance
    d) DestroyInstance
  3. How does the Amazon RDS API authenticate requests?
    a) Using API Gateway keys
    b) Through VPC endpoints
    c) With access keys and secret keys
    d) Using S3 bucket policies
  4. Which API call is used to scale storage for an RDS instance?
    a) ModifyDBInstance
    b) ScaleStorageInstance
    c) UpdateInstanceSize
    d) ChangeInstanceCapacity
  5. What is the format of Amazon RDS API requests?
    a) JSON over HTTPS
    b) XML over HTTP
    c) SOAP
    d) YAML over SFTP

Automated Backups and Snapshots

  1. How often are automated backups taken in RDS by default?
    a) Once per day
    b) Every 6 hours
    c) Every hour
    d) Every 15 minutes
  2. What happens when the backup retention period is set to 0 days?
    a) Backups are taken but not stored
    b) Automated backups are disabled
    c) Snapshots are deleted immediately
    d) Retention defaults to 7 days
  3. What type of snapshot must be used for creating a copy in another AWS region?
    a) Manual Snapshot
    b) Automated Snapshot
    c) System Snapshot
    d) Backup Snapshot
  4. Which AWS CLI command creates a manual snapshot of an RDS instance?
    a) aws rds backup-db-instance
    b) aws rds create-db-snapshot
    c) aws rds save-db-backup
    d) aws rds snapshot-instance
  5. What is a common use case for point-in-time recovery?
    a) Restoring a database to a specific version
    b) Scaling up database storage
    c) Undoing data loss caused by accidental deletion
    d) Migrating databases across regions

Mixed Questions

  1. How can you automate the deletion of outdated RDS snapshots?
    a) Use EventBridge rules
    b) Use an AWS Lambda function with a cron job
    c) Schedule deletion in the AWS Console
    d) Enable lifecycle policies
  2. Which AWS service is commonly used to schedule automated RDS operations?
    a) EventBridge
    b) CloudFormation
    c) CodePipeline
    d) Elastic Beanstalk
  3. Which RDS API operation can trigger a manual failover?
    a) InitiateFailover
    b) RebootDBInstance
    c) PromoteReadReplica
    d) FailoverRDSInstance
  4. What happens when automated backups are disabled in RDS?
    a) Multi-AZ replication stops
    b) Manual snapshots are also disabled
    c) Point-in-time recovery is unavailable
    d) All existing snapshots are deleted
  5. Which AWS SDK package is used for RDS operations in Node.js?
    a) aws-sdk-rds
    b) aws-sdk
    c) node-aws-rds
    d) rds-api-sdk
  6. How can you monitor the status of automated backups?
    a) Use CloudTrail logs
    b) Check the “Backup Status” field in the AWS Console
    c) Enable CloudWatch metrics
    d) Use Lambda triggers
  7. What is the maximum retention period for automated backups?
    a) 7 days
    b) 35 days
    c) 90 days
    d) Unlimited
  8. What action is required to share an RDS snapshot with another AWS account?
    a) Use the share-snapshot CLI command
    b) Modify snapshot permissions to allow access
    c) Copy the snapshot to the target account
    d) Enable cross-account IAM roles
  9. Which AWS CLI command can you use to schedule a snapshot?
    a) aws rds schedule-db-snapshot
    b) aws rds create-db-snapshot
    c) aws rds set-snapshot-policy
    d) aws rds snapshot-schedule
  10. How can you ensure an RDS instance is compliant with backup policies?
    a) Use Config Rules
    b) Enable Enhanced Monitoring
    c) Modify the instance type
    d) Use CloudFormation templates

Answers

QNoAnswer (Option with Text)
1a) aws rds describe-db-instances
2b) To automate RDS workflows in programming languages
3d) COBOL
4a) aws rds add-tags-to-resource
5b) aws rds restore-db-instance-from-snapshot
6b) EventBridge
7c) Automatically starting and stopping instances based on schedules
8a) Assign an IAM role to the Lambda function
9b) Python
10c) 15 minutes
11d) DescribeDBSnapshots
12a) DeleteDBInstance
13c) With access keys and secret keys
14a) ModifyDBInstance
15a) JSON over HTTPS
16a) Once per day
17b) Automated backups are disabled
18a) Manual Snapshot
19b) aws rds create-db-snapshot
20c) Undoing data loss caused by accidental deletion
21b) Use an AWS Lambda function with a cron job
22a) EventBridge
23c) PromoteReadReplica
24c) Point-in-time recovery is unavailable
25b) aws-sdk

Last 6 answers

QNoAnswer (Option with Text)
25b) aws-sdk
26c) Enable CloudWatch metrics
27b) 35 days
28b) Modify snapshot permissions to allow access
29b) aws rds create-db-snapshot
30a) Use Config Rules

Use a Blank Sheet, Note your Answers and Finally tally with our answer at last. Give Yourself Score.

X
error: Content is protected !!
Scroll to Top