Amazon AWS Certified Database - Specialty Exam Practice Questions (P. 3)
- Full Access (359 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #21
A company maintains several databases using Amazon RDS for MySQL and PostgreSQL. Each RDS database generates log files with retention periods set to their default values. The company has now mandated that database logs be maintained for up to 90 days in a centralized repository to facilitate real-time and after-the-fact analyses.
What should a Database Specialist do to meet these requirements with minimal effort?
What should a Database Specialist do to meet these requirements with minimal effort?
- ACreate an AWS Lambda function to pull logs from the RDS databases and consolidate the log files in an Amazon S3 bucket. Set a lifecycle policy to expire the objects after 90 days.
- BModify the RDS databases to publish log to Amazon CloudWatch Logs. Change the log retention policy for each log group to expire the events after 90 days.Most Voted
- CWrite a stored procedure in each RDS database to download the logs and consolidate the log files in an Amazon S3 bucket. Set a lifecycle policy to expire the objects after 90 days.
- DCreate an AWS Lambda function to download the logs from the RDS databases and publish the logs to Amazon CloudWatch Logs. Change the log retention policy for the log group to expire the events after 90 days.
Correct Answer:
A
A

To address the requirement of maintaining database logs for 90 days in a centralized repository with minimal effort, using AWS Lambda to pull logs from Amazon RDS databases and store them in Amazon S3 is very practical. This method allows the logs to be consolidated in one location efficiently and with minimal manual intervention, supporting both real-time and analytic needs. A lifecycle policy on S3 to handle expiration after 90 days automates the process further, reducing maintenance overhead.
send
light_mode
delete
Question #22
A Database Specialist is setting up a new Amazon Aurora DB cluster with one primary instance and three Aurora Replicas for a highly intensive, business-critical application. The Aurora DB cluster has one medium-sized primary instance, one large-sized replica, and two medium sized replicas. The Database Specialist did not assign a promotion tier to the replicas.
In the event of a primary failure, what will occur?
In the event of a primary failure, what will occur?
- AAurora will promote an Aurora Replica that is of the same size as the primary instance
- BAurora will promote an arbitrary Aurora Replica
- CAurora will promote the largest-sized Aurora ReplicaMost Voted
- DAurora will not promote an Aurora Replica
Correct Answer:
A
Reference:
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-ug.pdf
A
Reference:
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-ug.pdf
send
light_mode
delete
Question #23
A company is running its line of business application on AWS, which uses Amazon RDS for MySQL at the persistent data store. The company wants to minimize downtime when it migrates the database to Amazon Aurora.
Which migration method should a Database Specialist use?
Which migration method should a Database Specialist use?
- ATake a snapshot of the RDS for MySQL DB instance and create a new Aurora DB cluster with the option to migrate snapshots.
- BMake a backup of the RDS for MySQL DB instance using the mysqldump utility, create a new Aurora DB cluster, and restore the backup.
- CCreate an Aurora Replica from the RDS for MySQL DB instance and promote the Aurora DB cluster.Most Voted
- DCreate a clone of the RDS for MySQL DB instance and promote the Aurora DB cluster.
Correct Answer:
A
Reference:
https://d1.awsstatic.com/whitepapers/RDS/Migrating%20your%20databases%20to%20Amazon%20Aurora.pdf
(10)
A
Reference:
https://d1.awsstatic.com/whitepapers/RDS/Migrating%20your%20databases%20to%20Amazon%20Aurora.pdf
(10)
send
light_mode
delete
Question #24
The Security team for a finance company was notified of an internal security breach that happened 3 weeks ago. A Database Specialist must start producing audit logs out of the production Amazon Aurora PostgreSQL cluster for the Security team to use for monitoring and alerting. The Security team is required to perform real-time alerting and monitoring outside the Aurora DB cluster and wants to have the cluster push encrypted files to the chosen solution.
Which approach will meet these requirements?
Which approach will meet these requirements?
- AUse pg_audit to generate audit logs and send the logs to the Security team.
- BUse AWS CloudTrail to audit the DB cluster and the Security team will get data from Amazon S3.
- CSet up database activity streams and connect the data stream from Amazon Kinesis to consumer applications.Most Voted
- DTurn on verbose logging and set up a schedule for the logs to be dumped out for the Security team.
Correct Answer:
B
Reference:
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-ug.pdf
(525)
B
Reference:
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-ug.pdf
(525)
send
light_mode
delete
Question #25
A company is using Amazon RDS for MySQL to redesign its business application. A Database Specialist has noticed that the Development team is restoring their
MySQL database multiple times a day when Developers make mistakes in their schema updates. The Developers sometimes need to wait hours for the restores to complete.
Multiple team members are working on the project, making it difficult to find the correct restore point for each mistake.
Which approach should the Database Specialist take to reduce downtime?
MySQL database multiple times a day when Developers make mistakes in their schema updates. The Developers sometimes need to wait hours for the restores to complete.
Multiple team members are working on the project, making it difficult to find the correct restore point for each mistake.
Which approach should the Database Specialist take to reduce downtime?
- ADeploy multiple read replicas and have the team members make changes to separate replica instances
- BMigrate to Amazon RDS for SQL Server, take a snapshot, and restore from the snapshot
- CMigrate to Amazon Aurora MySQL and enable the Aurora Backtrack featureMost Voted
- DEnable the Amazon RDS for MySQL Backtrack feature
Correct Answer:
A
A
send
light_mode
delete
Question #26
A media company is using Amazon RDS for PostgreSQL to store user data. The RDS DB instance currently has a publicly accessible setting enabled and is hosted in a public subnet. Following a recent AWS Well-Architected Framework review, a Database Specialist was given new security requirements.
✑ Only certain on-premises corporate network IPs should connect to the DB instance.
✑ Connectivity is allowed from the corporate network only.
Which combination of steps does the Database Specialist need to take to meet these new requirements? (Choose three.)
✑ Only certain on-premises corporate network IPs should connect to the DB instance.
✑ Connectivity is allowed from the corporate network only.
Which combination of steps does the Database Specialist need to take to meet these new requirements? (Choose three.)
- AModify the pg_hba.conf file. Add the required corporate network IPs and remove the unwanted IPs.
- BModify the associated security group. Add the required corporate network IPs and remove the unwanted IPs.Most Voted
- CMove the DB instance to a private subnet using AWS DMS.
- DEnable VPC peering between the application host running on the corporate network and the VPC associated with the DB instance.
- EDisable the publicly accessible setting.Most Voted
- FConnect to the DB instance using private IPs and a VPN.Most Voted
Correct Answer:
DEF
DEF
send
light_mode
delete
Question #27
A company is about to launch a new product, and test databases must be re-created from production data. The company runs its production databases on an
Amazon Aurora MySQL DB cluster. A Database Specialist needs to deploy a solution to create these test databases as quickly as possible with the least amount of administrative effort.
What should the Database Specialist do to meet these requirements?
Amazon Aurora MySQL DB cluster. A Database Specialist needs to deploy a solution to create these test databases as quickly as possible with the least amount of administrative effort.
What should the Database Specialist do to meet these requirements?
- ARestore a snapshot from the production cluster into test clusters
- BCreate logical dumps of the production cluster and restore them into new test clusters
- CUse database cloning to create clones of the production clusterMost Voted
- DAdd an additional read replica to the production cluster and use that node for testing
Correct Answer:
D
D
send
light_mode
delete
Question #28
A company with branch offices in Portland, New York, and Singapore has a three-tier web application that leverages a shared database. The database runs on
Amazon RDS for MySQL and is hosted in the us-west-2 Region. The application has a distributed front end deployed in the us-west-2, ap-southheast-1, and us- east-2 Regions.
This front end is used as a dashboard for Sales Managers in each branch office to see current sales statistics. There are complaints that the dashboard performs more slowly in the Singapore location than it does in Portland or New York. A solution is needed to provide consistent performance for all users in each location.
Which set of actions will meet these requirements?
Amazon RDS for MySQL and is hosted in the us-west-2 Region. The application has a distributed front end deployed in the us-west-2, ap-southheast-1, and us- east-2 Regions.
This front end is used as a dashboard for Sales Managers in each branch office to see current sales statistics. There are complaints that the dashboard performs more slowly in the Singapore location than it does in Portland or New York. A solution is needed to provide consistent performance for all users in each location.
Which set of actions will meet these requirements?
- ATake a snapshot of the instance in the us-west-2 Region. Create a new instance from the snapshot in the ap-southeast-1 Region. Reconfigure the ap- southeast-1 front-end dashboard to access this instance.
- BCreate an RDS read replica in the ap-southeast-1 Region from the primary RDS DB instance in the us-west-2 Region. Reconfigure the ap-southeast-1 front- end dashboard to access this instance.Most Voted
- CCreate a new RDS instance in the ap-southeast-1 Region. Use AWS DMS and change data capture (CDC) to update the new instance in the ap-southeast-1 Region. Reconfigure the ap-southeast-1 front-end dashboard to access this instance.
- DCreate an RDS read replica in the us-west-2 Region where the primary instance resides. Create a read replica in the ap-southeast-1 Region from the read replica located on the us-west-2 Region. Reconfigure the ap-southeast-1 front-end dashboard to access this instance.
Correct Answer:
A
A
send
light_mode
delete
Question #29
A company wants to migrate its existing on-premises Oracle database to Amazon Aurora PostgreSQL. The migration must be completed with minimal downtime using AWS DMS. A Database Specialist must validate that the data was migrated accurately from the source to the target before the cutover. The migration must have minimal impact on the performance of the source database.
Which approach will MOST effectively meet these requirements?
Which approach will MOST effectively meet these requirements?
- AUse the AWS Schema Conversion Tool (AWS SCT) to convert source Oracle database schemas to the target Aurora DB cluster. Verify the datatype of the columns.
- BUse the table metrics of the AWS DMS task created for migrating the data to verify the statistics for the tables being migrated and to verify that the data definition language (DDL) statements are completed.
- CEnable the AWS Schema Conversion Tool (AWS SCT) premigration validation and review the premigration checklist to make sure there are no issues with the conversion.
- DEnable AWS DMS data validation on the task so the AWS DMS task compares the source and target records, and reports any mismatches.Most Voted
Correct Answer:
D
Reference:
https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Validating.html
D
Reference:
https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Validating.html

send
light_mode
delete
Question #30
A company is planning to close for several days. A Database Specialist needs to stop all applications along with the DB instances to ensure employees do not have access to the systems during this time. All databases are running on Amazon RDS for MySQL.
The Database Specialist wrote and ran a script to stop all the DB instances. When reviewing the logs, the Database Specialist found that Amazon RDS DB instances with read replicas did not stop.
How should the Database Specialist edit the script to fix this issue?
The Database Specialist wrote and ran a script to stop all the DB instances. When reviewing the logs, the Database Specialist found that Amazon RDS DB instances with read replicas did not stop.
How should the Database Specialist edit the script to fix this issue?
- AStop the source instances before stopping their read replicas
- BDelete each read replica before stopping its corresponding source instanceMost Voted
- CStop the read replicas before stopping their source instances
- DUse the AWS CLI to stop each read replica and source instance at the same time
Correct Answer:
D
D
send
light_mode
delete
All Pages