{"id":184,"date":"2022-01-28T09:01:39","date_gmt":"2022-01-28T09:01:39","guid":{"rendered":"https:\/\/192.168.1.3\/wordpress\/?p=184"},"modified":"2025-02-24T11:29:38","modified_gmt":"2025-02-24T11:29:38","slug":"aws-solution-architect-associate-saac02-review-material-elb","status":"publish","type":"post","link":"https:\/\/mylinuxsite.com\/wordpress\/?p=184","title":{"rendered":"AWS Solution Architect Associate (SAA-C02) Review Material &#8211; ELB"},"content":{"rendered":"\n<figure class=\"wp-block-gallery aligncenter columns-2 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"557\" height=\"538\" src=\"http:\/\/192.168.1.3\/wordpress\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-29-at-21.37.47.png\" alt=\"\" data-id=\"193\" data-link=\"https:\/\/192.168.1.3\/wordpress\/?attachment_id=193\" class=\"wp-image-193\" srcset=\"https:\/\/mylinuxsite.com\/wordpress\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-29-at-21.37.47.png 557w, https:\/\/mylinuxsite.com\/wordpress\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-29-at-21.37.47-300x290.png 300w\" sizes=\"auto, (max-width: 557px) 100vw, 557px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"491\" src=\"http:\/\/192.168.1.3\/wordpress\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-29-at-22.01.04.png\" alt=\"\" data-id=\"197\" data-link=\"https:\/\/192.168.1.3\/wordpress\/?attachment_id=197\" class=\"wp-image-197\" srcset=\"https:\/\/mylinuxsite.com\/wordpress\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-29-at-22.01.04.png 700w, https:\/\/mylinuxsite.com\/wordpress\/wp-content\/uploads\/2022\/01\/Screenshot-2022-01-29-at-22.01.04-300x210.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<!--more continue reading-->\n\n\n\n<h4 class=\"wp-block-heading\"><strong>General<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Types of Load Balancers:<ol><li>Application Load Balancer (ALB)<\/li><li>Network Load Balancer (NLB)<\/li><li>Gateway Load Balancer (GLB)<\/li><li><s>Classic Load Balancer (CLB) &#8211; deprecated.<\/s><\/li><\/ol><\/li><li>Requires a target group (except for CLB)<\/li><li><strong>Cross-zone Balancing<\/strong> is supported by ALB and CLB. Without Cross-zone balancing each ELB instance will just balance within its own zone. With Cross-zone balancing the total traffic will be balance across the zones.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>ALB<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Requires at least 2 AZs<\/li><li>Layer 7 protocol (HTTP, HTTPS, WebSocket)<\/li><li>Subnet CIDR must at least be \/27 and with 8 free IP addresses per subnet<\/li><li>Can route based on:<ul><li>URL<\/li><li>Host<\/li><li>Query String<\/li><\/ul><\/li><li>Has port mapping feature to direct to dynamic ports. Mostly used with ECS.<\/li><li>Can support multiple target groups.<\/li><li>The target application does not see directly the actual source IP. However, the ALB will insert the header <strong>X-Forwarded-For<\/strong>, <strong>X-Forwarded-Port<\/strong> and <strong>X-Forwarded-Proto<\/strong> which will contain the IP Address, Port and Protocol.<\/li><li>Supports <strong>Sticky Session<\/strong><\/li><li>Can generate its own <strong>cookie<\/strong>. Cookie name starts with <strong>AWSALB<\/strong> for ALB (and <strong>AWSELB<\/strong> for CLB)<\/li><li>Can also manage application cookies.<\/li><li>Can set cookie duration.<\/li><li>Cross-zone Balancing is always on. <strong> Cannot be disabled.<\/strong> No charge for inter-AZ<\/li><li>Support SSL certificates with <strong>multiple SNI<\/strong> i.e. it can present the right certificate based on the SNI presented by the client. (CLB supports only 1 certificate)<\/li><li><strong>Can authenticate via AWS Cognito<\/strong> or <strong>OpenID<\/strong> (but only for HTTPS)<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>NLB<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Layer 4 protocol (TCP, UDP). Traffic is pass-through.<\/li><li>Lower latency than ALB<\/li><li>Is assigned 1 static IP per AZ<\/li><li>Can support multiple target groups. ALB can be one of the targets.<\/li><li>For <strong>internet-facing<\/strong> load balancers, the subnets that you specify must have at least 8 available IP addresses. For i<strong>nternal load balancers<\/strong>, this is only required if you let AWS select a private IPv4 address from the subnet.<\/li><li>Does not generate or manage cookies (because it&#8217;s layer 4).<\/li><li>Cross-zone Balancing is <em>disabled<\/em> by default. If turned on need to pay inter-AZ traffic.<\/li><li>Support SSL certificates with <strong>multiple SNI<\/strong> i.e. it can present the right certificate based on the SNI presented by the client.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>GLB<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Layer 3 protocol<\/li><li>For 3rd party virtual network appliances (e.g. Firewalls, Intrusion detection)<\/li><li>Uses GENEVE protocol (port 6801)<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Target Groups<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Possible Target Types<\/strong><ol><li>Instance Id<\/li><li>IP<ul><li>Must be from specific CIDR blocks only. <\/li><li>You can&#8217;t specify publicly routable IP addresses.<\/li><\/ul><\/li><li>Lambda<\/li><li>ALB<\/li><\/ol><\/li><li>Stickiness is set in the target group, not on ELB<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[11],"tags":[],"class_list":["post-184","post","type-post","status-publish","format-standard","hentry","category-aws-review-notes"],"_links":{"self":[{"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=184"}],"version-history":[{"count":20,"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/184\/revisions"}],"predecessor-version":[{"id":1498,"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/184\/revisions\/1498"}],"wp:attachment":[{"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mylinuxsite.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}