AWS Study - EC2 Flashcards

These flashcards will help you pass the AWS Cloud Exam

1
Q

What is Elastic Compute Cloud (EC2)?

A

A cloud computing service that allows you to launch virtual server instances on the AWS cloud.

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

What can you configure when launching an EC2 instance?

A

You can configure the OS, storage, memory, and network throughput.

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

What are the types of EC2 Instance Types?

A
  • General-purpose
  • Compute Optimized
  • Memory-Optimized
  • Accelerated Optimized
  • Storage optimized
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How can you access your EC2 instance?

A

With SSH via a key pair provided by AWS.

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

What is a key pair in AWS EC2?

A

Consists of a public key stored by AWS and a private key file that you store.

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

What is the purpose of Placement Groups in EC2?

A

To choose the logical placement of your instances to optimize for communication, performance, or durability.

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

What is Userdata in EC2?

A

A script that runs automatically when launching an EC2 instance.

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

What is Metadata in EC2?

A

Data about the current instance accessed via a local endpoint when SSH into the EC2 instance.

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

What does EC2 compute units (ECU) measure?

A

The relative measure of the integer processing power of an Amazon EC2 instance.

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

What are the four pricing models for EC2?

A
  • On-demand
  • Spot
  • Reserved Instances (RI)
  • Dedicated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the use case for On-demand pricing in EC2?

A

Short term, spiky, unpredictable workloads, and first-time apps.

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

What is Reserved Instances (RI) in EC2?

A

A pricing model that offers up to 75% off for predictable usage applications.

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

What are the payment options for Reserved Instances?

A
  • All Upfront
  • Partial Upfront
  • No Upfront
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is Spot Pricing in EC2?

A

A pricing model that offers up to 90% off for spare computing capacity.

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

What is the use case for Dedicated Hosting in EC2?

A

When you need a guarantee of isolation hardware for enterprise requirements.

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

What is a Savings Plan in AWS EC2?

A

A flexible pricing model offering savings in exchange for a commitment to consistent usage.

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

What information does an Amazon Machine Image (AMI) hold?

A
  • A template for the root volume
  • Launch permissions
  • Block device mapping
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What type of IP addresses can be assigned to an EC2 instance?

A
  • Public
  • Private
  • Elastic IP
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is an Elastic IP

A

A static, public IPv4 address in the Amazon AWS cloud, which can be associated with an instance, remains consistent even if the instance is stopped or restarted.

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

What is an Elastic Network Interface (ENI)?

A

A logical networking component in a VPC that represents a virtual network card.

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

What is Enhanced Networking in EC2?

A

Provides higher bandwidth and lower inter-instance latencies using an Elastic Network Adapter (ENA).

22
Q

What is the Elastic Fabric Adapter (EFA)?

A

An AWS Elastic Network Adapter with capabilities for high levels of inter-node communications.

23
Q

What are the configurations of Placement Groups?

A
  • Cluster
  • Spread
  • Partition
24
Q

What is VM Import/Export used for?

A

To migrate VMware, Microsoft, XEN VMs to the cloud and convert EC2 instances back to VMs.

25
What is an Autoscaling Group (ASG) in EC2?
A collection of EC2 instances grouped for scaling and management.
26
What does the Desired Capacity in an ASG represent?
How many EC2 instances you want to ideally run.
27
What is a Cooldown Period in Auto Scaling?
A configurable setting that helps to ensure that scaling actions do not occur too frequently.
28
What is the purpose of the Simple Scaling policy with steps?
Allows you to create steps based on escalation alarm values
29
What does a scheduled action in Auto Scaling determine?
A specific event or time to trigger auto-scaling
30
What does 'desired capacity' refer to in Auto Scaling?
How many EC2 instances you want to ideally run
31
What does an Auto Scaling Group (ASG) always launch instances to meet? | Think about the capacity
Minimum capacity
32
What is the purpose of a health check in Auto Scaling?
Determine the current state of an instance
33
What is the default cooldown period for an Auto Scaling group?
300 seconds
34
Health checks can be run against which two entities?
ELB or EC2 instance
35
What is a Launch Configuration in Auto Scaling?
Holds the configuration values for instances, such as AMI, instance type, role
36
Can Launch Configurations be edited?
No, they must be cloned or a new one created
37
What are the four scaling options available in Auto Scaling?
* Maintain * Manual * Scheduled * Dynamic
38
How can Auto Scaling scale based on Amazon SQS?
Uses a custom metric sent to CloudWatch measuring messages in the queue per EC2 instance
39
What are the three types of Elastic Load Balancers (ELB)?
* Network Load Balancer (NLB) * Application Load Balancer (ALB) * Classic Load Balancer (CLB)
40
What is required for an Application Load Balancer (ALB) in terms of Availability Zones?
Must have at least 2 AZs
41
What is the routing layer of the Application Load Balancer (ALB)?
Operates at the request level (Layer 7)
42
What types of routing does the Application Load Balancer (ALB) support?
* Path-based routing * Host-based routing * Query string parameter-based routing * Source IP-based routing
43
What does the Network Load Balancer (NLB) operate at?
Connection level (Layer 4)
44
What type of traffic is the Classic Load Balancer (CLB) intended for?
Existing applications running in EC2-Classic
45
Which load balancer is recommended for new applications?
Application Load Balancer (ALB) or Network Load Balancer (NLB)
46
What is the purpose of the X-forwarded-for (XFF) header?
To get the original IP of incoming traffic passing through ELB
47
Can you attach a Web Application Firewall (WAF) to all types of ELBs?
No, only to ALB
48
What is cross-zone load balancing?
Distributes requests evenly across registered instances in all enabled Availability Zones
49
Is cross-zone load balancing enabled by default for ALB?
Yes, it is always on and cannot be disabled
50
What happens when connection draining is in action for a CLB?
CLB will be in the status 'InService: Instance deregistration currently in progress'