EC2 Flashcards

1
Q

It is like a VM that is hosted in AWS instead of your data center.

A

EC2

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

Characteristics of EC2?

A

Select the capacity that you need right now.
Grow and shrink when you need.
Pay for what you use.
Wait minutes, not months.

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

EC2 pricing options.

A

On-Demand
Spot
Reserved
Dedicated

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

On-Demand

A

Pay by the hour or the second depending on the type of instance you run. Great for flexibility.

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

Spot

A

Purchase unused capacity at a discount of up to 90%. Prices fluctuate with supply and demand. Great for applications with flexible start and end times.

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

Reserved

A

Reserve capacity for 1 or 3 years. Up to 72% discount on the hourly charge. Great if you have known, fixed requirements.

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

Dedicated

A

A physical EC2 server dedicated for your use. Great if you have server-bound licenses to reuse or compliance requirements.

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

It determines the hardware of the host computer.

A

Instance type

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

Should select an instance type based on?

A

The requirements of your application.

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

It is a highly available and scalable storage volumes you can attach to an EC2 instance.

A

Elastic Block Store ( EBS )

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

Types of Elastic Block Store ( EBS ): SSD Volumes?

A

gp2
gp3
io1
io2
io2 Block Express

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

What is gp2?

A

General Purpose SSD
Suitable for boot disks and general applications.
Up to 16,000 IOPS per volume.
Up to 99.9% durability.

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

What is gp3?

A

Latest Generation General Purpose SSD
Suitable for boot disks and general applications
Baseline of 3,000 IOPS for all volumes
Up to 16,000 IOPS per volume
Up to 99.9% durability
20% cheaper than gp2

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

What is io1?

A

Provisioned IOPS SSD
Suitable for OLTP and latency-sensitive applications
50 IOPS/GiB
Up to 64,000 IOPS per volume
Up to 99.9% durability

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

What is io2?

A

Latest Generation Provisioned IOPS SSD
Suitable for OLTP and latency-sensitive applications
500 IOPS/GiB
Up to 64,000 IOPS per volume
Up to 99.999% durability

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

What is io2 Block Express?

A

Provisioned IOPS SSD
For the largest, most critical, high-performance applications: (SAP HANA, Oracle, Microsoft SQL Server, and IBM Db2 )
Up to 64 TB, 256,000 IOPS per volume
Up to 99.999% durability
SAN in the Cloud

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

Types of Elastic Block Store ( EBS ): HDD Volumes?

A

st1
sc1

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

What is st1?

A

Throughput Optimized HDD
Suitable for big data, data warehouses, and ETL
Max throughput is 500 MiB/s per volume
Cannot be a boot volume
Up to 99.9% durability

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

What is sc1?

A

Cold HDD
Max throughput of 250 MiB/s per volume
Data is accessed less frequently
Cannot be a boot volume
Lowest cost
Up to 99.9% durability

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

A point-in-time copy of an EBS volume. Great for backing up EBS volumes.

A

EBS snapshot

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

You can use a EBS snapshot to create?

A

New EBS volume.

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

Encrypted Snapshots

A

If you create a new EBS volume from an encrypted snapshot, then you will get an encrypted volume.

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

Unencrypted Snapshots

A

If you create a new EBS volume from an unencrypted snapshot, then you will get an unencrypted volume.

23
Q

It automatically distributes incoming application traffic across multiple targets and virtual appliances in one or more Availability Zones (AZs).

A

Elastic Load Balancing (ELB)

24
Q

Types of Elastic Load Balancing (ELB)?

A

Application Load Balancer
Network Load Balancer
Gateway Load Balancer
Classic Load Balancers

25
Q

Intelligent load balancing for HTTP/HTTPS. Routes requests to a specific web server based on the request type.

A

Application Load Balancer

26
Q

Provides high-performance load balancing for TCP traffic.

A

Network Load Balancer

27
Q

The legacy option that supports both HTTP/HTTPS and TCP.

A

Classic Load Balancers

28
Q

Provides load balancing for third-party virtual appliances.

A

Gateway Load Balancer

29
Q

If you need the IPv4 address of your end user, look for the ______________ HTTP header.

A

X-Forwarded-For

30
Q

Gateway timeout. The application is not responding within the timeout period. Troubleshoot your application or database server.

A

504 Error

31
Q

It is the Amazon’s DNS service.

A

ROUTE 53

32
Q

It allows you to map a domain name on EC2 Instance, Elastic Load Balancer and S3 Bucket.

A

ROUTE 53

32
Q

A container for DNS records for your domain

A

Hosted Zone

33
Q

Allows you to route traffic addressed to the zone apex, or the top of the DNS namespace (e.g., ilovecloud.com), and send it to a resource within AWS (e.g., an Elastic Load Balancer)

A

Allias

34
Q

Allows you to route traffic to a resource, such as a web server, using an IPv4 address

A

A Record

35
Q

Always give you users the minimum amount of access required to their job.

A

Least Privilege

36
Q

Tips for User Groups

A

Create IAM groups and assign your users to groups.
Group permissions are assigned using IAM policy documents.
Your users will automatically inherit the permissions of the group.

37
Q

Tips for Secret Access Key

A

You will only see this once! If you lose it, you can delete the access key ID and secret access key and regenerate them. You will need to run AWS configure again.

38
Q

Don’t Share Key Pairs

A

Each developer should have their own access key ID and secret access key. Just like passwords, they should not be shared.

39
Q

AWS CLI Supports Linux, Windows, MacOS

A

You can install the CLI on your Mac, Linux, or Windows PC. You can also use it on EC2 instances.

40
Q

Roles can be used to give EC2 instances access to?

A

AWS resources like S3.

41
Q

Steps to Use Roles with EC2

A

CREATE AN IAM ROLE with S3 access.
CREATE AN EC2 INSTANCE and attach the role we just created.
Try to ACCESS S3 from our EC2 instance.

42
Q

5 Key Points to Remember Using Roles with EC2

A
  1. Roles are preferred from a security perspective.
  2. Roles allow you to provide access without having to manage access key IDs and secret access keys.
  3. Policies control a role’s permissions.
  4. You can update a policy attached to a role, and it will take immediate effect.
  5. You can attach and detach roles to running EC2 instances without having to stop or terminate these instances.
43
Q

RDS Database Types

A

SQLServer, Oracle, MySQL, PostgreSQL, MariaDB, and Amazon Aurora.

44
Q

Great for processing lots of small transactions, like customer orders, banking transactions, payments, and booking systems.

A

RDS

45
Q

Great for OLAP Workloads and data warehousing tasks like analyzing large
amounts of data, reporting, and sales forecasting.

A

RedShift

46
Q

RDS is for OLTP Workloads and not Not Suitable for OLAP Workloads. True or False

A

True

47
Q

Automated Backup

A
  1. Automated, enabled by default, you define the backup window.
  2. Point-in-time snapshot plus transaction logs.
  3. Retention period of up to 35 days.
  4. Can be used to recover your database to any point in time within the retention period.
48
Q

DB Snapshot

A
  1. User-initiated, ad-hoc.
  2. Point-in-time snapshot only.
  3. No retention period; stored indefinitely.
  4. Used to back up your DB instance to a known state and restore to that specific state at any time ( e.g., before making a change to the database).
49
Q

Tips for RDS Encryption

A
  1. Enable at Creation - Includes all underlying storage, automated backups, snapshots, logs, and read replicas.
  2. KMS Integration- Uses the AWS Key Management Service (KMS) service for AES-256 bit encryption.
    3 Existing RDS Instances - Take a snapshot, encrypt the snapshot, then create a new RDS instance from the encrypted snapshot.
50
Q

RDS Multi-AZ

A
  1. An exact copy of your production database in another Availability Zone.
  2. Used for Disaster Recovery.
  3. In the event of a failure, RDS will automatically failover to the standby instance.
51
Q

RDS Read Replica

A
  1. A read-only copy of your primary database in the same AZ, cross-AZ, or cross-region.
  2. Used to increase or scale read performance.
  3. Great for read-heavy workloads and takes the load off your primary database for read-only workloads (e.g., Business Intelligence reporting jobs).
52
Q

It is an in-memory cache designed to improve read performance for read-heavy databases.

A

ElastiCache

53
Q

ElastiCache Memcached

A
  1. In-memory, key-value data store.
  2. Object caching is your primary goal.
  3. You want to keep things as simple as possible.
  4. You don’t need persistence or Multi-AZ.
  5. You don’t need to support advanced data types or sorting.
54
Q

ElastiCache Redis

A
  1. In-memory, key-value data store.
  2. You are performing data sorting and ranking, such as gaming leaderboards.
  3. You have advanced data types, such as lists and hashes.
  4. You need data persistence.
  5. You need Multi-AZ.
55
Q

Parameter Store

A
  1. Store Confidential Information ( Passwords, database connection strings, license codes, etc.)
  2. You can reference your parameters using the parameter name, e.g., in a bootstrap script.
  3. You can store values as plain text or encrypt them.
  4. You can use Parameter Store with EC2,CloudFormation, Lambda, CodeBuild, CodePipeline and CodeDeploy.