AWS Certified Solutions Architect – Professional — Question 989

A company is migrating a legacy application from an on-premises data center to AWS. The application uses MongoDB as a key-value database. According to the company's technical guidelines, all Amazon EC2 instances must be hosted in a private subnet without an internet connection. In addition, all connectivity between applications and databases must be encrypted. The database must be able to scale based on demand.
Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

Amazon DynamoDB is a fully managed key-value database that supports on-demand capacity, allowing it to scale automatically to accommodate workload traffic. To connect to DynamoDB from private subnets without internet access, a gateway VPC endpoint should be used because it is free of charge and provides direct, private routing to DynamoDB. Amazon DocumentDB does not utilize "tables" (it uses collections) and does not natively support on-demand capacity scaling in the same manner as DynamoDB.