Questions 49 to 51

Explanations for questions 49 to 51

We'll cover the following

Question 49

A solutions architect just completed the implementation of a 2-tier web application for a client. The application uses Amazon EC2 instances, Amazon ELB, and Auto Scaling across two subnets. After deployment, the solutions architect noticed that only one subnet has EC2 instances running in it. What might be the cause of this situation?

  1. The ELB is configured as an internal-only load balancer.
  2. The Auto Scaling group has not been configured with multiple subnets.
  3. Cross-zone load balancing is not enabled on the ELB.
  4. The AMI is missing from the ASG’s launch configuration.

Correct Answer: 2

Explanation: You can specify which subnets Auto Scaling will launch new instances into. Auto Scaling will try to distribute EC2 instances evenly across AZs. If only one subnet has EC2 instances running in it, the first thing to check is if you have added all relevant subnets to the configuration.

INCORRECT:The ELB is configured as an internal-only load balancer.” is incorrect. The type of ELB deployed is not relevant here because Auto Scaling is responsible for launching instances into subnets whereas ELB is responsible for distributing connections to the instances.

CORRECT:The Auto Scaling group has not been configured with multiple subnets.” is the correct answer.

INCORRECT:Cross-zone load balancing is not enabled on the ELB.” is incorrect. Cross-zone load balancing is an ELB feature and ELB is not the issue here as it is not responsible for launching instances into subnets.

INCORRECT:The AMI is missing from the ASG’s launch configuration.” is incorrect. If the AMI was missing from the launch configuration, no instances would be running.

References: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.