Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 324 discussion

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?

  • A. Create new Amazon DocumentDB (with MongoDB compatibility) tables for the application with Provisioned IOPS volumes. Use the instance endpoint to connect to Amazon DocumentDB.
  • B. Create new Amazon DynamoDB tables for the application with on-demand capacity. Use a gateway VPC endpoint for DynamoDB to connect to the DynamoDB tables.
  • C. Create new Amazon DynamoDB tables for the application with on-demand capacity. Use an interface VPC endpoint for DynamoDB to connect to the DynamoDB tables.
  • D. Create new Amazon DocumentDB (with MongoDB compatibility) tables for the application with Provisioned IOPS volumes. Use the cluster endpoint to connect to Amazon DocumentDB.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Pilot
Highly Voted 11 months, 2 weeks ago
The database must be able to scale based on demand, so Provisioned IOPS volume is out because they will be throttled. A and D are out. EC2 hosted in a private subnet without an internet connection, have to use VPC Endpoint, for DynamoDB, it must be Gateway VPC endpoint. B is the answer.
upvoted 20 times
...
career360guru
Highly Voted 11 months, 4 weeks ago
Selected Answer: D
D is right option. Instance endpoint is for connecting specific instance (primary or replica) and not recommended.
upvoted 6 times
JMAN1
10 months ago
This time you are wrong. A and D option use provisioned IOPS which is not scalable. Between B and C. DynamoDB only works with gateway endpoint. Answer is B.
upvoted 3 times
Josh1217
4 months, 3 weeks ago
It does not say you need automated scaling. You can manually scale DynanoDB with provisioned IOPS.
upvoted 1 times
...
...
...
Daniel76
Most Recent 2 weeks, 1 day ago
Selected Answer: B
Just summarizing from comments :) A and D out because provisioned IOPS is not considered scalable. C is out because DynamoDB only works with gateway vpc endpoint. B works, because MongoDB only used as key value store, it make sense to replace it with DynamoDB with little impact to the requirements.
upvoted 1 times
...
AloraCloud
1 month ago
The key here is Can you use Amazon Dynamodb to replace a MongoDB used as a key-value database and the answer is YES! Amazon DynamoDB supports interface VPC endpoints (AWS PrivateLink). This allows you to securely connect to DynamoDB from your VPC without the need for an internet gateway, NAT device, VPN connection, or AWS Direct Connect connection.
upvoted 2 times
...
KenieOh
1 month, 3 weeks ago
Selected Answer: D
D. This is the correct answer. Amazon DocumentDB (with MongoDB compatibility) meets the requirements: 1. It can be hosted in a private subnet without an internet connection, as required by the technical guidelines. 2. Connectivity between the application and the database can be encrypted, as stated in the requirements. 3. Amazon DocumentDB can scale based on demand, which is another requirement mentioned in the question. 4. The use of the cluster endpoint to connect to Amazon DocumentDB is the appropriate approach, as it provides a single, highly available endpoint for the database cluster. Therefore, option D is the solution that best meets the given requirements.
upvoted 1 times
sashenka
3 weeks, 1 day ago
DocumentDB's scaling is limited to 15 read replicas and requires manual intervention.
upvoted 2 times
...
...
Syre
2 months ago
Selected Answer: D
DynamoDB isn't compatible withMongo
upvoted 3 times
sashenka
3 weeks, 1 day ago
While the application currently uses MongoDB, DynamoDB is suitable for key-value database workloads.
upvoted 2 times
...
...
kgpoj
3 months ago
Selected Answer: B
EC2 has no such concept called `cluster endpoint`. has to be B
upvoted 2 times
...
9f02c8d
5 months, 2 weeks ago
Correct ans: D
upvoted 1 times
...
paderni
5 months, 3 weeks ago
D :Compatibility: Amazon DocumentDB, which is compatible with MongoDB, is an ideal choice. This ensures that the application can be migrated with minimal changes. Scalability: can automatically scale the storage and supports read scaling by adding more replicas. This meets the requirement for the database to scale based on demand. Encryption: DocumentDB supports encryption at rest and in transit, ensuring that all data connectivity is encrypted as per the company's guidelines. Private Connectivity: Amazon DocumentDB can be accessed within a VPC using a cluster endpoint, and it does not require internet connectivity, making it suitable for private subnet deployments. Option B: DynamoDB is a managed NoSQL database service that could meet the key-value requirement and scalability. However, it is not MongoDB-compatible, which means significant changes to the application code might be required
upvoted 2 times
mns0173
4 months ago
You don't need MongoDB compatibility as it is used as key-value, not as a document db
upvoted 1 times
...
...
paderni
5 months, 3 weeks ago
D. Create new Amazon DocumentDB (with MongoDB compatibility) tables for the application with Provisioned IOPS volumes. Use the cluster endpoint to connect to Amazon DocumentDB.
upvoted 1 times
...
Keval12345
7 months, 1 week ago
I guess the key par here is key-value . That kind of confirms that we can use DynamoDB here and hence B looks more promisin now. D seems good but Provisioned IOPS is a red flag regarding scaling
upvoted 2 times
...
VerRi
7 months, 2 weeks ago
Selected Answer: C
DocumentDB is not DynamoDB. Gateway Endpoint does not support DocumentDB.
upvoted 1 times
VerRi
7 months, 2 weeks ago
My bad, B is using DynamoDB, so it is B
upvoted 1 times
...
...
Dgix
7 months, 4 weeks ago
Selected Answer: B
B: If MongoDB is used as a key-value store, then a gateway endpoint is the way to connect to DynamoDB, which is a straight-up key-value store.
upvoted 2 times
...
dankositzke
9 months ago
Selected Answer: B
B b/c needs to scale based on demand and Gateway VPC endpoint with DynamoDB goes together like peanut butter and jelly
upvoted 3 times
...
ele
9 months, 2 weeks ago
Selected Answer: D
D is the right option. - It's legacy application, so re-factoring to dynamodb hardly possible. - D is scalable and compatible, cluster endpoint is right choise. - Provisioned IOPS volumes are for he application, not for database, so database is still scalable.
upvoted 3 times
chelbsik
9 months, 2 weeks ago
How are IOPS volumes not for the database? The sentence is: "Create new Amazon DocumentDB (with MongoDB compatibility) tables for the application with Provisioned IOPS volumes", which means that the DB is provisioned for the application, but it's still DB with IOPS volumes.
upvoted 1 times
...
...
vibzr2023
10 months, 1 week ago
Answer: D B and C are ruled out since they are using DynamoDB which is a NoSQL database service, and may not be a direct replacement for MongoDB if the application specifically requires MongoDB compatibility when you have Document DB. So the answer should be either A or D. Why D? because Amazon DocumentDB provides a cluster endpoint that can be used for connecting to the cluster. This endpoint is accessible from within your Virtual Private Cloud (VPC) but doesn't require internet access. It aligns with the guideline of hosting instances in private subnets.
upvoted 5 times
...
JMAN1
10 months, 1 week ago
Selected Answer: B
Sorry. Answer is B. Gateway endpoint use private internet.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...