Bird
0
0

You need to deploy a microservice architecture using Fargate with multiple containers communicating securely. What is the best way to enable container-to-container communication?

hard📝 Architecture Q9 of 15
AWS - ECS and Fargate
You need to deploy a microservice architecture using Fargate with multiple containers communicating securely. What is the best way to enable container-to-container communication?
ADeploy containers in different VPCs without peering
BUse the same ECS service with 'awsvpc' network mode and security groups allowing traffic
CUse public IP addresses for all containers
DDisable security groups to allow all traffic
Step-by-Step Solution
Solution:
  1. Step 1: Understand container communication in Fargate

    Using 'awsvpc' network mode assigns ENIs and private IPs; security groups control traffic between containers.
  2. Step 2: Identify best practice for secure communication

    Deploying containers in the same ECS service with proper security group rules allows secure communication.
  3. Final Answer:

    Use the same ECS service with 'awsvpc' network mode and security groups allowing traffic -> Option B
  4. Quick Check:

    Same VPC + security groups = secure container communication [OK]
Quick Trick: Use security groups with 'awsvpc' for container communication [OK]
Common Mistakes:
  • Deploying in separate VPCs without peering
  • Using public IPs unnecessarily
  • Disabling security groups reduces security

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes