3. EC2 Flashcards

1
Q

What does EC2 stand for in AWS?

A

Elastic Compute Cloud

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

Fill in the blank: EC2 is considered _______ as a Service.

A

Infrastructure

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

True or False: EC2 allows renting virtual machines on AWS.

A

True

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

Which feature of EC2 allows you to automatically scale services?

A

Auto Scaling Group (ASG)

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

What type of cloud model is AWS EC2?

A

Infrastructure as a Service (IaaS)

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

What component stores data on virtual drives in EC2?

A

Elastic Block Store (EBS)

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

What is EC2 User Data used for?

A

To automate tasks like installing updates and software at the instance’s first start.

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

Describe a scenario where Compute Optimized EC2 instances are useful.

A

High-performance computing or batch processing.

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

Which EC2 instance type is best for memory-intensive applications?

A

Memory Optimized

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

What instance type is suitable for storage-intensive applications in EC2?

A

Storage Optimized

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

What is the function of Security Groups in EC2?

A

They act as a firewall to control inbound and outbound traffic.

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

True or False: Security Groups can block outbound traffic by default.

A

False

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

Fill in the blank: EC2 instances can have _______ network cards for different IP configurations.

A

multiple

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

What network protocol uses port 22 for secure access to EC2 instances?

A

SSH (Secure Shell)

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

Which protocol allows secure web browsing on EC2 instances?

A

HTTPS

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

What does t2.micro signify in EC2 instance naming?

A

A General Purpose instance in the AWS free tier.

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

True or False: EC2 On-Demand instances have the lowest cost among purchasing options.

A

False

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

Which EC2 instance purchase option is best for predictable, long-term workloads?

A

Reserved Instances

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

What is the primary advantage of EC2 Spot Instances?

A

Cost savings, up to 90% cheaper than On-Demand.

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

True or False: Spot Instances are suitable for critical databases.

A

False

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

Describe a scenario where Dedicated Hosts in EC2 are ideal.

A

For compliance needs or specific licensing requirements.

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

What is an example of an application suited for Compute Optimized instances?

A

Media transcoding or machine learning.

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

Fill in the blank: For compute-intensive applications, you would choose _______ Optimized instances.

A

Compute

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

What type of instance is ideal for web servers and general workloads?

A

General Purpose

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

True or False: You can configure firewall rules using EC2 User Data.

A

False

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

Which EC2 purchase plan allows the highest level of flexibility?

A

Savings Plans

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

What is an advantage of using Reserved Convertible Instances?

A

Ability to switch instance types or operating systems.

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

Which EC2 purchase option is equivalent to booking an entire server?

A

Dedicated Hosts

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

Name a use case for Storage Optimized EC2 instances.

A

High-frequency transaction processing or data warehousing.

30
Q

What does the instance type ‘m5.2xlarge’ tell us about its capacity?

A

It’s an M class, 5th generation, with extra large capacity.

31
Q

Describe the Shared Responsibility Model for EC2.

A

AWS manages infrastructure; users manage security configurations.

32
Q

True or False: Security Groups can reference other Security Groups.

A

True

33
Q

What’s the default inbound traffic rule for a new Security Group?

A

All inbound traffic is blocked by default.

34
Q

What is the billing rate for EC2 Linux On-Demand instances?

A

Per second after the first minute.

35
Q

Describe the role of IAM roles in EC2.

A

To control access and permissions for EC2 instances.

36
Q

What is the purpose of an EC2 Instance Role?

A

To assign specific permissions and policies to EC2 instances.

37
Q

True or False: Capacity Reservations offer a discount for unused instances.

A

False

38
Q

Which EC2 instance type would be suitable for gaming servers?

A

Compute Optimized

39
Q

Fill in the blank: EC2 instances can use _______ to store large, unstructured data.

A

Elastic File System (EFS)

40
Q

What does the term ‘bootstrapping’ mean in the context of EC2 User Data?

A

Running initial commands or scripts at the instance’s first start.

41
Q

What type of instance would you use for an application with unpredictable workloads?

A

On-Demand

42
Q

Which protocol is used on port 21 for EC2 instances?

A

FTP (File Transfer Protocol)

43
Q

What EC2 feature allows connection without a key file for Amazon Linux 2?

A

EC2 Instance Connect

44
Q

True or False: Dedicated Instances and Dedicated Hosts are the same.

A

False

45
Q

Which instance type should you use for in-memory databases?

A

Memory Optimized

46
Q

What AWS service helps distribute traffic across EC2 instances?

A

Elastic Load Balancer (ELB)

47
Q

How is SSH configured differently on Windows for EC2?

A

By using the Putty tool instead of OpenSSH.

48
Q

What does the EC2 Savings Plan commit to?

A

A specific usage amount per hour for a set term.

49
Q

Which port is used for accessing unsecured websites on EC2?

A

Port 80 (HTTP)

50
Q

What is a practical application of EC2 Spot Instances?

A

Running data analysis or batch processing jobs.

51
Q

What is the function of the EC2 Auto Scaling Group?

A

To automatically adjust instance count based on demand.

52
Q

Fill in the blank: The _______ instance type balances compute, memory, and networking.

A

General Purpose

53
Q

What happens to inbound traffic by default if a security group has no rules?

A

All inbound traffic is blocked.

54
Q

What purchasing option in EC2 is like ‘bidding for rooms’?

A

Spot Instances

55
Q

Name an advantage of Capacity Reservations in EC2.

A

Guaranteed instance availability in a specific availability zone.

56
Q

How are Reserved Instances different from On-Demand in terms of cost?

A

Reserved Instances can be up to 72% cheaper.

57
Q

What does EBS stand for in the context of EC2?

A

Elastic Block Store

58
Q

Which Security Group rule allows traffic to and from a specific IP?

A

An inbound or outbound rule based on IP address.

59
Q

True or False: EC2 instances require a long-term contract with AWS.

A

False

60
Q

Which tool on Mac/Linux allows terminal access to EC2?

A

OpenSSH

61
Q

Fill in the blank: EC2 instances can use _______ for temporary, high-speed storage.

A

Instance Store

62
Q

How does the EC2 Shared Responsibility Model split security tasks?

A

AWS secures infrastructure; users secure configurations.

63
Q

What kind of traffic does Security Groups’ outbound rules control?

A

Traffic going from the instance to external resources.

64
Q

Which instance type should you choose for CPU-bound applications?

A

Compute Optimized

65
Q

What should you check if your EC2 application times out?

A

Security group settings for the correct access permissions.

66
Q

Name an example of a high-frequency workload suited for Storage Optimized instances.

A

Online transaction processing (OLTP)

67
Q

What instance type is included in the AWS free tier?

A

t2.micro

68
Q

What is the role of Elastic Load Balancer in EC2?

A

To distribute incoming traffic across multiple instances.

69
Q

Which EC2 purchase option does not offer a billing discount?

A

Capacity Reservations

70
Q

What is the difference between EC2 Dedicated Instances and Dedicated Hosts?

A

Dedicated Hosts give more control over physical server placement.