Frequently asked questions and answers of Elastic IPs and Elastic Load Balancers in Cloud Computing of Computer Science to enhance your skills, knowledge on the selected topic. We have compiled the best Elastic IPs and Elastic Load Balancers Interview question and answer, trivia quiz, mcq questions, viva question, quizzes to prepare. Download Elastic IPs and Elastic Load Balancers FAQs in PDF form online for academic course, jobs preparations and for certification exams .
Intervew Quizz is an online portal with frequently asked interview, viva and trivia questions and answers on various subjects, topics of kids, school, engineering students, medical aspirants, business management academics and software professionals.
Question-1. What is an Elastic IP in AWS?
Answer-1: An Elastic IP is a static, public IPv4 address designed for dynamic cloud computing, allowing you to remap the address to any instance in your account.
Question-2. What is an Elastic Load Balancer (ELB)?
Answer-2: An ELB automatically distributes incoming application traffic across multiple targets, such as EC2 instances, in multiple availability zones.
Question-3. What are the different types of ELBs?
Answer-3: AWS provides three types: Application Load Balancer (ALB), Network Load Balancer (NLB), and Gateway Load Balancer (GLB).
Question-4. Can you associate an Elastic IP with a Load Balancer?
Answer-4: No, Elastic IPs can only be associated with instances or network interfaces, not with Application or Network Load Balancers directly.
Question-5. What are the use cases of Elastic IPs?
Answer-5: Elastic IPs are used for maintaining a consistent public IP address for services that require it even when the underlying instance changes.
Question-6. How is an Elastic IP different from a standard public IP?
Answer-6: A standard public IP changes when you stop/start an EC2 instance; an Elastic IP remains static until released.
Question-7. What is the cost of using Elastic IPs?
Answer-7: The first Elastic IP is free if it's associated with a running instance; otherwise, there's a small hourly charge.
Question-8. How does an Application Load Balancer work?
Answer-8: It operates at the HTTP/HTTPS layer and routes requests based on content, using rules and listener conditions.
Question-9. What is a listener in ELB?
Answer-9: A listener checks for connection requests from clients and forwards them to one or more target groups based on configured rules.
Question-10. What is a target group in ELB?
Answer-10: A target group is used to route requests to one or more registered targets, such as EC2 instances or IP addresses.
Question-11. Can you attach multiple Elastic IPs to a single EC2 instance?
Answer-11: Yes, if the instance has multiple network interfaces, you can attach multiple Elastic IPs.
Question-12. What is the advantage of using an Elastic Load Balancer?
Answer-12: ELBs provide automatic scaling, high availability, and fault tolerance for applications.
Question-13. What is the default limit of Elastic IPs per AWS region?
Answer-13: By default, AWS allows up to 5 Elastic IPs per region, which can be increased upon request.
Question-14. What is cross-zone load balancing?
Answer-14: It allows load balancers to distribute incoming requests across instances in multiple availability zones.
Question-15. Can you use ELB with on-premise servers?
Answer-15: Yes, you can register on-premise servers as targets in a target group by specifying IP addresses.
Question-16. How does health checking work in ELB?
Answer-16: ELBs periodically ping registered targets to ensure they are healthy and route traffic only to healthy targets.
Question-17. What is sticky session in ELB?
Answer-17: Sticky sessions (session affinity) enable the load balancer to bind a user?s session to a specific target.
Question-18. What ports can be used with ELB?
Answer-18: ELB supports common ports like 80
Question-19. How does Network Load Balancer differ from Application Load Balancer?
Answer-19: NLB operates at the TCP layer and is optimized for performance; ALB operates at the HTTP layer and supports routing rules.
Question-20. Can you assign a static IP to a Network Load Balancer?
Answer-20: Yes, you can associate static IP addresses (Elastic IPs) with NLBs.
Question-21. How is fault tolerance achieved in ELB?
Answer-21: By distributing traffic across multiple availability zones and using health checks to route to healthy instances.
Question-22. Can you manually assign an Elastic IP to an EC2 in an Auto Scaling group?
Answer-22: No, Auto Scaling handles IP assignments dynamically; however, you can use a NAT gateway or load balancer.
Question-23. What is deregistration delay in ELB?
Answer-23: It is the time the load balancer waits before deregistering a target during a scale-in event.
Question-24. How does ELB handle SSL termination?
Answer-24: ELB can decrypt SSL traffic before forwarding it to instances, reducing the load on backend servers.
Question-25. Can you have multiple load balancers in a single VPC?
Answer-25: Yes, multiple ELBs can be configured in the same VPC for different applications.
Question-26. What is the limitation of Elastic IPs?
Answer-26: Elastic IPs are limited per region and are not automatically scalable or load balanced.
Question-27. Is it recommended to use Elastic IPs for high-traffic applications?
Answer-27: No, for scalability and fault tolerance, it's better to use a Load Balancer instead.
Question-28. What is a Gateway Load Balancer?
Answer-28: It is a type of ELB that enables deployment, scaling, and management of third-party virtual appliances.
Question-29. What is connection draining in ELB?
Answer-29: Also known as deregistration delay, it ensures in-flight requests are completed before the instance is deregistered.
Question-30. Can an Elastic IP be transferred across regions?
Answer-30: No, Elastic IPs are region-specific and cannot be transferred across regions.
Question-31. What happens if you stop an instance with an Elastic IP?
Answer-31: The Elastic IP remains allocated and incurs charges unless reassigned or released.
Question-32. Can Elastic IPs be used with Lambda functions?
Answer-32: No, Elastic IPs are tied to EC2 and ENIs, not serverless functions like Lambda.
Question-33. What is idle timeout in ELB?
Answer-33: Idle timeout is the time ELB waits before closing an idle connection; default is 60 seconds.
Question-34. How does ELB support autoscaling?
Answer-34: It integrates with Auto Scaling groups and automatically adjusts traffic distribution based on scaling events.
Question-35. What are access logs in ELB?
Answer-35: Access logs capture detailed information about client requests sent to the load balancer, useful for auditing and debugging.
Question-36. Can Elastic IPs be released?
Answer-36: Yes, you can release Elastic IPs when they are no longer needed to avoid charges.
Question-37. How do you monitor ELB?
Answer-37: Using AWS CloudWatch, you can track metrics like request count, latency, and backend connection errors.
Question-38. How many targets can be in a target group?
Answer-38: Up to 1000 targets can be registered in a target group by default.
Question-39. What is host-based routing in ALB?
Answer-39: It routes traffic based on the host field in the HTTP header, useful for multiple domains.
Question-40. What is path-based routing?
Answer-40: It routes traffic to different targets based on the request path (e.g., `/api`, `/images`).
Question-41. What is DNS name of a Load Balancer?
Answer-41: AWS provides a DNS name (e.g., `myelb-123456.us-west-2.elb.amazonaws.com`) which you can use instead of an IP.
Question-42. Can you use Elastic IPs with private subnets?
Answer-42: No, Elastic IPs are public IPs and cannot be used with private subnets unless via NAT gateways.
Question-43. How is a Load Balancer provisioned in Terraform?
Answer-43: You define AWS ELB or ALB resources in Terraform configuration and apply them using `terraform apply`.
Question-44. Can ELB be used with containers?
Answer-44: Yes, especially with ECS or EKS, where services are registered as targets with ALBs or NLBs.
Question-45. How are security groups used with ELB?
Answer-45: Security groups control the inbound and outbound traffic to and from the load balancer.
Question-46. Can you perform blue-green deployment with ELB?
Answer-46: Yes, by switching traffic between different target groups or listener rules.
Question-47. How is DNS failover managed with ELB?
Answer-47: ELB integrates with Route 53 for DNS-based health checks and automatic failover.
Question-48. How many Elastic IPs can be associated with a NAT Gateway?
Answer-48: A single NAT Gateway can be associated with one Elastic IP.
Question-49. Can you change an Elastic IP after assigning it?
Answer-49: Yes, you can disassociate and reassign an Elastic IP to a different instance or network interface.
Question-50. Why are Elastic IPs discouraged in autoscaling architectures?
Answer-50: Because their static nature doesn?t scale with dynamically created and destroyed instances; ELB is more suited.
Frequently Asked Question and Answer on Elastic IPs and Elastic Load Balancers
Elastic IPs and Elastic Load Balancers Interview Questions and Answers in PDF form Online
Elastic IPs and Elastic Load Balancers Questions with Answers
Elastic IPs and Elastic Load Balancers Trivia MCQ Quiz