EC2 Flashcards Preview

AWS solutions Architect > EC2 > Flashcards

Flashcards in EC2 Deck (65)
Loading flashcards...
1
Q

RAID

A

Redundant Array if Independent Disks

2
Q

RAID 5 on EBS?

A

NO

3
Q

RAID 1 on EBS?

A

sure

4
Q

RAID 0 on EBS?

A

sure

5
Q

When do you use RAID on EBS?

A

When you’ve exceeded the capacity io on an EBS. So you conduct RAID to stripe a few volumes together. Add multiple EBS volumes and configure them as a raid array.

6
Q

How do you create a RAID volume?

A

Happens at the instance level. In a windows EC2 instance, use Disc Managment. Delete the volumes and then stripe or mirror. ect them together

7
Q

How do you take a snapshot of a RAID

A

Shut down the accociated EC2 instance, and take an application level snapshot
or freeze the file system, or unmount the RAID array.

8
Q

What is an AMI

A

Amazon Machine Image.

9
Q

What should you do to take an EBS vol snapshot that serves as root devices

A

stop the instance first

10
Q

Are snapshots of encrypted EBS volumes encrypted automatically?

A

YES

11
Q

What type of snapshot can you share

A

unencrypted only

12
Q

What are the two ways AMIs are categorized?

A

EBS backed or instance store

13
Q

what does AMI stand for

A

Amazon Machine Image

14
Q

Are elastic load balancers given static IP addresses?

A

NO. you just have dns address.

15
Q

Are EC2s given static IP addresses?

A

YES

16
Q

How are loadbalancers determined to be InService or OutOfService

A

depends on the health checks

17
Q

What cloudwatch metrics are avaliable on EC2 instances by default

A

CPU related
Disk related
Network related
Instance related (cheking at machiene- and host-level)

18
Q

How can you get logs from an EC2 instance at the network or kernal level?

A

Install an agent and set up logs in cloudWatch

19
Q

How long is standard monitoryngi

A

5 minutes

20
Q

how long is detailed monitoring

A

1 minute

21
Q

what is the difference between cloudWatch and cloudTrail

A

coludWatch for logs within particualar survices, and monitoring of those services.

cloudTrail is for auditing your entire AWS environment

22
Q

How can an EC2 instance gain access to other services WITHOUT using IAM Users?

A

use IAM roles

23
Q

Can an IAM Role be updated on an EC2 instance?

A

NO

24
Q

Can you add an IAM role to an EXISTING EC2 instance?

A

YES

25
Q

How can you change the permissions of an EC2 instance role?

A

Add different policies to the role.

26
Q

What’s more secure? IAM Roles? Or IAM Users on EC2? Why?

A

Roles, because no secret access key has to be stored on the ec2 instance. Roles are also easier to manage.

27
Q

What region are Roles Created in by default

A

psyche!!! it is U N I V E R S A L.

28
Q

what is a placement group

A

a logical grouping of instances within a single AZ.

29
Q

What type of network can use of placement group enable?

A

low-latency, 10Gbps network

30
Q

What are placement groups recommended for?

A

applications that benifit from low network latency, high network throughput, or both.

31
Q

Are placement groups restricted to one availability zone per group?

A

YES

32
Q

Placement group names can be the same, so long as they’re in different avaliability zones.

A

NO they must be unqique within entire account.

33
Q

Which types of EC2 instances can be launched in a placement group

A

Compute Optimized, GPU, Memory Optimized, Storage Optimized.

34
Q

You want to keep latency low by provisioning t2.micro, t2.small, and t2.medium instances in a placement group? What will happen?

A

This can’t happen. t is not allowed in placement groups.

35
Q

Can you have different types of instances within a placement group?

A

no, must be homogenous

36
Q

Can you have instances of the same family but different sizes in a placement group?

A

ehhh not recommended

37
Q

Can you merge instance gropus

A

no

38
Q

What is amazon EFS

A

Elastic File system, a file storage service for EC2

39
Q

What benefits does EFS provide

A

it can elascitally grow and shrink automatically depending on how much storage is needed.

40
Q

Can you mount an EBS to two instance volumes at once?

A

NO

41
Q

Can you mount an EFS to two instance volumes at once

A

hellz yeah

42
Q

How do you pay for EFS? Per storage used? or pre-provisioned

A

pre-povisions

43
Q

what unit of bytes can EFS scale up to?

A

Petabytes

44
Q

Is data stored in one AZ in a region, multiple AZs in a region, or multiple AZs across multiple regions?

A

multple AZs in one region

45
Q

What type of applications is Max I/O optimized for (in EFS)

A

applicatios where tens to thousands of EC2 instances are accessing the file system.

46
Q

You are trying to mount an EFS to EC2 instances in multiple secrity groups. What needs to happen?

A

You need to make sure they are in the same security group.

47
Q

How do you install EFS on EC2 instances

A

go into the EC2 instances and use the terminal. You sudo mount with a curl command of where the EFS is located (instructions in the EFS service)

48
Q

How is lambda charges calculated?

A

amount of memory used and time it is used in execution.

49
Q

What are the different voulme types of EBS

A

SSD, General purpose

50
Q

Whats the IOPS limit in SSD General Purpose

A

10,000 IOPS

51
Q

when would you use the SSD, Provisioned IOPS (IO1) type of EBS volume

A

When you need more than 10,000 IOPS

52
Q

When would you use the HHD, Throughput Optimized (ST1) type of EBS Volume

A

frequently accessed workloads, used for data warehousing, ie transaction logging

53
Q

When would you use the HDD Cold - SC1 type of volume.

A

less frequently accessed data. used for file systems

54
Q

Which volumes cant be used as boot vols

A

ST1 and SC1

55
Q

HDD Magnetic Standard

A

cheap infrequently accessed storage.

56
Q

Whats the default on Termination Protetion

A

off by default

57
Q

What are volumes on EBS

A

Virtual Hard Disks

58
Q

Where are snapshots of volumes stored?

A

in s3

59
Q

How are snapshots constructed?

A

incrementally, only logs changes (so after first snapshot, they’re much faster)

60
Q

What other name is Instance Store volumes known by

A

Ephemeral Storage

61
Q

Can I delete a snapshot of an EBS Volume that is used as the root device of a registered AMI?

A

No, you must deregister the AMI before being able to delete the root device

62
Q

What is GP2?

A

General Purpose EBS, up to 10,000 IOPS

63
Q

What is IO1 and what’s an application that you would mount on it

A

Provisioned OPS SSD designed for IO intensive applications such as large relational NoSQL databases,

64
Q

What is ST1 and when is it used

A

Throughput Optimized HHDs, used for big data, data warehousing.

65
Q

What is SC1 and when is it used

A

Cold HDD (lowest cost)