Elastic Compute Cloud (EC2) Flashcards
How do you renew your EC2 RI automatically?
To renew your EC2 RI automatically, you can queue an RI purchase for the date and time that your existing RI expires.
If the customer needs to point their workload to an IP addess which ELB would you choose, ALB or NLB?
NLB
What are the ALB rule condition types?
- host-header
- http-header
- http-request-method
- path-pattern
- query-string
- source-ip
An ALB hostname is not case-sensitive, can be up to 128 characters in length, and can contain any of the following characters:
- A–Z, a–z, 0–9
- .
- * (matches 0 or more characters)
- ? (matches exactly 1 character)
EC2 metadata api
http://169.254.169.254/latest/meta-data/public-ipv4
What are the EBS SSD Volumes / features?
- 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
What are the EC2 billing and purchasing options?
- 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
Can you rely on instance store volumes for valuable, long-term data?
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.
Differences between launch template and launch configuration
You can change a launch template.
Launch template supports spot fleet.
Launch template supports multiple instance types.
What are the ALB target types?
- instance
- ip
- lambda
What are the ALB compatible protocols?
- HTTP/1.1
- HTTP/2
- gRPC
What is the purpose of the Scaling cooldowns for Amazon EC2 Auto Scaling?
Let your Auto Scaling group stabilize and prevent it from launching or terminating additional instances.
What is the EC2 spot block?
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).
You can’t change the EC2 tenancy in these situations:
From default to any
From dedicated to default
Your Spot Instance runs until:
- You stop or terminate it,
- Amazon EC2 interrupts it (known as a Spot Instance interruption).