EC2 Flashcards

1
Q

Types of EC2

A
  1. General Purpose
  2. Compute Optimized
  3. Memory Optimized
  4. Storage Optimized
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

General Purpose great for what kind of work

A

Good for web servers or code repositories

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

Storage Optimized great for what kind of work

A

Great for storage-intensive tasks that require high, read and write access to large data sets . Use case:

  • High-frequency online transaction procession system
  • Distributed File systems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Compute Optimized great for what kind of work

A

great for the compute-intensive task that requires high-performance processors:
Use case :
- High-performance computing

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

Memory-Optimized great for what kind of work

A

Fast performance for workloads that process large data sets in memory. Use case :

  • high-performance relational/non-relational databases
  • Distributed web-scale
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Security Group

A

they control how traffic is allowed into or out of our EC2 instances. They are firewalls on EC2 instances

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

What port is used login to Linux instance

A

22 - ssh(secure shell)

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

80 port is used for what?

A

For accessing an unsecured website

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

Port 443(HTTPS) is used for accessing what

A

for accessing secured website

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

Is Inbound or Outbound traffic authorized by default in the security group

A

Outbound

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

EC2 Pricing model

A
  1. On-demand
  2. Reserved
  3. Spot
  4. Dedicated Host
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

For what kind of work is on-demand EC2 plan recommended?

A
  • short term and uninterrupted workloads
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Reserved EC2 model is recommended for what kind of work?

A

For steady-state usage application- like database

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

For what kind of work is the Spot EC2 plan recommended?

A
  • application that has a flexible start and end time

- like batch jobs, data analysis, Image processing

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

How do you terminate a spot instance?

A

First, have to cancel the spot request and then terminate the associated spot instance

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

For what kind of work is a dedicated host ec2 plan recommended?

A

For licensing used for regulatory requirements

17
Q

Which EC2 Purchasing Option can provide you the biggest discount, but it is not suitable for critical jobs or databases?

a) reserved instance
b) Dedicated Hosts
c) Spot instance

A

c

18
Q

What is a spot block purchasing option instance

A

this is good for for running batch job that will run for specified duration without interruption

19
Q

What is a spot fleet?

A

Spot fleet is a set of spot instance and optionally on demand instance. It allows you to automatically request spot instance with the lowest price

20
Q

Spread Placement group is good for what kind of work

A

where you want to achieve maximum availabity when there’s an AZ failure

21
Q

Elastic network interface can be attached to ec2 instance in another AZ

A

false

21
Q

Elastic network interface can be attached to ec2 instance in another AZ

A

false

22
Q

Is AMI Region Specific

A

True

22
Q

Is AMI Region Specific

A

True

23
Q

What is EBS Multi-Attach

A

Using EBS Multi-Attach, you can attach the same EBS volume to multiple EC2 instances in the same AZ. Each EC2 instance has full read/write permissions.

24
Q

What is Instance Store?

A

EC2 Instance Store provides the best disk I/O performance.

25
Q

What is EFS

A

Amazon EFS is a simple, serverless, set-and-forget, elastic file system that makes it easy to set up, scale, and cost-optimize file storage in the AWS Cloud

26
Q

When to use EFS instead of EBS?

A

Amazon EFS Standard storage classes are ideal for workloads that require the highest levels of durability and availability.
Big Data and analytics, media processing workflows, content management, web serving, and home directories.

27
Q

For what kind of work is EBS used ?

A

Amazon EBS can deliver performance for workloads that require the lowest latency access to data from a single EC2 instance.

28
Q

What does Hibernating do?

A

– Hibernating an instance saves the contents of RAM to the Amazon EBS root volume. When the instance
restarts, the RAM contents are reloaded.

29
Q

What does Hibernating do?

A

– Hibernating an instance saves the contents of RAM to the Amazon EBS root volume. When the instance
restarts, the RAM contents are reloaded.

30
Q

What is ENI

A

• Logical component in a VPC that represents a

virtual network card

31
Q

Why do we use ENI for ?

A

You can create ENI independently and attach
them on the fly (move them) on EC2 instances
for failover

32
Q

Can Primary ENI be detached from an instance

A

NO