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

Exam AWS Certified Solutions Architect - Professional All Questions

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

Exam AWS Certified Solutions Architect - Professional topic 1 question 890 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
joanneli77
Highly Voted 2 years ago
Both answers with provisioned IOPS don't scale on demand. Eliminate A and D. DynamoDB and S3 both use Gateway Endpoints, so it is B. For debate on Dynamo vs Document, it works in Mongo as key/value outside, so it will work with either Dynamo or Document. Would have gone with DocumentDB if not for provisioned IOPS and requirement it scale on-demand.
upvoted 7 times
fdoxxx
1 year, 11 months ago
What about "all Amazon EC2 instances must be hosted in a private subnet without an internet connection." It clearly states that it can not be a Gateway - it needs to be Interface endpoint - so C imho
upvoted 1 times
Rocketeer
1 year, 11 months ago
Apps will run in the EC2s and connect to DynamobDB using Gateway endpoint.
upvoted 2 times
...
...
...
rajvee
Highly Voted 2 years, 1 month ago
D, seems about right. https://docs.aws.amazon.com/documentdb/latest/developerguide/endpoints.html Cluster endpoint A cluster endpoint is an endpoint for an Amazon DocumentDB cluster that connects to the current primary instance for the cluster. Each Amazon DocumentDB cluster has a single cluster endpoint and one primary instance. In case of a failover, the cluster endpoint is remapped to the new primary instance. Vs Instance endpoint An instance endpoint is an endpoint that connects to a specific instance. Each instance in a cluster, regardless of whether it is a primary or replica instance, has its own unique instance endpoint. It is best to not use instance endpoints in your application. This is because they can change roles in case of a failover, thus requiring code changes in your application.
upvoted 6 times
Ni_yot
2 years ago
happy with that explanation
upvoted 2 times
...
...
WhyIronMan
Most Recent 2 months, 3 weeks ago
Selected Answer: B
B) because *The database must be able to scale based on demand* this is a must to have requirement so change all legacy application code to persist and request data from/to dynamodb. question does not say to minimize development overhead sol.. poor developrs ✅✅
upvoted 1 times
...
SkyZeroZx
1 year, 2 months ago
Selected Answer: D
D, seems about right. https://docs.aws.amazon.com/documentdb/latest/developerguide/endpoints.html Cluster endpoint A cluster endpoint is an endpoint for an Amazon DocumentDB cluster that connects to the current primary instance for the cluster. Each Amazon DocumentDB cluster has a single cluster endpoint and one primary instance. In case of a failover, the cluster endpoint is remapped to the new primary instance. Adicionally reference use MongoDB how key value , migration not it's this case in question Then D
upvoted 1 times
...
RotterDam
1 year, 4 months ago
Selected Answer: B
(B) Is correct based on the Original Author of this question. I didn't know you CANNOT connect to DocumentDB with either Interface or Gateway EP. I also DIDNT know you can choose a different Database (dynamo is purely Key/Value not Document) even though the question doesnt mention this.
upvoted 1 times
...
Jesuisleon
1 year, 4 months ago
Selected Answer: D
I preferred D as the answer. First C is apparently wrong, DynamoDB ONLY supports gateway endpoint not supports interface endpoint. you can search dynamodb in this link https://docs.aws.amazon.com/vpc/latest/privatelink/aws-services-privatelink-support.html The question doesn't refer the bottleneck client meets, so we can not assume client needs on-demand capacity to improve the capacity during high peak time. so compatibility to mongodb makes sense to client.
upvoted 1 times
...
dev112233xx
1 year, 5 months ago
Selected Answer: B
I totally agree... B is the correct answer✅
upvoted 1 times
...
hobokabobo
1 year, 6 months ago
Selected Answer: D
Bad question. If a legacy application is written to use Mongo DB it will not work with DynamoDB. Yes it seems possible that the company we bought/lisenced that application could create a new version for DynamoDB as it only needs a key-value store. So we have to options: Convince and pay some third party to write a new version of the application that is compatible with DynamoDB or use DocumentDB Depending on that decision the answer would is B or D. In the meantime, until the new application for Dynamodb is available. I would suggest to use MongoDB. That is D.
upvoted 2 times
...
Cloudyheema
1 year, 8 months ago
I think B is correct, and ChatGPT also confirmed B. I am going with B
upvoted 1 times
...
evargasbrz
1 year, 9 months ago
Selected Answer: B
I'll go with B Why not A and D -> They use "provisioned IOPS", so they don't scale on demand. B-> DynamoDB works with key/value and uses Gateway Endpoints
upvoted 1 times
...
alxjandroleiva
1 year, 11 months ago
D: Legacy application, You can not request the team to change all application to make request to dynamo instead of Mongo
upvoted 2 times
mrgreatness
1 year, 11 months ago
what about scaling?
upvoted 1 times
hobokabobo
1 year, 6 months ago
What about it Dynamodb does not work. It never gets any data and so does not scale the slightest. It stays at zero utilization. Without refactoring/rewriting the application no way to make an application that speaks Mongo work with dynamodb.
upvoted 2 times
...
...
...
dmscountera
1 year, 11 months ago
Selected Answer: B
Going for B https://docs.aws.amazon.com/vpc/latest/privatelink/aws-services-privatelink-support.html DynamoDB not supported by private link Gateway endpoint not relies on private link therefore B
upvoted 1 times
alxjandroleiva
1 year, 11 months ago
And change all legacy application code to persist and request data to dynamo...?
upvoted 2 times
...
...
fdoxxx
1 year, 11 months ago
Selected Answer: C
"all Amazon EC2 instances must be hosted in a private subnet without an internet connection." It clearly states that it can not be a Gateway - it needs to be Interface endpoint - so C
upvoted 1 times
...
skywalker
1 year, 12 months ago
Selected Answer: B
B, DynamoDB uses Gateway Point to allow connection from VPC
upvoted 4 times
...
firstabed
2 years ago
B Vpc gateway
upvoted 2 times
...
JohnPi
2 years ago
Selected Answer: C
Vpc gateway + scale on demand + being exchanged over an AWS PrivateLink is also encrypted
upvoted 1 times
JohnPi
2 years ago
interface VPC endpoint uses private link encripted
upvoted 1 times
...
...
JohnPi
2 years ago
Selected Answer: B
Vpc gateway + scale on demand
upvoted 4 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 ...