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 834 discussion

A retail company runs a business-critical web service on an Amazon Elastic Container Service (Amazon ECS) cluster that runs on Amazon EC2 instances. The web service receives POST requests from end users and writes data to a MySQL database that runs on a separate EC2 instance. The company needs to ensure that data loss does not occur.
The current code deployment process includes manual updates of the ECS service. During a recent deployment, end users encountered intermittent 502 Bad
Gateway errors in response to valid web requests.
The company wants to implement a reliable solution to prevent this issue from recurring. The company also wants to automate code deployments. The solution must be highly available and must optimize cost-effectiveness.
Which combination of steps will meet these requirements? (Choose three.)

  • A. Run the web service on an ECS cluster that has a Fargate launch type. Use AWS CodePipeline and AWS CodeDeploy to perform a blue/green deployment with validation testing to update the ECS service.
  • B. Migrate the MySQL database to run on an Amazon RDS for MySQL Multi-AZ DB instance that uses Provisioned IOPS SSD (io2) storage.
  • C. Configure an Amazon Simple Queue Service (Amazon SQS) queue as an event source to receive the POST requests from the web service. Configure an AWS Lambda function to poll the queue. Write the data to the database.
  • D. Run the web service on an ECS cluster that has a Fargate launch type. Use AWS CodePipeline and AWS CodeDeploy to perform a canary deployment to update the ECS service.
  • E. Configure an Amazon Simple Queue Service (Amazon SQS) queue. Install the SQS agent on the containers that run in the ECS cluster to poll the queue. Write the data to the database.
  • F. Migrate the MySQL database to run on an Amazon RDS for MySQL Multi-AZ DB instance that uses General Purpose SSD (gp3) storage.
Show Suggested Answer Hide Answer
Suggested Answer: ACF 🗳️

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
pinhead900
Highly Voted 2 years, 2 months ago
Selected Answer: ABC
Since it is a business critical app need Blue-Green with validation, therefore A, canary might cause error for some users. RDS doesnt support GP3 but moving to RDS is essential, therefore B must be right. C to save costs - SQS and Lambda
upvoted 7 times
Cloudxie
2 years, 2 months ago
This makes the new gp3 volumes ideal for a wide variety of applications that require high performance at low cost, including MySQL, Cassandra, virtual desktops, and Hadoop analytics clusters
upvoted 1 times
...
...
rsn
Most Recent 1 year, 3 months ago
Selected Answer: AEF
It has to be either a Lambda based solution or ECS based solution. Not both.. If you chose C, then there must be an option to say how it is being deployed. So I go with AEF
upvoted 1 times
...
rbm2023
1 year, 6 months ago
Selected Answer: ACF
Depends on the date for this question. A - Blue Green, because you want to test first and then green light the new version. Canary is not a good option in this case because it might maintain the failed requests. C - using SQS with a lambda will decouple the functionalities and as far as I know there is no SQS agent mentioned on option E. F - Amazon RDS now supports new General Purpose gp3 storage volumes. General purpose would be more cost effective as B suggests provisioned IOPS i would go with F. Posted On: Nov 9, 2022 https://aws.amazon.com/about-aws/whats-new/2022/11/amazon-rds-general-purpose-gp3-storage-volumes/
upvoted 2 times
...
Jesuisleon
1 year, 6 months ago
Selected Answer: ACF
A seems better than D. Both blue/green deployment and canary deployment can fullfil this task, but from this link https://aws.amazon.com/blogs/containers/create-a-pipeline-with-canary-deployments-for-amazon-ecs-using-aws-app-mesh/ , canary seems to need AWS App Mesh while for blue/green just CodePipeline. To be honest, I am not sure. C is right, everyone agrees with it. F is right than B. see this :"General Purpose SSD gp3 storage is supported on Single-AZ and Multi-AZ DB instances, but isn't supported on Multi-AZ DB clusters. For more information, see Configuring and managing a Multi-AZ deployment and Multi-AZ DB cluster deployments." from https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html GP3 support RDS Multi-AZ instances not support RDS Multi-AZ clusters, so F is cost-effectiveness
upvoted 2 times
...
breathingcloud
2 years ago
RDS do support gp3 volumes but not on MultiAZ configuration, Blue/Green Deployment over canary so the answer is ABC
upvoted 2 times
...
Jonfernz
2 years ago
Selected Answer: ACF
It's ACF. RDS has gp3 now. https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html
upvoted 2 times
Jonfernz
2 years ago
gp3 storage By using General Purpose SSD gp3 storage volumes, you can customize storage performance independently of storage capacity. Storage performance is the combination of I/O operations per second (IOPS) and how fast the storage volume can perform reads and writes (storage throughput). On gp3 storage volumes, Amazon RDS provides a baseline storage performance of 3000 IOPS and 125 MiBps. For every RDS DB engine except RDS for SQL Server, when the storage size for gp3 volumes reaches a certain threshold, the baseline storage performance increases to 12,000 IOPS and 500 MiBps. This is because of volume striping, where the storage uses four logical volumes instead of one. RDS for SQL Server doesn't support volume striping, and therefore doesn't have a threshold value.
upvoted 1 times
...
...
alxjandroleiva
2 years, 1 month ago
Selected Answer: CDF
cost-effectiveness
upvoted 1 times
...
fais1985
2 years, 1 month ago
Correct Answer :- ABC A - prevent 502 errors , but expensive B - Supports GP2, PIOPS & Magnetic Only https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html C - SQS+ Lambda Cost saving
upvoted 1 times
...
Ni_yot
2 years, 1 month ago
My Choice is ACF
upvoted 1 times
...
Blair77
2 years, 2 months ago
Selected Answer: AC
A- Make more sens than Canary to prevent 502 bad gateway - OK B- io2 - not available for RDS MySQL - not OK C- SQS + Lambda > installing SQS agent - OK D- A is a better option for not facing 502 Bad gtw - not OK E- wrong option - not OK F- gp3 - not available for RDS MySQL - not OK RDS MySQL actually support only gp2 & io1 storage. I can only have two good answer: A & C This is a very difficult one!
upvoted 2 times
Ni_yot
2 years, 1 month ago
it does support gp3. - https://aws.amazon.com/blogs/aws/new-amazon-ebs-gp3-volume-lets-you-provision-performance-separate-from-capacity-and-offers-20-lower-price/
upvoted 2 times
...
...
kadev
2 years, 3 months ago
ACF B is wrong: iOPS not cost-effectiveness D is wrong: canary will replace all tasks => could cause 502 err again E: SQS agent is not exist, you need use sdk to build procuder and consumer About F : i think that is a typing errer (General Purpose SSD is clearly but he typo gp3 instead of gp2)
upvoted 4 times
...
foureye2004
2 years, 3 months ago
Selected Answer: ABC
ABC because RDS does not support GP3 right now
upvoted 3 times
Blair77
2 years, 2 months ago
B - io2 is not available for RDS MySQL...
upvoted 1 times
...
...
gnic
2 years, 3 months ago
Selected Answer: CDF
CDF -> canary deployment, cost-effective
upvoted 2 times
...
asfsdfsdf
2 years, 4 months ago
Selected Answer: ACF
ACF - The only concern is about D which is more cost effective - however it may cause some users to report errors if. So if its a dependable solution it must be blue/green even its expensive no other choice as the question is not allowing failures. GP3 is + MultAZ will provide good cost effective solution For DB part And SQS will make sure no drop of data - you dont need to install an agent for this if using lambda
upvoted 3 times
...
hilft
2 years, 5 months ago
A. You need Blue/Green over Canary for HA. B. AWS doesn't recommend GP2/3 for database C. SQS + Lambda > installing SQS agent It's ABC
upvoted 2 times
hilft
2 years, 4 months ago
I would go ABC too. gp2 isn't for DBs.
upvoted 2 times
Blair77
2 years, 2 months ago
Cone on guys, gp2 is exactly for RDS DB! https://aws.amazon.com/fr/blogs/database/best-storage-practices-for-running-production-workloads-on-hosted-databases-with-amazon-rds-or-amazon-ec2/
upvoted 1 times
...
...
...
aandc
2 years, 5 months ago
CDF. Canary -> cost effective
upvoted 3 times
...
makpk
2 years, 5 months ago
Selected Answer: ACF
ACF. There is a consensus for C. Why A? app is mission critical and question asks for HA. Blue/Green is gives your much better HA than canary. Why F? - there isn’t anything in question premise that hints towards provisioned IOPS or any issue with IO per se. On the contrary, question asks for cost effectiveness. So, live with GP instead of provisioned IOPS.
upvoted 1 times
wannaaws
2 years, 5 months ago
Consideration is HA + Costs. Canary is also safe for deployment, though as not HA as b/g, while cost wise, it's cheaper. https://aws.amazon.com/about-aws/whats-new/2020/02/amazon-elastic-container-service-support-canary-deployments/ https://harness.io/blog/continuous-verification/blue-green-canary-deployment-strategies/
upvoted 1 times
sb333
2 years, 2 months ago
The question states that users should not receive errors. With Canary, that is entirely possible. With answer A, it includes testing before switching over to the new deployment.
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 ...