{"id":2866,"date":"2019-08-30T09:23:29","date_gmt":"2019-08-30T09:23:29","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=2866"},"modified":"2020-05-01T10:34:56","modified_gmt":"2020-05-01T10:34:56","slug":"vpc-basics","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/vpc-basics\/","title":{"rendered":"VPC Basics"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>A virtual network which is isolated and define &nbsp;by customer <\/li><li>VPC is the network layer for EC2<\/li><li>Creation needs IPv4 address range CIDR and\nshould not be address that will overlap with other networks<\/li><li>Components<\/li><li>Subnets<ul><li>1st\nfour IPs and last IP address in a subnet are reserved by AWS<\/li><\/ul><ul><li>Public,\nPrivate, VPN<\/li><\/ul><\/li><li>Route tables<ul><li>Determine\nwhere traffic is sent and applied to all subnets<\/li><\/ul><ul><li>Default\nroute called local route<\/li><\/ul><ul><li>VPC\nhas an implicit router<\/li><\/ul><ul><li>VPC\nautomatically comes with a main route table<\/li><\/ul><ul><li>Each\nsubnet must e associated with a route table. Subnets will use the main route\ntable if not assigned<\/li><\/ul><ul><li>Can\nreplace main route table with custom table<\/li><\/ul><ul><li>Route\ntable enlists destination CIDR and target<\/li><\/ul><\/li><li>Internet Gateways<ul><li>horizontally\nscaled<\/li><\/ul><ul><li>redundant<\/li><\/ul><ul><li>highly\navailable<\/li><\/ul><ul><li>provides\na target for internet traffic<\/li><\/ul><ul><li>Creation\n<ul><li>Attach\nand IGW<\/li><\/ul><ul><li>Then\nfor non local (0.0.0.0) traffic, instantiate a subnet route table <\/li><\/ul><ul><li>configure\nnetwork ACL and Security Groups<\/li><\/ul><ul><li>For\nsending and receiving traffic via IGW, public IP address is needed by the instance\n<\/li><\/ul><\/li><\/ul><\/li><li>DHCP Options<ul><li>Name\nservers<\/li><\/ul><ul><li>domain\nname<\/li><\/ul><ul><li>NTP\nservers<\/li><\/ul><ul><li>Netbios\nname servers<\/li><\/ul><ul><li>Netbios\nnode type<\/li><\/ul><\/li><li>Elastic IP Addresses (EIP)<ul><li>Allocate\nthen assign them<\/li><\/ul><ul><li>Specific\nto region<\/li><\/ul><ul><li>1\nto 1 relationship with&nbsp; network interfaces<\/li><\/ul><ul><li>can\nmove EIPs<\/li><\/ul><ul><li>Stays\nwith account until explicitly release<\/li><\/ul><\/li><li>Elastic Network Interfaces (ENI)<ul><li>virtual\nnetwork interface you can assign to an instance<\/li><\/ul><ul><li>associate\nwith a subnet<\/li><\/ul><ul><li>instance\ncan be dual homed<\/li><\/ul><\/li><li>Virtual data center in the cloud<\/li><li>A maximum of 5 VPCs in a AWS region is allowed. It\ncan also be increased <\/li><li>subnets present in the default VPC have an attached\nIGW <\/li><li>Multiple IGW&#8217;s can be created, but only a single\nIGW can be attached to a VPC.. No exceptions<\/li><li>Again, You can only have 1 Internet gateway per\nVPC<\/li><li>Both public and private IP address are present\nwith EC2 instance <\/li><li>If you delete the default VPC, the only way to\nget it back is to submit a support ticket<\/li><li>This answer is correct for the current iteration\nof tests, however AWS has now crated a mechanism in the console that allows you\nto recreate a default VPC<\/li><li>By default when you create a VPC, a default main\nrouting table automatically gets created as well.<\/li><li>Subnets are associated with single AZ only and\nnot multiple AZ&#8217;s<\/li><li>largest CIDR block &nbsp;for a VPC is \/16 <\/li><li>smallest CIDR block &nbsp;for a VPC is \/28 <\/li><li>AWS reserves 3 IP addresses in every subnet, as<ul><li>x.x.x.0\n&#8211; Always subnet network address and is never usable<\/li><\/ul><ul><li>x.x.x.1\n&#8211; Reserved by AWS for the VPC router<\/li><\/ul><ul><li>x.x.x.2\n&#8211; Reserved by AWS for subnet DNS<\/li><\/ul><ul><li>x.x.x.3\n&#8211; Reserved by AWS for future use<\/li><\/ul><ul><li>x.x.x.255\n&#8211; Always subnet broadcast address and is never usable.<\/li><\/ul><\/li><li>169.254.169.253 &#8211; Amazon DNS<\/li><li>By default all traffic between subnets is\nallowed<\/li><li>By default not all subnets have access to the\nInternet. Either an Internet Gateway or NAT gateway is required for private\nsubnets<\/li><li>security group can span to multiple AZ&#8217;s<\/li><li>Security Groups are stateful (Don&#8217;t need to open\ninbound and outbound, if inbound is allowed, outbound is auto allowed)<\/li><li>Network Access Control Lists (NACLs) are\nstateless (Must define both inbound and outbound rules)<\/li><li>Hardware VPN connection can be made amongst corporate data center and VPC. Thus, AWS acts as extension of corporate data center <\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>A virtual network which is isolated and define &nbsp;by customer VPC is the network layer for EC2 Creation needs IPv4 address range CIDR and should not be address that will overlap with other networks Components Subnets 1st four IPs and last IP address in a subnet are reserved by AWS Public, Private, VPN Route tables&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2476,"menu_order":11,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[7,446],"class_list":["post-2866","page","type-page","status-publish","hentry","category-amazon-aws","tag-aws","tag-vpc-revision"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>VPC Basics - Testprep Training Tutorials<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/vpc-basics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"VPC Basics - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"A virtual network which is isolated and define &nbsp;by customer VPC is the network layer for EC2 Creation needs IPv4 address range CIDR and should not be address that will overlap with other networks Components Subnets 1st four IPs and last IP address in a subnet are reserved by AWS Public, Private, VPN Route tables...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/vpc-basics\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-01T10:34:56+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/vpc-basics\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/vpc-basics\/\",\"name\":\"VPC Basics - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2019-08-30T09:23:29+00:00\",\"dateModified\":\"2020-05-01T10:34:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/vpc-basics\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/vpc-basics\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/vpc-basics\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AWS Certified Developer Associate (DVA-C01)\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"VPC Basics\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"VPC Basics - Testprep Training Tutorials","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/vpc-basics\/","og_locale":"en_US","og_type":"article","og_title":"VPC Basics - Testprep Training Tutorials","og_description":"A virtual network which is isolated and define &nbsp;by customer VPC is the network layer for EC2 Creation needs IPv4 address range CIDR and should not be address that will overlap with other networks Components Subnets 1st four IPs and last IP address in a subnet are reserved by AWS Public, Private, VPN Route tables...","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/vpc-basics\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-05-01T10:34:56+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/vpc-basics\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/vpc-basics\/","name":"VPC Basics - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2019-08-30T09:23:29+00:00","dateModified":"2020-05-01T10:34:56+00:00","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/vpc-basics\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/vpc-basics\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/vpc-basics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"AWS Certified Developer Associate (DVA-C01)","item":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/"},{"@type":"ListItem","position":3,"name":"VPC Basics"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=2866"}],"version-history":[{"count":3,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2866\/revisions"}],"predecessor-version":[{"id":3841,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2866\/revisions\/3841"}],"up":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2476"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=2866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=2866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=2866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}