Pick the target type for an ALB serving Lambda, instances and IPs in the same system.
IntermediateScenarioEC2, Auto Scaling and Load Balancing
Answer
Situation read → Target groups can be instance, IP or Lambda type.
What I'd do →
- Instance for ASG-managed hosts
- IP for containers on awsvpc networking, peered or on-prem addresses
- Lambda for serverless endpoints, invoked synchronously
- Weighted forwarding lets you migrate gradually between types
Why → One ALB can front mixed backends during migrations.
Interview tip → ECS with awsvpc must use IP targets.