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

A company is running a traditional web application on Amazon EC2 instances. The company needs to refactor the application as microservices that run on containers. Separate versions of the application exist in two distinct environments: production and testing. Load for the application is variable, but the minimum load and the maximum load are known. A solutions architect needs to design the updated application with a serverless architecture that minimizes operational complexity.
Which solution will meet these requirements MOST cost-effectively?

  • A. Upload the container images to AWS Lambda as functions. Configure a concurrency limit for the associated Lambda functions to handle the expected peak load. Configure two separate Lambda integrations within Amazon API Gateway: one for production and one for testing.
  • B. Upload the container images to Amazon Elastic Container Registry (Amazon ECR). Configure two auto scaled Amazon Elastic Container Service (Amazon ECS) clusters with the Fargate launch type to handle the expected load. Deploy tasks from the ECR images. Configure two separate Application Load Balancers to direct traffic to the ECS clusters.
  • C. Upload the container images to Amazon Elastic Container Registry (Amazon ECR). Configure two auto scaled Amazon Elastic Kubernetes Service (Amazon EKS) clusters with the Fargate launch type to handle the expected load. Deploy tasks from the ECR images. Configure two separate Application Load Balancers to direct traffic to the EKS clusters.
  • D. Upload the container images to AWS Elastic Beanstalk. In Elastic Beanstalk, create separate environments and deployments for production and testing. Configure two separate Application Load Balancers to direct traffic to the Elastic Beanstalk deployments.
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
masetromain
Highly Voted 1 month, 4 weeks ago
Selected Answer: B
B. Upload the container images to Amazon Elastic Container Registry (Amazon ECR). Configure two auto scaled Amazon Elastic Container Service (Amazon ECS) clusters with the Fargate launch type to handle the expected load. Deploy tasks from the ECR images. Configure two separate Application Load Balancers to direct traffic to the ECS clusters. This option meets the requirement of using a serverless architecture by utilizing the Fargate launch type for the ECS clusters, which allows for automatic scaling of the containers based on the expected load. It also allows for separate deployments for production and testing by configuring separate ECS clusters and Application Load Balancers for each environment. This option also minimizes operational complexity by utilizing ECS and Fargate for the container orchestration and scaling.
upvoted 20 times
...
zhangyu20000
Highly Voted 1 year, 11 months ago
Answer is A. ABC all works but A is most COST EFFECTIVE
upvoted 14 times
masetromain
1 year, 11 months ago
Is true but " you can now package and deploy Lambda functions as container images of up to 10 GB in size." the size is not specified, personally I find it too small
upvoted 3 times
anita_student
1 year, 9 months ago
10GB image is too small for what? I'm curious how do you containerise those images? I'd say the average image size is ~300-400MB
upvoted 4 times
...
...
zhangyu20000
1 year, 11 months ago
https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/
upvoted 3 times
...
anita_student
1 year, 9 months ago
Yes, would be cheap, but can't run a web app from Lambda
upvoted 5 times
...
yuyuyuyuyu
1 year, 10 months ago
I do not think A is the right answer. Because image must be upload to the ECR.
upvoted 4 times
...
...
TariqKipkemei
Most Recent 3 weeks, 1 day ago
Selected Answer: B
"microservices that run on containers, with a serverless architecture that minimizes operational complexity and costs" = Amazon Elastic Container Service (Amazon ECS)
upvoted 1 times
...
85b5b55
3 weeks, 5 days ago
Serverless and Most Cost-Effective Solutions - B
upvoted 1 times
...
AWSum1
1 month ago
Selected Answer: A
Choosing A, Fargate had a minimum charge per minute. Lambda is per invocation. So lambda Is probably cheaper in THIS case
upvoted 1 times
AWSum1
1 month ago
Adding to this, the questions states minimal operation complexity. ECR + ECS + ELB seems like quite a lot to manage
upvoted 1 times
...
...
c73bf38
1 month, 4 weeks ago
Selected Answer: B
Option B is the most cost-effective solution for the following reasons: The use of Fargate, a serverless compute engine for containers, eliminates the need for managing and scaling the underlying infrastructure. This minimizes operational complexity and reduces costs as the resources are used only when required. Auto scaling ensures that the application scales up and down based on the load, providing the required performance and availability without incurring additional costs. Amazon ECS is a simpler and more cost-effective solution than Amazon EKS, which requires more management and additional resources to operate the Kubernetes control plane. Using Application Load Balancers to direct traffic to the ECS clusters ensures high availability and fault tolerance.
upvoted 3 times
c73bf38
1 year, 9 months ago
Changing to A, B is not serverless and cost-effective.
upvoted 1 times
bcx
1 year, 5 months ago
Fargate is serverless by definition.
upvoted 2 times
...
...
...
Jonalb
1 month, 4 weeks ago
Selected Answer: B
Explanation: Amazon ECS with Fargate: By uploading the container images to Amazon ECR and using Amazon ECS with the Fargate launch type, you can run the microservices in containers without having to manage the underlying infrastructure. Fargate automatically scales the containers based on the load. Separate Production and Testing Environments: With two separate auto-scaled Amazon ECS clusters, you can have dedicated environments for production and testing, ensuring isolation and allowing for separate deployments and configurations. Application Load Balancers (ALB): Configuring two separate ALBs allows you to direct traffic to the appropriate ECS clusters. This ensures proper routing of requests between the production and testing environments. Option B provides a cost-effective solution by utilizing the serverless nature of Fargate, which eliminates the need to provision and manage EC2 instances explicitly. It also allows for separate environments, easy scalability, and traffic routing using ALBs, providing flexibility and minimizing operational complexity.
upvoted 2 times
...
atirado
1 month, 4 weeks ago
Selected Answer: B
Option A - This option might not work. AWS Lambda provides a cheap option to run containers however nothing is said about execution times could be a concern, i.e. AWS Lambda only provides 15 minutes of execution time Option B - This option will work. ALB, ECR, ECS and Fargate in combination will deliver a running solution. Option C - This option will work. ALB, ECR, EKS and Fargate will deliver a running solution. Option D - This option will work: Beanstalk will rely on ECS to run the containers. See https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker_ecs.html Cheapest option is B.
upvoted 4 times
...
amministrazione
2 months, 3 weeks ago
B. Upload the container images to Amazon Elastic Container Registry (Amazon ECR). Configure two auto scaled Amazon Elastic Container Service (Amazon ECS) clusters with the Fargate launch type to handle the expected load. Deploy tasks from the ECR images. Configure two separate Application Load Balancers to direct traffic to the ECS clusters.
upvoted 1 times
...
MAZIADI
3 months, 1 week ago
Selected Answer: A
A because ALB & Beanstalk are not serverless & Lambda added support to use docker images directly. you can upload container images to AWS Lambda and use them as functions. AWS Lambda introduced support for deploying functions as container images, allowing you to package and deploy Lambda functions with custom runtimes, libraries, and dependencies that might exceed the limitations of traditional Lambda deployment packages (zip files).
upvoted 1 times
...
ukivanlamlpi
4 months, 3 weeks ago
Selected Answer: A
NOT B and C, because ALB is not serverless architecture NOT D, because Beantalk is not serverless architecture A is also most effective
upvoted 1 times
...
4bc91ae
5 months ago
Selected Answer: A
A - COST EFFECTIVE (lambda is only solution where users pay by invocation)
upvoted 2 times
...
[Removed]
6 months, 2 weeks ago
Selected Answer: B
Once choose eks,do not config load balance manually
upvoted 1 times
...
TonytheTiger
7 months, 3 weeks ago
Selected Answer: B
Option B and NOT Option C: I wasn't able to find a good comparison btw AWS ECS vs AWS EKS pricing in AWS documentation however I found a few articles saying that AWS EKS has additional cost for using EKS control plane. I will leave it up to you to decide. https://www.densify.com/eks-best-practices/aws-ecs-vs-eks/
upvoted 2 times
...
MoT0ne
8 months, 1 week ago
AWS Elastic Beanstalk is not considered a serverless architecture. While it abstracts away some of the underlying infrastructure management, it still involves running and managing EC2 instances, which are virtual servers.
upvoted 1 times
...
_Jassybanga_
9 months, 2 weeks ago
D - because BCD are right solution , D because - beanstalk runs ECS in backend + Reduce operation complexity which is asked in the question
upvoted 1 times
...
liux99
10 months, 3 weeks ago
The confusion here is choice between B and C. Both ECS and EKS are container orchestration service which supports fargate. But ECS is aws fully managed, better suited for simple application and also more cost effective.
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 ...