Disable cross-zone load balancing on the target group and start an Application Recovery Controller zonal shift
A company has an application that runs on Amazon EC2 instances behind an Application Load Balancer (ALB). The EC2 instances are in multiple Availability Zones. The application was misconfigured in a single Availability Zone, which caused a partial outage of the application. A DevOps engineer made changes to ensure that the unhealthy EC2 instances in one Availability Zone do not affect the healthy EC2 instances in the other Availability Zones. The DevOps engineer needs to test the application's failover and shift where the ALB sends traffic. During failover, the ALB must avoid sending traffic to the Availability Zone where the failure has occurred. Which solution will meet these requirements?
Community Votes
57% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The zonal shift capability requires cross-zone load balancing to be disabled, and for an Application Load Balancer that setting lives on the target group, not on the load balancer (B). Option A tries to turn it off on the ALB, which the ALB documentation does not support, so the prerequisite would never be satisfied. Option C creates the resource set from the ALB's DNS hostname, but the shift cannot actually take effect while cross-zone load balancing remains enabled. Option D uses the target group ARN with an ElbV2TargetGroupsCanServeTraffic readiness check for automatic detection, which automates verification rather than shifting traffic away from the failed zone as the requirement states.
Route 53 Application Recovery Controller can shift traffic away from a failed Availability Zone for an Application Load Balancer, but AWS documentation states that the Elastic Load Balancing resources must have cross-zone load balancing turned off for this capability to work. Cross-zone load balancing on an Application Load Balancer is disabled through the attribute on its target group, not on the load balancer itself. With cross-zone load balancing off at the target group level, a zonal shift can move routing away from the impaired zone and the healthy targets in the other zones continue to serve traffic.
Turning off cross-zone load balancing on the ALB itself (A) — CHRIS12722222 and spring21 both noted this cannot be done at the ALB level; it is a target group attribute, making B the correct choice. Using a resource set created from the ALB's DNS hostname (C) — even with a valid resource set, zonal shift requires cross-zone load balancing to be disabled, which option C never does. Creating a resource set from the target group ARN with an ElbV2TargetGroupsCanServeTraffic readiness check (D) — the readiness check is an automatic application recovery verification mechanism, not a mechanism for shifting traffic away from an impaired Availability Zone.
Community Discussion (9 comments)
- Turning off cross-zone load balancing on the ALB ensures that each Availability Zone only handles traffic directed to its own healthy instances, allowing for granular control over traffic distribution. This prevents the ALB from sending traffic to the unhealthy instances across all zones, thereby isolating the problem to the affected zone. - Amazon Route 53 Application Recovery Controller's Zonal Shifts is used to direct traffic away from a specific AZ that experiences a failure, allowing the ALB to reroute requests to healthy AZs automatically. Amazon Route 53 Application Recovery Controller currently supports the following resources for zonal shift and zonal autoshift: - Network Load Balancers with cross-zone load balancing disabled - Application Load Balancers with cross-zone load balancing disabled https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.resource-types.html
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Amazon Route 53 Application Recovery Controller supports zonal shifts for Application Load Balancers so that traffic can be moved away from an impaired Availability Zone, and AWS documentation states that the Elastic Load Balancing resources must have cross-zone load balancing turned off to use this capability. For an Application Load Balancer, cross-zone load balancing is an attribute of its target groups rather than of the load balancer, so the correct configuration step is to turn it off on the ALB's target group (B). With that prerequisite satisfied, starting a zonal shift away from the failed Availability Zone causes the load balancer to stop sending traffic there while the healthy targets in the other zones continue to serve, which is exactly the failover behavior and traffic shift the requirement describes.Why the Other Options Are Wrong
A instructs turning off cross-zone load balancing on the Application Load Balancer. As spring21 and CHRIS12722222 observed, this setting cannot be changed at the ALB level for an Application Load Balancer; it must be disabled through the target group settings, so this step would not achieve the prerequisite. C creates an Application Recovery Controller resource set from the ALB's DNS hostname and starts a zonal shift, but it never disables cross-zone load balancing, so the documented prerequisite for the capability is unmet and the shift cannot behave as required. D creates a resource set from the target group ARN with an ElbV2TargetGroupsCanServeTraffic readiness check; that readiness check is the mechanism for automatically verifying application recovery readiness, not for initiating a zonal shift away from a failed zone, so it does not meet the requirement to shift where the ALB sends traffic. B is the correct answer.Community Comment Notes
Community was split, A (52) versus B (39). inturist supported A citing the zonal shift documentation's note about cross-zone load balancing, but CHRIS12722222 and Shenannigan both cited the ALB documentation showing cross-zone load balancing is disabled through the target group for an Application Load Balancer, making B correct. The documentation basis for B is the more specific and verifiable of the two.Official Reference
Related Analysis
Practice All DOP-C02 Questions
Access 85 questions with complete answers and detailed explanations.
View Full DOP-C02 Practice Test →