Elastic Compute Cloud (EC2) Flashcards

1
Q

How do you renew your EC2 RI automatically?

A

To renew your EC2 RI automatically, you can queue an RI purchase for the date and time that your existing RI expires.

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

If the customer needs to point their workload to an IP addess which ELB would you choose, ALB or NLB?

A

NLB

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

What are the ALB rule condition types?

A
  • host-header
  • http-header
  • http-request-method
  • path-pattern
  • query-string
  • source-ip
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

An ALB hostname is not case-sensitive, can be up to 128 characters in length, and can contain any of the following characters:

A
  • A–Z, a–z, 0–9
  • .
  • * (matches 0 or more characters)
  • ? (matches exactly 1 character)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

EC2 metadata api

A

http://169.254.169.254/latest/meta-data/public-ipv4

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

What are the EBS SSD Volumes / features?

A
  • gp2 - 16 TB; 16,000 IOPS (16 KiB I/O); 1,000 MiB/s
  • gp3 - 16 TB; 16,000 IOPS(16 KiB I/O); 250 MiB/s
  • io1 - 16 TB; 64,000 IOPS (16 KiB I/O); 1,000 MiB/s; Multi-attach; I/O intensive
  • io2 - 64 TB; 256,000 IOPS (16 KiB I/O); 2,000 MiB/s; Multi-attach; Sub-millisecond
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the EC2 billing and purchasing options?

A
  • Savings Plans – 1 or 3 years
  • Reserved Instances – 1 or 3 years; type and Region
  • Spot Instances - Unused EC2
  • Dedicated Hosts – Physical host fully dedicated (BYOL)
  • Dedicated Instances – Single-tenant
  • Capacity Reservations – Specific AZ
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Can you rely on instance store volumes for valuable, long-term data?

A

No:
- Data does not persist if the instance is stopped, hibernated, or terminated.
- The data on an instance store volume persists even if the instance is rebooted.
- Instance store volumes are attached only at instance launch.
- An instance store volume exists only during the lifetime of the instance to which it is attached
- You can’t attach instance store volumes after launch.
- You can’t detach an instance store volume from one instance and attach it to a different instance.

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

Differences between launch template and launch configuration

A

You can change a launch template.
Launch template supports spot fleet.
Launch template supports multiple instance types.

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

What are the ALB target types?

A
  • instance
  • ip
  • lambda
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the ALB compatible protocols?

A
  • HTTP/1.1
  • HTTP/2
  • gRPC
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the purpose of the Scaling cooldowns for Amazon EC2 Auto Scaling?

A

Let your Auto Scaling group stabilize and prevent it from launching or terminating additional instances.

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

What is the EC2 spot block?

A

In order to make EC2 an even better fit for this type of defined-duration workload, you can now launch Spot instances that will run continuously for a finite duration (1 to 6 hours).

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

You can’t change the EC2 tenancy in these situations:

A

From default to any
From dedicated to default

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

Your Spot Instance runs until:

A
  • You stop or terminate it,
  • Amazon EC2 interrupts it (known as a Spot Instance interruption).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Does canceling the spot instance request terminate the EC2 instance?

A

If your Spot Instance request is active and has an associated running Spot Instance, canceling the request does not terminate the instance.

17
Q

A one-time Spot Instance request remains active until

A
  • Amazon EC2 launches the Spot Instance
  • The request expires
  • You cancel the request.
18
Q

A persistent Spot Instance request remains active until:

A
  • it expires
  • you cancel it, even if the request is fulfilled
19
Q

If the Spot request is persistent and the Spot Instance is terminated:

A

The Spot Instance request is opened again and Amazon EC2 launches a new Spot Instance.

20
Q

If your Spot Instance request is active and has an associated running Spot Instance, canceling the request:

A

does not terminate the instance.