Exam DOP-C02 All QuestionsBrowse all questions from this exam
Question 274

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?

    Correct Answer: C

    The appropriate solution involves using a method that directly manages traffic based on health checks per Availability Zone. Both options A and B mention turning off cross-zone load balancing, which could lead to inefficient use of resources. Option D involves creating a readiness check rule, but it does not directly mitigate routing traffic away from an unhealthy Availability Zone. Option C suggests creating an Amazon Route 53 Application Recovery Controller resource set using the DNS hostname of the ALB and starting a zonal shift away from the affected Availability Zone, which directly addresses the requirement of avoiding sending traffic to the compromised zone during failover. Therefore, creating a resource set and managing traffic using DNS hostname provides a more comprehensive and effective solution.

Discussion
inturistOption: A

For me the correct answer is A:"Note that the Elastic Load Balancing resources must have cross-zone load balancing turned off to use this capability." https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.html

trungtdOption: C

A&B Turn off cross-zone load balancing is a bad idea D involves creating a readiness check rule (ElbV2TargetGroupsCanServeTraffic) which checks the ability of the ALB’s target groups to serve traffic. However, this does not directly control traffic routing based on Availability Zone health. C Route 53 Application Recovery Controller: It directly manages traffic based on health checks and allows for zonal shifts Zonal Shift: Specifically addresses the requirement to avoid sending traffic to an Availability Zone experiencing issues