exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C02 exam

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 266 discussion

A company has a live chat application running on its on-premises servers that use WebSockets. The company wants to migrate the application to AWS.
Application traffic is inconsistent, and the company expects there to be more traffic with sharp spikes in the future.
The company wants a highly scalable solution with no server maintenance nor advanced capacity planning.
Which solution meets these requirements?

  • A. Use Amazon API Gateway and AWS Lambda with an Amazon DynamoDB table as the data store. Configure the DynamoDB table for provisioned capacity.
  • B. Use Amazon API Gateway and AWS Lambda with an Amazon DynamoDB table as the data store. Configure the DynamoDB table for on-demand capacity.
  • C. Run Amazon EC2 instances behind an Application Load Balancer in an Auto Scaling group with an Amazon DynamoDB table as the data store. Configure the DynamoDB table for on-demand capacity.
  • D. Run Amazon EC2 instances behind a Network Load Balancer in an Auto Scaling group with an Amazon DynamoDB table as the data store. Configure the DynamoDB table for provisioned capacity.
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
FeatheredandDeadly
Highly Voted 3 years, 8 months ago
Answer is B. EC2 cannot be correct as question states "no server maintenance"
upvoted 62 times
awsnoobster
3 years, 1 month ago
B since need serverless, u have to manage ec2 for C
upvoted 1 times
...
...
sctmp
Highly Voted 3 years, 8 months ago
B sounds about right. https://aws.amazon.com/blogs/aws/amazon-dynamodb-on-demand-no-capacity-planning-and-pay-per-request-pricing/
upvoted 21 times
...
mohebius
Most Recent 2 years, 6 months ago
B sure . https://docs.aws.amazon.com/apigateway/latest/developerguide/websocket-api-chat-app.html
upvoted 1 times
...
cloud_collector
2 years, 10 months ago
Based on "Traffic to the application is uneven, and the firm anticipates more traffic with sudden spikes in the future", rule out A & C at first due to "on-demand" is need. In a WebSocket API, the client and the server can both send messages to each other at any time. Backend servers can easily push data to connected users and devices, avoiding the need to implement complex polling mechanisms. For example, you could build a serverless application using an API Gateway WebSocket API and AWS Lambda to send and receive messages to and from individual users or groups of users in a chat room. Or you could invoke backend services such as AWS Lambda, Amazon Kinesis, or an HTTP endpoint based on message content. https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-overview-developer-experience.html#api-gateway-overview-websocket
upvoted 2 times
cloud_collector
2 years, 10 months ago
B is better I think
upvoted 1 times
...
...
andrvelich
2 years, 10 months ago
Websocket requires a long connection. So Lambda out. Vote for C
upvoted 3 times
...
achrafsky
3 years ago
Selected Answer: B
B because the solution requires minimal server maintenance so EC2 isn't the good idea.
upvoted 2 times
...
awsnoobster
3 years, 2 months ago
highly scalable solution that requires minimal server maintenance or sophisticated capacity planning. - API Gateway and Lamda so B for me.
upvoted 1 times
...
momedkri117
3 years, 4 months ago
Selected Answer: B
Ans is B for sure!
upvoted 1 times
...
Robert_B
3 years, 4 months ago
B - correct; EC2 means maintenance; live chat means simple lambda, non-long running, DynamoDB just perfect.
upvoted 2 times
...
EmeraldTech
3 years, 5 months ago
Answer is B. Read this Historically, building WebSocket APIs required setting up fleets of hosts that were responsible for managing the persistent connections that underlie the WebSocket protocol. Now, with API Gateway, this is no longer necessary. API Gateway handles the connections between the client and service. It lets you build your business logic using HTTP-based backends such as AWS Lambda, Amazon Kinesis, or any other HTTP endpoint. https://aws.amazon.com/blogs/compute/announcing-websocket-apis-in-amazon-api-gateway/
upvoted 7 times
eBooKz
3 years, 1 month ago
Always a good practice to back up one's answers with links. Thumbs up!
upvoted 1 times
...
...
xyzray
3 years, 6 months ago
Selected Answer: C
lamba will die after 15'. You can't use lambda for a chatbox. The session will die. The answer is C
upvoted 1 times
xyzray
3 years, 6 months ago
Correcting... looks like the API Gatweway fixes the issue https://tsh.io/blog/implementing-websocket-with-aws-lambda-and-api-gateway/ So B is the best
upvoted 5 times
...
...
rstets
3 years, 6 months ago
I would go for C. As for me Lambda is not a good solution for the application with websockets so A and B are out. Websockets its layer 7 so D is also out.
upvoted 1 times
derekurizar
2 years, 12 months ago
API Gateways has a feature for web sockets, called websockets API https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api.html
upvoted 3 times
...
...
rstets
3 years, 6 months ago
I would go for C. As for me Lambda is not a good solution for the application with websockets so A and B are out. Websockets its layer 7 so D is also out.
upvoted 2 times
...
gargaditya
3 years, 6 months ago
Uneven load->Dynamo DB in on-demand mode instead of provisioned(even with auto scaling) So A and D are out. minimal server maintenance->C is out Answer is B. NOTE: The newer generations of LB(ALB,NLB) support Websockets additional info-The newer generations of LB(ALB,NLB) support SNI
upvoted 5 times
...
manan728
3 years, 6 months ago
Minimal server maintenance, so B will be a better choice.
upvoted 2 times
...
Veny
3 years, 7 months ago
B, is a flexibility capacity mode for dynamo-db, also serving thousands of request per seco without requiring capacity planning..
upvoted 4 times
...
KK_uniq
3 years, 7 months ago
B for sure
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 ...