IPs Flashcards

1
Q

What is for a public IP?

A

To identify the machine on the internet

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

2 machines can share the same public IP?

A

No, must be unique across the whole web

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

What is for a private IP?

A

To identify the machine only on a private network

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

2 machines can share the same private IP?

A

No in the same private network but 2 different private networks can have same IPs

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

What do use machines to connect to WWW?

A

using a NAT (Network Address Translation) + Internet Gateway (proxy)

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

You can use any private IP that is not in use?

A

No, only a specified range

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

How many Elastic IPs can you have on your account?

A

5, you can ask AWS to increase that

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

Can an instance public IP change?

A

Yes, when you stop and start it

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

What is an Elastic IP?

A

A fixed public IPv4 for your instance

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

Can you attach an Elastic IP to another instance?

A

Yes

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

It is a good decision to use an Elastic IP?

A

No, try to avoid it. They often reflect poor architectural decisions.

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

In terms of IPs, by default, your EC2 instance comes with?

A

1 private IP and 1 public IP

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

What IP can you use to SSH into your EC2 machine?

A

The public one, you can’t use private one because you are not in the same network

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

What can you use for communication between instances in the same VPC

A

private IPs, traffic between two EC2 instances going over the public internet incurs in high costs

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