Complete the code to create a load balancer that distributes traffic evenly.
LoadBalancerName: "MyLoadBalancer" Listeners: - Protocol: HTTP LoadBalancerPort: 80 InstancePort: [1]
The load balancer listens on port 80 to distribute HTTP traffic to instances on the same port.
Complete the code to specify the health check path for the load balancer.
HealthCheck: Target: "HTTP:[1]/health" Interval: 30 Timeout: 5
The health check uses HTTP on port 80 to verify instance health.
Fix the error in the listener configuration to allow HTTPS traffic.
Listeners: - Protocol: [1] LoadBalancerPort: 443 InstancePort: 443
HTTPS protocol is required for secure traffic on port 443.
Fill both blanks to configure a load balancer with cross-zone load balancing enabled and a security group.
LoadBalancerAttributes: CrossZoneLoadBalancing: [1] SecurityGroups: - [2]
Cross-zone load balancing should be enabled with 'true'. Security group IDs like 'sg-123abc45' control access.
Fill all three blanks to define a target group with a health check path and protocol.
TargetGroup: Name: "MyTargetGroup" Protocol: [1] Port: [2] HealthCheckPath: "[3]"
The target group uses HTTP on port 80 with a health check path '/healthcheck' to monitor instance health.