Overall AWS Flashcards

Full review

1
Q

What is the proper way to use IAM for users and security for daily activities.

A

The initial registering user is the root user. They have full unrestricted access and should not be used for day to day activities. Instead create a IAM group (security group) and add IAM users to that group. Those users are used for daily activities.

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

Difference between a Region and a Availability Zone

A

Region are set areas around the world that have access. Availability zones are connected areas that comprise a region.

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

Benefit of having many regions/AZs

A

Lower Latency (faster access)
Global Footprint/presence
Adhere to govenment regulations (run commands in different region)
High availability (good for crash situations)

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

AZs have redundant power, why?

A

If something goes down/a crash, can utilize extra power

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

Simple summary of the EC2 service?

A

Essentially just rentable virtual servers (instances) where you can run software, commands, etc.

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

What is EC2 AMI

A

Template for what operating system and software needed for the instance.

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

What is important about the EC2 instance type

A

Instance type decided hardware configuration. Think CPU, GPU, memory, etc.

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

What is an instance family

A

Specialized hardware configuration. Some instance families have higher GPU, or higher CPU, or are balanced depending on the use case.

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

Describe how Key Pairs work in security

A

Key pairs are composed of public and private keys. Public keys are stored on the EC2 instance while private keys are stored by the user (its typically just a file). Both are necessary to access the instance.

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

What are security groups

A

A virtual firewall to control incoming and outgoing traffic to/from AWS resources.
Default is deny
Only allow rules

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

Describe the monitoring tab (EC2)

A

Holds metrics related to the instance. Cloud Watch is the monitoring service that powers these metrics

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

Why are elastic IP addresses important.

A

Stopping an instance will remove the public IP address and generate a new one when starting again. Elastic IP addresses allows an instance to keep the same public IP address.

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

Are IP addresses free as long as they are attached to an instance?

A

NOT ANYMORE. They used to be free if attached.

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

Difference between IaaS and PaaS

A

IaaS (infrastructure as a Service): Using only infrastructure from cloud provider. Customer responsible for OS upgrades and patches, app code and runtime, availability, scalability, load balancing, etc. (Think EC2)

PaaS (Platform as a Service): More is handled by the Cloud provider. Customer only responsible for App code/configuration. (think Beanstalk)

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

Would Elastic Load Balancing better fit under PaaS or IaaS

A

PaaS. AWS makes sure patches are up to date and takes care of auto scaling. More specifically, it is a managed service.

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

What is the Elastic Load Balancer (ELB)

A

Distributes traffic across EC2 instances in one or more AZs in a SINGLE region (IE region specific)

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

What is a Classic ELB type

A

Supports Layer 4 (TCP/TLS) and Layer 7 (HTTP/HTTPS) protocols. NOT RECOMMENDED BY AWS

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

What is an Application ELB type

A

Supports HTTP/HTTPs protocols. Most popular ELB. Support advanced routing approaches (based on different parts of access request)

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

What is a Network ELB type

A

Supports TCP/TLS protocols. Specifically used for High performance needs.

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

What is a Gateway ELB type

A

Distributes traffic across multiple virtual Third party appliances based on demand.

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

In EC2, describe how to achieve higher availability.

A

Deploy to multiple AZs in multiple regions. Load balancer between those.

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

Describe vertical vs horizontal scaling (scalability). Which is preferred?

A

Vertical scaling mean increasing instance size (T2.nano –> T2.Large)
Horizontal scaling increases number of instances (requires auto scale group and load balancer tho)
Horizontal scaling is typically better since it is usually less expensive and increases availability.

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

Different EC2 Tenacities

A

Shared (default): single host with instances from multiple customers.

Dedicated instances: instances in host belong to same customer. Not visibility into hardware of host.

Dedicated Host: Same as dedicated instance but with hardware access. Good for regulatory needs/server bound software licenses (microsoft SQL server)

24
Q

On demand pricing model for EC2

A

Request instances when you need it. Best for unpredictable traffic or batch programs that cannot be interrupted.

25
Q

Spot pricing model for EC2

A

Cheapest. Quote maximum price that you may get. Can be terminated due to pricing trends with 2 min warning. Good for anything that can be stopped and resumed over short notice.

26
Q

Reserved pricing model for EC2

A

Reserve ahead of time (1-3 years)
Submodels available for how much you want to pay upfront. (More = cheaper)
Good for constant workload that runs all the time.

27
Q

Savings Plan pricing model for EC2

A

Commit spending X per hour on tech in 1-3 years. (no restrictions)
2 Subtypes:
Compute - Spend X dollars/hour on resources. Complete flexibility on hardware.
Instance - spend x dollars/hour for specific instance family in specific region. Can change operating systems.

28
Q

Auto scaling components:

A

