VPCs Flashcards

(39 cards)

1
Q

VPC

A

virtual data center in the cloud

1 subnet = 1 AZ

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Largest subnet you can use in your VPC

A

10.0.0.0/16

65,526 addresses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

VPC features

A

launch instances in a subnet of our choosing
assign custom IP address ranges
configure route tables between subnets
create internet gateway and attach to our VPC
NACLs
instance security groups

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Default vs custom vpc

A

default: user friendly; allows immediate deployment of instances

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

VPC peering

A

connects 2 VPCs via a direct network route using private IP addresses
Instances behave as if they were on the same private network
can peer across regions
Does not support transitive peering

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

security groups vs NACLs

A

security groups: stateful
NACLs: stateless
need to add individual allow and deny lists

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What gets created by default when you create a VPC

A

route table
NACLs
security group

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Route table best practice

A

Keep primary route table private

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

VPC security groups

A

security groups cannot span multiple VPCs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

NAT instance vs NAT gateway

A

NAT instance - invidiual instance

NAT gateway - highly available way to provide internet access to private subnets w/out becoming public

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

NAT gateways HA/DR

A

redundant inside an AZ

cannot span multiple AZs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

NAT gateway security groups

A

Not associated with security groups

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

NAT gateway config info

A
no need to patch
need to update route tables
automatically assigned a public ip addr
no need to disable source/dest checks
create a nat gateway in each availability zone
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

NACLs and Security Group order of operations

A

NACLs resolved before security groups

NACL rules resolved in order of rule #, stopping on match

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

ACL and subnet associations

A

ACL - can have many subnets

subnet - can only have one ACL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Load balancer config

A

need at least 2 public subnets

17
Q

VPC flow log levels

A

vpc
subnet
network interface level

18
Q

VPC flow log config

A

cannot change VPC config after it’s created
cannot associate a different IAM role w/ flow log
can tag flow logs

19
Q

Bastion host - definition

A

special purpose computer designed and configured to withstand attacks

Either outside of firewall or in DMZ

helps reduce attack surface by removing need to harden devices behind it

used to securely administer EC2 instances

AKA jump box

20
Q

Direct Connect

A

service solution used to establish a dedicated network connection from on-prem to AWS

reduces network costs
increases bandwidth
stable and reliable secure connection

21
Q

global accelerator

A

improves availability and performance of apps

directs traffic to optimal endpoints over AWS

by default provides two default IP addresses
-customer can bring their own

22
Q

global accelerator components

A
static ip addresses
accelerator
dns name
network zone
listener
endpoint group
endpoint
23
Q

global accelerator network zone

A

services the static ip addresses
similar to an AZ
each zone is isolated within it’s own physical infrastructure

24
Q

global accelerator listener

A

processes inbound connections from clients to global accelerator based on configured port and protocol

listeners forward traffic to endpoints in attached/associated endpoint groups

endpoint groups associated to listeners by region

25
global accelerator endpoint group
associated w/ specific aws regions | can specify percentage of traffic directed to each endpoint group
26
global accelerator endpoints
NLB, ALB, EC2 instances, Elastic IP addresses can have weights to specify proportion of traffic received by endpoint
27
VPC endpoint
virtual device that allow communication between instances in your VPC and services allows you to privately connect to VPC w/out requiring an internet gateway, NAT device, VPN, or DirectConnect
28
VPC endpoint types
interface endpoint | gateway endpoint
29
interface endpoint
network interface w/ private IP addresses that serve as an entry point for traffic to a supported service
30
supported gateway endpoint services
amazon s3 | dynamo db
31
gateway endpoint
similar to NAT gateways
32
PrivateLink
Open services in a VPC to other VPCs Only requires an NLB on the service VPC and an ENI on the client VPC
33
Transit Gateway
A way to simplify your network topology Provides transitive peering between many VPCs and on-prem data centers can be used across multiple AWS accounts via RAM can use route tables supports IP multicast
34
VPN Cloudhub
Allows users to connect into a virtual private gateway via VPN The vpg provides access to VPC subnets good when there are multiple sites w/ their own VPN connection
35
Network Costs
Free -instances w/in same AZ Not free - instances in different AZs via private IP - -- more if traffic needs to go over public IP - instances in different regions
36
IP traffic that is not monitored/logged
DNS traffic to Amazon DNS server Traffic to Amazon Windows license activation Traffic to/from 169.254.169.254 DHCP traffic traffic to reserved IPs for reverse IP routing
37
Direct Connect setup steps
Create virtual interface in Direct Connect console Create a customer gateway Create a virtual private gateway attache virtual private gateway to desired VPC create a new vpn connection select the virtual private gateway and the customer gateway set up vpn on customer gateway or firewall
38
Max number of VPCS per account per region
5
39
max internet gateways per VPC
1