VPC Flashcards

1
Q

VPC in one line

A

Logically isolated space in the AWS cloud

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

Can VPCs span multiple regions? Per region how many VPCs can be created ?

A

No. 5

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

0.0.0.0/0 significance ?

A

allow public access

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

VPC peering?

A

allows to connect 2 VPC over a direct network using private IP addresses.

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

VPC peering follows what topology?

A

Star. 1 Central and max 4 to it

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

VPC peering doesn’t allows transitive peering meaning ?

A

if A is center then B and C can’t talk to each other. Only nearest neighbour i.e. A allows to talk to both. For B and C to talk they would need separate peering.

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

Can CIDR blocks be same when doing VPC peering ?

A

No else would cause conflict

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

Route table used for ?

A

For directing the internet traffic

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

Internet gateway used for ?

A
  1. target in route table for internet assigned traffic. So destination 0.0.0.0/0 be translated to igw-xyz.
  2. perform NAT for public assigned IPV4 instances
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Bastian / Jumpbox?

A

Intermediate host that is in public subnet with limited privileges helps to lessen penetration attack

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

Direct Connect ?

A

Helpful for speedy connection between on-prem network and AWS

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

VPC endpoints?

A

To prevent traffic from leaving the AWS network we use these. Like when accessing S3 bucket instead of exposing it over internet and then access from a different service we can create a VPC endpoint.

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

Interface endpoint vs Gateway endpoint

A

Gateway is free and supports on S3 and dynamo and sits inside VPC. Interface one sits inside subnet and supports many AWS Services.

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

VPC flow log?

A

Stores in and out traffic IP (not hostnames) at VPC, Subnet or Interface level. Uses S3 or cloud watch to store logs.

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

NACL ?

A

Network access control list. Virtual firewall at the subnet level. We can allow as well as deny (unlike security groups) traffic based on source at subnet level.

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

Rule number in NACL ?

A

Rule number present to define sequence of evaluation. Use something like 100 so that can create in between as well if required.

17
Q

Security groups?

A

Virtual firewall at EC2 level

18
Q

What all can be in source in SG?

A

IP or another SG

19
Q

Can ec2 instance have multiple SG?

A

Yes. And they are permissive if any allows traffic on a port then allowed.

20
Q

Use of NAT?

A

Network address translator is used when going out from a private IP address to the internet. Translation required in the process.

21
Q

NAT instance vs NAT Gateway?

A

NAT instances is a EC2 instance with AMI for specific purpose. NAT Gateway is a managed service.

22
Q

DNS hostnames disabled by default in VPC?

A

Yes. We need to enable if want our EC2 instances to have public hostnames.

23
Q

Main route table?

A

The going to be used by default

24
Q

Step to VPC and EC2 ?

A

Create VPC. Then create IG, attach IG to VPC. Modify the route table for 0.0.0.0/0 traffic to IG. Create subnet (public/private). Auto assign IPv4 for public. Create EC2

25
Q

Are subnets public ?

A

Yes if the setting auto assign public IPv4 is true then

26
Q

NAT gateway use?

A

To access the internet from the private subnet.