Compute Flashcards

1
Q

Elastic Compute Cloud (EC2)

A

Provides virtual machines, referred to as EC2 instances.

You can launch instances of any size into an Availability Zone anywhere in the world.

Launch the instances from Amazon Machine Images (AMIs).

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

Amazon Machine Image (AMI)

A

A template that is used to create an EC2 instance.

Contains a Windows or Linux machine and also has some software pre-installed.

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

Instance Types

A

General purpose​;

Compute optimized​;

Memory optimized​;

Storage optimized​;

Accelerated computing​;

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

Instance Type Naming

A

x#.size:

x is the family name;
# is the generation number;

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

Network Settings

A

Elastic Network Adapter (ENA): Supports network speeds of up to 100 Gbps.​

Intel 82599 Virtual Function interface: Supports network speeds of up to 10 Gbps.​

VPC? Subnet? Public IP address?

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

IAM Role

A

Will software on the EC2 instance need to interact with other AWS services?​ If yes, attach an appropriate IAM Role.

IAM Role that is attached is kept in an instance profile.

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

User Data Script

A

Used to customize the runtime environment of your instance.

Script runs the first time the instance starts.

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

Storage

A

Used to configure the root volume and any additional volumes and set up encryption if needed.

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

Tags

A

A label that you can assign to an AWS resource, consists of a key and an optional value.

It is how you can attach metadata to an EC2 instance.

Benefits include filtering, automation, cost allocation, access control.

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

Security Group

A

A set of firewall rules that control traffic to the instance.

Create rules that specify the source and which ports that network communications can use

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

Key Pairs

A

At instance launch, you specify an existing key pair or create a new key pair, to enable secure connections to the instance.

AWS stores the public key,
You store the private key;

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

Elastic Block Store (EBS)

A

Durable, block-level storage volumes.
You can stop the instance and start it again, and the data will still be there.

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

EC2 Instance Store

A

Ephemeral storage is provided on disks that are attached to the host computer where the EC2 instance is running.
If the instance stops, data stored here is deleted.

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

Instance Hibernation

A

Benefits:
Saves contents from RAM;
On instance restart, RAM contents are reloaded, previously running processes resumed.
Save cost in this state;

Prerequisites:
Only certain AMIs and only certain families support it.
Instance must have an encrypted Amazon EBS root volume and a maximum of 150GB RAM;
Hibernation must be enabled at instance launch;

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

Elastic IP Address

A

When an instance is stopped and started again, the public ipv4 address and external DNS hostname will change.

Use this if you require a persistent public IP address

Mask the failure of software or instance from your AWS account achieved by remapping the address to another instance.

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

EC2 Instance MetaData

A

Data about your instance.
Can view at http://…/latest/meta-data/

17
Q

CloudWatch

A

Used to monitor EC2 Instances, providing near-real time metrics and charts.

Offers Basic Monitoring (no additional cost),
or Detailed Monitoring (monthly rate);

18
Q

On-Demand Instances​

A

Pay by the hour;

No long-term commitments;

Best for:
Short-Term, spiky or unpredictable workloads,
App development/testing;

19
Q

Dedicated Hosts​

A

A physical server with EC2 instance capacity fully dedicated to your use.​

20
Q

Reserved Instances​

A

Full, partial, or no upfront payment for instance you reserve.​

21
Q

Spot Instances​

A

Instances run as long as they are available and your bid is above the Spot Instance price.​

Good choice when you have flexibility in when your applications can run.

Best for:
Apps with flexible start/end times,
Users with urgent computing needs for large amounts of digital capacity;

22
Q

Cost Optimization

A

Right Size,
Increase Elasticity,
Optimal Pricing Model,
Optimize Storage Choices ;

23
Q

Container

A

A method of operating system virtualization.​

Benefits:
Repeatable,
Self-contained environments,
Software runs the same in different environments,
Faster to launch and stop or terminate than virtual machines;

24
Q

Docker

A

Software platform enabling you to build, test and deploy apps quickly.

You can run containers on Docker:
Containers are created from a template called an image.

A container has everything a software application needs to run.

25
Q

Elastic Container Service (ECS)

A

Highly scalable, fast, container management service.

Benefits:
Orchestrates Docker Containers,
Maintains and scales the fleet of nodes that run your containers,
Removes the complexity of standing up the infrastructure.

If YOU want to manage: Create it backed by an EC2 Instance,
otherwise back it with Fargate;

26
Q

Kubernetes

A

Open source software for container orchestration:
Deploy and manage containerized apps at scale,
Can be used on premises and in the cloud.

Docker enables you to run multiple containers on a single OS,
Kubernetes orchestrates multiple Docker hosts (nodes);

Automates:
Container provisioning,
Networking,
Load distribution,
Scaling;

27
Q

Elastic Kubernetes Service (EKS)

A

Enables you to run containers that are orchestrated by Kubernetes on EC2 compute instances.

28
Q

Elastic Container Registry (ECR)

A

A fully managed docker container registry that makes it easy for developers to store, manage, and deploy docker container images.

29
Q

Lambda

A

A server-less compute service to run code without servers.

Benefits:
Supports multiple programming languages,
Automated administration,
Built-in fault tolerance,
Supports orchestration of multiple functions,
Pay-per-use pricing;

30
Q

Event Sources

A

Other AWS services can be configured as event sources to invoke your function and run lambda code.

31
Q

Elastic Beanstalk

A

Easy way to get web applications up and running without much configuration.

You upload your code and Beanstalk automatically handles the deployment

Benefits:
Fast and Simple,
Developer productivity,
Difficult to grow,
Complete resource control;