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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
masetromain
Highly Voted 11 months 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 22 times
...
zhangyu20000
Highly Voted 2 years, 8 months ago
Answer is A. ABC all works but A is most COST EFFECTIVE
upvoted 16 times
masetromain
2 years, 8 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
Kirkster
7 months, 1 week ago
10 GB is ENORMOUS for a container image. Even most Windows Server OS container images (which won't work in Lambda anyway) are smaller than that, and it's very very rare to see a Linux container image over ~1 GB (typically they are a few hundred MB)
upvoted 1 times
...
anita_student
2 years, 6 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 5 times
...
...
zhangyu20000
2 years, 8 months ago
https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/
upvoted 3 times
...
anita_student
2 years, 6 months ago
Yes, would be cheap, but can't run a web app from Lambda
upvoted 5 times
Kirkster
7 months, 1 week ago
Of course you can run web applications from Lambda, with API Gateway (or Lambda HTTP URL) in front of it. You have to refactor a little, unless you're using ASP.NET Core, which can run nearly unmodified in Lambda using the Amazon.Lambda.AspNetCoreServer package.
upvoted 1 times
...
...
yuyuyuyuyu
2 years, 7 months ago
I do not think A is the right answer. Because image must be upload to the ECR.
upvoted 4 times
...
...
475ded6
Most Recent 1 day, 5 hours ago
Selected Answer: A
Option A is the most cost-effective and best meets the requirements because: It uses AWS Lambda with container images, providing a fully serverless architecture for microservices. API Gateway routes requests to separate production and testing Lambda functions, ensuring distinct environments.
upvoted 1 times
...
Jennie95
4 days, 11 hours ago
Selected Answer: B
"To create a Lambda function from a container image, build your image locally and upload it to an Amazon Elastic Container Registry (Amazon ECR) repository." https://docs.aws.amazon.com/lambda/latest/dg/images-create.html Thus A is not correct so must be B
upvoted 1 times
...
dzhuang
1 week ago
Selected Answer: A
The Point is in the question:The company needs to refactor the application as microservices that run on containers. sure A
upvoted 1 times
...
aszd
2 weeks, 1 day ago
Selected Answer: A
🧠 Why A is correct for SAP-C02: Lambda does support container images up to 10 GB → This is official AWS functionality: https://docs.aws.amazon.com/lambda/latest/dg/images-create.html You don’t need ECS or ECR (explicitly) in the answer → AWS Lambda can pull container images from Amazon ECR, which is implied. The exam doesn't test whether the image is in ECR — only that you can deploy containers to Lambda, which is true. “Most cost-effective” and “serverless” are the key exam keywords → Lambda has zero idle cost, no infra to manage, and automatic scaling → ECS/EKS/Fargate introduce ALBs, networking, cluster logic = more cost and complexity You can run web apps in Lambda → Especially with API Gateway in front → Even frameworks like ASP.NET Core can run with slight adaptation
upvoted 1 times
...
percolate792
1 month, 1 week ago
Selected Answer: B
Appropriate answer is B
upvoted 1 times
...
princajen
1 month, 2 weeks ago
Selected Answer: A
While both A and B are valid real-world solutions, A is more aligned with: Cost-effectiveness Simplicity AWS exam preference for serverless-first solutions Container support with Lambda
upvoted 1 times
...
BIKEBUG
1 month, 2 weeks ago
Selected Answer: A
AWS Lambda now supports container images (up to 10 GB), so you can package your microservices as containers and run them serverlessly. As per the needs in the question, it tickets the boxes of low operational complexity and low cost. However there is one catch. Lambda can be used only for runtimes <=15 min. So if the containerised applications need to run > 15min per invocation, then option B. Since the questions doesn't specifically talk about any timing, i would stick with A
upvoted 1 times
...
sasivarenan
1 month, 4 weeks ago
Selected Answer: B
A is definitely no for hosting web applications, web applications typically make multiple HTTP requests where stick session are required which is not supported by API Gateway. So B looks perfect
upvoted 1 times
...
0dc6cac
2 months, 1 week ago
Selected Answer: A
I think it's A, you can upload docker images to lambda, and it's serverless. I don't think ECS can count as serverless in this case.
upvoted 1 times
ThanhNgao
1 month, 1 week ago
Fargate is serverless
upvoted 1 times
...
...
rhuanca
2 months, 2 weeks ago
Selected Answer: A
looks like now since 2020 lambda support container images https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/?utm_source=chatgpt.com
upvoted 2 times
...
SBoksh
3 months ago
Selected Answer: A
https://docs.aws.amazon.com/lambda/latest/dg/images-create.html
upvoted 1 times
...
zhen234
6 months, 2 weeks ago
Selected Answer: A
most cost-effective and lest operational overhead
upvoted 1 times
...
Kirkster
7 months, 1 week ago
Selected Answer: B
I was initially torn between A and B, but answer A says to upload the container image to Lambda, which isn't possible - to use a container with Lambda, you still upload the image to ECR. Answer D (Beanstalk) isn't the most cost-effective for running containers. So between B and C (ECS vs EKS), ECS has less operational overhead, and also doesn't require the master node to be running, which means ECS will likely be very slightly cheaper, and have less operational work.
upvoted 1 times
...
fbukevin
7 months, 3 weeks ago
Selected Answer: B
At the time I consider B & C without doubt. But finally consider to migration efforts, I choose B. I don't really consider the cost between B & C.
upvoted 1 times
...
attila9778
8 months, 3 weeks ago
Selected Answer: B
AWS Fargate launch type for Amazon ECS is indeed a pay-per-use model. With Fargate, you pay for the amount of vCPU and memory resources that your containerized application requests. The billing is based on the resources used from the time your container images are pulled until the Amazon ECS task terminates, rounded up to the nearest second, with a minimum charge of one minute12. This model allows you to focus on building and managing your applications without worrying about managing the underlying infrastructure, making it a convenient and scalable option for many use cases. See: https://aws.amazon.com/ecs/pricing/
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 ...