A legacy application that uses MongoDB is being migrated to AWS. Company policy requires all EC2 instances to be in private subnets without internet access, all application-database communication to be encrypted, and the database to scale with demand. Which solution satisfies these constraints?
Choose an answer
Tap an option to check your answer.
Correct answer: Provision Amazon DynamoDB tables with on-demand capacity and use a gateway VPC endpoint for DynamoDB to access the tables..
Why this is the answer
The correct solution uses Amazon DynamoDB with on-demand capacity and a gateway VPC endpoint. DynamoDB is a fully managed, scalable NoSQL database service that supports document data models, making it a suitable replacement for MongoDB. On-demand capacity automatically scales with demand, meeting the requirement. A gateway VPC endpoint allows EC2 instances in private subnets to securely access DynamoDB without traversing the internet, satisfying the company policy. Using an interface VPC endpoint for DynamoDB is incorrect because DynamoDB only supports gateway endpoints. Provisioning Amazon DocumentDB is incorrect because while it offers MongoDB compatibility and can scale, the question specifies all application-database communication must be encrypted. While DocumentDB supports encryption in transit, DynamoDB inherently encrypts all data at rest and in transit, and its serverless nature simplifies operations compared to managing DocumentDB instances and IOPS.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed