Hybrid ECS with Fargate and Anywhere
Short answer
AB Use AWS Fargate for cloud containers and Amazon ECS Anywhere for on-premises containers, combined with an Application Load Balancer for HTTP traffic.
Question
Key Takeaways
The question tests the integration of ECS Anywhere for on-premises nodes with Fargate for serverless cloud containers, while identifying that HTTP traffic mandates an Application Load Balancer over Network Load Balancers.
This scenario requires a unified container orchestration strategy across on-premises and AWS environments using Amazon ECS. The correct configuration leverages AWS Fargate for cloud workloads and ECS Anywhere for hybrid connectivity, paired with an Application Load Balancer.
Common mistake: Candidates often choose EC2 launch types (Option E) or confuse NLB with ALB (Option C), failing to recognize that 'serverless' implies Fargate and 'HTTP' implies Layer 7 load balancing.
Expert Analysis
Why the Answer Is Correct
To meet the requirement of running new containers in the AWS Cloud with minimal operational overhead, the AWS Fargate launch type is ideal as it is serverless. For the on-premises application containers, Amazon ECS Anywhere allows you to register on-premises servers as part of an ECS cluster, effectively creating a hybrid environment. Therefore, Option A correctly pairs Fargate for the cloud and ECS Anywhere for on-premises. Regarding traffic, since the company must use a load balancer specifically for HTTP traffic, an Application Load Balancer (ALB) is required because it operates at Layer 7 (HTTP/HTTPS). Option B correctly specifies setting up an ALB.
Why the Other Options Are Wrong
Option C suggests a Network Load Balancer (NLB), which operates at Layer 4 (TCP/UDP) and does not support native HTTP routing features like host-based routing, making it incorrect for HTTP traffic. Option D claims Fargate can be used for on-premises containers; however, Fargate is exclusively an AWS managed service for cloud instances and cannot run on physical on-premises hardware. Option E mixes EC2 and Fargate launch types incorrectly, suggesting Fargate for on-premises (which is impossible) and EC2 for cloud (which is valid but less optimal than Fargate if serverless is preferred, though the fatal flaw is the on-prem Fargate claim).
Community Comment Notes
Community consensus strongly supports AB. As user Scheldon noted, "We need to load-balance HTTP traffic hence Application Load Balancer is needed," highlighting the Layer 7 requirement. User KennethNg923 emphasized the necessity of using "Amazon ECS Anywhere" for the on-premises component. Another user pointed out that mixing EC2 and Fargate unnecessarily complicates the solution, reinforcing the preference for the unified Fargate/Anywhere approach.
Official Reference
- https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_On_Premises.html
- https://docs.aws.amazon.com/AmazonECS/latest/developerguide/Welcome.html
These links open the official vendor documentation in a new tab.
Exam Strategy
Always match the protocol to the load balancer: HTTP/HTTPS requires an Application Load Balancer (Layer 7), while TCP/UDP requires a Network Load Balancer (Layer 4). For hybrid ECS scenarios, remember that ECS Anywhere is the specific feature for connecting non-AWS infrastructure to ECS clusters.
Frequently Asked Questions
Why can't I use Fargate for on-premises containers?
Is Network Load Balancer suitable for HTTP traffic?
Community Votes
100% of anonymous learners picked answer AB. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 7 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 7
-
Scheldon 👍 5Answer: AB We need to load-balance HTTP traffic hence Application Load Balancer is needed. Because Customer want to use container solution we need to use ECS with Fargate which will lunch cloud applications. To run on-premises applications in containers we need to use ECS Anyware. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html https://docs.aws.amazon.com/AmazonECS/latest/developerguide/Welcome.html
-
emakid 👍 3the combination of setting up an ECS cluster with Fargate for the cloud and ECS Anywhere for on-premises, along with using an Application Load Balancer, provides a scalable, hybrid, and cloud-native solution with minimal operational overhead.
-
KennethNg923 👍 3Have to use fargate, and since it has on-premises application so it need to use Amazon ECS Anywhere
-
muhammadahmer36 👍 2AB.the combination of setting up an ECS cluster with Fargate for the cloud and ECS Anywhere for on-premises, along with using an Application Load Balancer, provides a scalable, hybrid, and cloud-native solution with minimal operational overhead.
-
Hkayne 👍 2AB is the correct answer,must lunch the cluster as external lunch
Show 2 more comments
-
LeonSauveterre 👍 1E is incorrect because the combination of EC2 for cloud containers and Fargate for on-premises containers is unnecessary and would complicate the solution unnecessarily. Using ECS Anywhere with Fargate for both environments is a simpler and more efficient approach (option A). Also, HTTP => ALB; TCP/UDP => NLB.
-
0bdf3af 👍 1BD. https://aws.amazon.com/blogs/aws/getting-started-with-amazon-ecs-anywhere-now-generally-available/
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SAA-C03 Questions
Access 120 questions with complete answers and detailed explanations.
View Full SAA-C03 Practice Test →