Launch config/template - EC2 instance size and AMI
Auto scaling group - min,max, desired size
Auto scaling policies - When and how to execute scaling (through rules)

29
Q

Features of Beanstalk

A

It is a PaaS. AWS takes care of auto load balancing, auto scaling, platform updates, health monitoring. Only pay for AWS resources provisioned.

30
Q

What does Serverless mean?

A

Cloud manages everything (Scaling, availability). You only worry about your own code.
Example: AWS Lambda

31
Q

What is Amazon Lightrail

A

Used for Pre-configured dev stacks (software) like Node.js or to run websites on weird things like Magento. constantly low monthly price.

32
Q

What is AWS Batch

A

Run batch computing workloads on AWS. Can use EC2 and Spot instances to make cheaper.

33
Q

What is AWS Cloud9

A

Cloude based IDE that lets you write, run, and debug code with just a browser. Includes all essential tools for popular languages.

34
Q

What is AWS CloudShell

A

Browser based shell that provides secure way to manage AWS resources (via command line)

35
Q

What is AWS Amplify

A

Good/Quick for developers to build scalable and secure cloud-powerweb and mobile apps (IE web and mobile)

36
Q

What is Amazon CodeCatalyst

A

Similar to AWS Amplify but also includes tools to help with planning and overall app lifecycle

37
Q

What is AWS CodeArtifact

A

Centalized repository to store and manage reusable code artifacts and dependencies. Securely store, publish, and share software packages.

38
Q

What is Amazon S3?

A

Simple Storage Service where you can upload objects (files) into buckets for storage. Utilized different storage classes for access frequency and pricing.

39
Q

Describe the Key value approach to S3 storage

A

Key is a unique entity per bucket. Value is typically the object itself (kinda like a file name). Important in locating a stored object.

40
Q

Can S3 host websites?

A

YES! but only if they are static

41
Q

For S3 buckets, discuss their uniqueness.

A

S3 is a global service so bucket names are globally unique. (though I believe buckets are still tied to a region)

42
Q

What elements of S3 have cost and what is free of cost?

A

Storage (per GB), Retrieval charge (if applicable), monthly tiering fee (only for IT storage), Data transfer fee are cost elements

Data transfer to S3, transfer between S3 and CloudFront, and transfer from S3 to same region services are free

43
Q

Briefly Describe all storage classes in S3

A

Standard: Frequently accessed
Standard-IA: long-lived, infrequently accessed
One Zone-IA: Infrequently accessed non-critical (1AZ)
Intelligent Tiering: Changing/Unknown access patterns
Glacier: Archive data with slow retrieval
Glacier Deep Archive: Rarely accessed data

44
Q

What S3 storage classes require encryption

A

Glacier and Glacier Deep Archive

45
Q

What level can you set a storage class?

A

Classes can be set all the way to the individual object level

46
Q

How much storage can you get with S3?

A

Unlimited! However, Object size is a max of 5GB. Can have as many objects as you want.

47
Q

High level difference between block storage and file storage

A

Block storage is more like hard disk. Stored only on the local device. File storage is like file share where storage is on a network.

48
Q

Describe AWS Elastic Block Storage

A

Durable, high availability storage that can be associated and disassociated with an EC2 instance. Flexible capacity based on how much you need. EBS is on a network storage? Supports snapshots for replication/archiving.

49
Q

Describe AWS Instance Store

A

Storage method that is physically tied to EC2 instance. Ephemeral storage that is good for cache files. Included in EC2 cost.

50
Q

Describe the 3 AWS options for FILE STORAGE (file share)

A

Amazon EFS: for EC@ linux based instances. autoscales.
Amazon FSx Windows: Integrates with Microsoft active directory to support Windows environments. Auto encryption.
Amazon FSx for Lustre: For high performance use cases. Auto encryption

51
Q

What is Hybrid Storage?

A

Automatically think Storage Gateway AWS service. When you store some data on physical servers (on premise) as well as on the cloud.

52
Q

Three Options to Storage Gateway?

A

File Gateway: Large file share. Files stored in S3 and Glacier. Expensive to manage.
Storage tape gateway: Used to keep archives in virtual tapes
Volume Gateway: Moves block storage to cloud.

53
Q

Describe the two options of volume gateway

A

Cached volumes: Primarily stored in S3. Cached stores frequently accessed data.
Stored volumes: EBS snapshots saved

54
Q

What storage gateway option would you use for the following scenarios:
1. Large file shares need to be moved to the cloud.
2. Tape backups need to be on the cloud.
3. High performance volume backups needed on cloud.
4. Non-high performance volume backups needed.

A
  1. File gateway
  2. Storage tape gateway
  3. Volume Gateway (stored volume)
  4. Volume Gateway (cached volume)
55
Q
A