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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Pilot
Highly Voted 1 year, 4 months 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 21 times
...
career360guru
Highly Voted 1 year, 5 months 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
1 year, 3 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 4 times
Josh1217
10 months, 1 week ago
It does not say you need automated scaling. You can manually scale DynanoDB with provisioned IOPS.
upvoted 2 times
...
...
...
kyo
Most Recent 2 months, 2 weeks ago
Selected Answer: D
MongoDB (document DB) and DynamoDB (key-value) are different. The question says the app uses MongoDB *as* a key-value store, which is odd. Migrating to DynamoDB means data model changes. Options A and D include Provisioned IOPS, which is pricey, but the question doesn't mention cost optimization. AWS says DocumentDB scales, so PIOPS likely fits the "scale on demand" requirement. I lean towards D. If key-value is all that matters, you could use DynamoDB, but that means app changes. With AWS PrivateLink for DynamoDB, B and C are basically the same, making them invalid. So, D seems best, but it's not a slam dunk.
upvoted 1 times
...
PSPaul
4 months ago
Selected Answer: D
Should be D Document DB is good for MongoDB Manual Scale limit to 15 read replica is not the issue. DynamoDB is not good compatible with MongoDB .... So, what's next if Dynamo is not support Mongo
upvoted 1 times
...
deepakR20
4 months, 1 week ago
Selected Answer: C
There seems to be a typo in the answer. The correct answer is DocumentDB with VPC endpoint, making "C" the right choice.
upvoted 1 times
...
TomTom
4 months, 3 weeks ago
Selected Answer: C
Should be option C. While gateway endpoints can be secured, they still expose the database to the internet, albeit indirectly. DynamoDB can use Interface VPC endpoint to connect to DynamoDB Tables.
upvoted 1 times
...
AzureDP900
5 months, 1 week ago
B is correct Using a gateway VPC endpoint for DynamoDB (option B) does provide secure communication between your VPC and DynamoDB, and it meets the company's requirement for encrypted connectivity. In fact, using a gateway VPC endpoint can help you achieve several benefits, including: Securely communicate with DynamoDB without exposing your EC2 instances to the public internet Encrypt all outgoing traffic from your VPC to DynamoDB Meet security compliance requirements by controlling access to DynamoDB
upvoted 1 times
...
Daniel76
5 months, 4 weeks 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 4 times
...
AloraCloud
6 months, 2 weeks 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
7 months 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
6 months ago
DocumentDB's scaling is limited to 15 read replicas and requires manual intervention.
upvoted 2 times
...
...
Syre
7 months, 2 weeks ago
Selected Answer: D
DynamoDB isn't compatible withMongo
upvoted 3 times
sashenka
6 months ago
While the application currently uses MongoDB, DynamoDB is suitable for key-value database workloads.
upvoted 2 times
...
...
kgpoj
8 months, 2 weeks ago
Selected Answer: B
EC2 has no such concept called `cluster endpoint`. has to be B
upvoted 2 times
...
9f02c8d
10 months, 4 weeks ago
Correct ans: D
upvoted 1 times
...
paderni
11 months 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
9 months, 2 weeks ago
You don't need MongoDB compatibility as it is used as key-value, not as a document db
upvoted 1 times
...
...
paderni
11 months 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
1 year 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
1 year ago
Selected Answer: C
DocumentDB is not DynamoDB. Gateway Endpoint does not support DocumentDB.
upvoted 2 times
VerRi
1 year ago
My bad, B is using DynamoDB, so it is B
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago