EC2 Placement Groups Flashcards

1
Q

Normally, when you launch an instance in AWS, fo you select where it will be placed physically within a datacenter?

A

No. AWS chooses the EC2 host that is the best for you based on the AZ where you are launching the instance on.

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

What is the main advantage of Cluster placement groups?

A
  • It packs instances close together, with this, it achieves the highest level of performance possible in EC2.
  • Cluster placements need to take part within the same AZ.
  • All members have direct connections to each other
  • 10 Gbps single stream (vs 5 Gbps normally).
  • Lowest latency and max PPS (packets per second) possible in AWS - you have to use enhanced networking in all the instances as prerequirement to be high performant.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

With Cluster placements groups, where are the instances normally placed?

A

Generally in the same rack but they could even be placed in the same EC2 host.

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

How much t-put in a single stream can you achieve using cluster placement groups?

A

10 Gbps single stream vs 5 Gbps normally.

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

Describe the disadvantages of using cluster placement groups:

A

If the HW fails, the entire cluster will fail.

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

Can you use Cluster placement groups in multiple AZs?

A

No, ONE AZ ONLY. The first AZ used will lock down the cluster to that AZ.

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

Do Cluster placement groups require special instance types?

A

Yes, not all the instance types are supported for cluster placement groups.

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

What is the best practice when lauching instances using Cluster placement groups?

A
  • Use the same instance type.

- Launch all the instances at once (not mandatory)

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

What could happen if you do not launch all the instances in a cluster placement group at the same time?

A

You could get an error related with capacity when you are adding additional instances.
If this happens, you can stop all the instances and run them at the same time in another placement group.

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

What is the only way of achieving 10 Gbps of performance in a single stream?

A

Using cluster placement groups

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

What is the main purpose of using spread placement groups?

A

Keep instances separated = makes sure that the intances use diffent underlazing hardware.

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

What are Spread placement groups designed for?

A

This placement group is designed to provide the best resilience and availability for an application.

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

What are Cluster placement groups designed for?

A

Achieves the highest level of performance possible in EC2.

  • Low latency, max PPS (packets per second) and best performance in a single stream (10 Gbps).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Can you span Cluster Placement groups in multiple AZs?

A

No. Only in one AZ

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

Can you span Spread placement groups in multiple AZs?

A

Information will be put on distinct racks with their own network or power supply

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

Is there a limit of how many instances can you launch per AZ when using Spread placement groups? What do you achieve?

A

Yes, 7 instances per AZ.

It ensures that a failure in a rack will not affect the rest of the placement group.

17
Q

What do Spread placement groups provide?

A

HIghest level of availability and resilience. Each instance runs in a different rack by default

18
Q

Are spread placement groups supported by dedicated instances or dedicated hosts?

A

No.

19
Q

Describe use cases of Spread placement groups:

A
  • Small number of critical instances that need to be kept separated from each other
  • Several mirrors of an application
20
Q

Define Partition placement groups

A

it is a placement group that defines groups of instances spread apart, each group is in a different HW.

21
Q

What is the main difference between Spread and Partition placement groups?

A

The main difference is you can launch as many instances in each partition
as you desire.

22
Q

How many partitions (groups) can you create per AZ?

A

7 partitions maximum per AZ.

23
Q

Where can instances be places when using partitions placement groups?

A

They can be places in specific partitions or autoplaced by AWS.

24
Q

Are partitions placement groups supported on Dedicated hosts?

A

No.