Bird
0
0

Given the following AWS CLI command to enable cross-zone load balancing on a Classic Load Balancer:

medium📝 service behavior Q13 of 15
AWS - Elastic Load Balancing
Given the following AWS CLI command to enable cross-zone load balancing on a Classic Load Balancer:
aws elb modify-load-balancer-attributes --load-balancer-name my-load-balancer --load-balancer-attributes '{"CrossZoneLoadBalancing":{"Enabled":true}}'

What will be the effect of running this command?
ACross-zone load balancing will be disabled for the load balancer.
BCross-zone load balancing will be enabled, distributing traffic evenly across zones.
CThe load balancer will be deleted.
DThe command will fail due to syntax error.
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the AWS CLI command structure

    The command modifies load balancer attributes, specifically enabling CrossZoneLoadBalancing by setting Enabled to true.
  2. Step 2: Understand the effect of enabling CrossZoneLoadBalancing

    Enabling it causes traffic to be evenly distributed across all registered targets in all zones.
  3. Final Answer:

    Cross-zone load balancing will be enabled, distributing traffic evenly across zones. -> Option B
  4. Quick Check:

    Enable CrossZoneLoadBalancing true = even traffic spread [OK]
Quick Trick: Enabled true means cross-zone load balancing is active [OK]
Common Mistakes:
  • Thinking the command disables the feature
  • Assuming the load balancer is deleted
  • Believing the command syntax is incorrect

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes