Bird
0
0

You want to use a target group with Lambda functions and EC2 instances. How should you configure this?

hard📝 Architecture Q9 of 15
AWS - Elastic Load Balancing
You want to use a target group with Lambda functions and EC2 instances. How should you configure this?
ARegister Lambda functions and EC2 instances in the same target group.
BUse only Lambda functions in target groups; EC2 instances cannot be targets.
CCreate separate target groups for Lambda and EC2, then attach both to the load balancer.
DAttach Lambda functions directly to the load balancer without target groups.
Step-by-Step Solution
Solution:
  1. Step 1: Understand target group target types

    Target groups accept one target type: instance, IP, or Lambda. Mixing Lambda and EC2 in one group is not supported.
  2. Step 2: Correct configuration approach

    Create separate target groups for Lambda and EC2, then attach both to the load balancer to route traffic accordingly.
  3. Final Answer:

    Create separate target groups for Lambda and EC2, then attach both to the load balancer. -> Option C
  4. Quick Check:

    Separate target groups needed for different target types [OK]
Quick Trick: Use separate target groups for Lambda and EC2 [OK]
Common Mistakes:
  • Trying to mix Lambda and EC2 in one target group
  • Assuming EC2 cannot be targets
  • Thinking Lambda attaches directly without target groups

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes