AWS: Compute Flashcards
With ________ you launch virtual server instances on the AWS Cloud.
Amazon EC2
Key pairs are used to securely connect to EC2 instances. What do key pairs consist of?
a public key that AWS stores, and a private key that you store
________ is data that is supplied by the user at instance launch in the form of a script.
User data
_________ is data about your instance that you can use to configure or manage the running instance.
Instance metadata
True or False: User data and metadata are not encrypted.
True
Instance metadata and Instance user data are available at …?
Instance metadata: http://169.254.169.254/latest/meta-data/
Instance user data: http://169.254.169.254/latest/user-data
The ____________ tool allows you to query the instance metadata without having to type out the full URI or category names.
Instance Metadata Query
_________ instances are ideal for short term needs or unpredictable workloads. They are charged by the hour or second, and there is no commitment.
On Demand
________ are available at up to 90% discount compared to In Demand prices. These instances are ideal for cost-sensitive, compute intensive use cases that can withstand interruption.
Spot Instances
________ instances offer significant discounts over On Demand pricing, but there is a commitment of 1 or 3 years. These instances are ideal for steady-state workloads and predictable usage.
Reserved
________ are dedicated just for your use. It is the most expensive option, and can only run one EC2 instance size and type.
Dedicated Hosts
________ are virtualized instances on hardware just for you. Uses physically dedicated EC2 servers.
Dedicated Instances
A1, T3, T3a, T2, M5, M5a, M4 instance sizes belong to the ________ instance type. _______ instances provide a balance of compute, memory, and networking resources, and can be used for a variety of diverse workloads.
General Purpose
C5, C5n, C4 instance sizes belong to the ________ instance type. These instances are ideal for compute bound applications that benefit from high performance processors.
Compute Optimized
R5, R5a, R4, X1e, X1, High Memory, z1d instance sizes belong to the __________ instance type. These instances are designed to deliver fast performance for workloads that process large data sets in memory.
Memory Optimized
P3, P2, G4, G3, F1 instance sizes belong to the _________ instance type. These instances use hardware accelerators to perform functions like floating-point number calculations, graphics processing, or data pattern matching.
Accelerated Computing
I3, I3en, D2, H1 instance sizes belong to the _______ instance type. These instances provide NVMe SSD-backed instance storage optimized for low latency, very high random I/O performance, high sequential read throughput, and provide high IOPS at a low cost.
Storage Optimized
An ______ provides the information required to launch an instance. You can only launch an ____ from the region it was stored.
AMI
Volumes attached to an AMI launched instance are either ____ or ________.
EBS
Instance Store
________ provides persistent storage. Snapshots which reside on Amazon S3 are used to create the volume.
Amazon Elastic Block Store (EBS)
_______ volumes are non-persistent. This means that data is lost if the instance is shut down. A template stored on Amazon S3 is used to create the volume.
Instance Store
There are three types of IP addressed that can be assigned to an EC2 instance:
Public: lost when instance is stopped
Private: retained when instance is stopped
Elastic IP: retained when instance is stopped
_______ are more secure than storing access keys and secret access keys on EC2 instances. They are easier to manage, and you can attach an ______ to an instance at launch time or by using the AWS CLI, SDK, or EC2 console.
IAM roles
True or False: EC2 status checks are performed every minute and each returns a pass or a fail status.
True
If all checks pass from an EC2 status check, the overall status is ____.
If one or more checks fail, the status is _______.
OK
impaired
______________ detect problems with your instance that require AWS involvement to repair.
System status checks
__________ detect problems that require your involvement to repair.
Instance status checks
You can create _________ alarms that monitor EC2 instances and automatically perform an action if the status check fails.
CloudWatch
A ____ is a label that you assign to an AWS resource, and is used to manage AWS assets.
Tag
____________ is a highly scalable, high-performance container management service that supports Docker containers and allows you to easily run applications on a managed cluster of EC2 instances.
Amazon Elastic Container Service (ECS)
Using __________ you can launch and stop container-enabled applications, query the complete state of clusters, and access many familiar features like security groups, Elastic Load Balancing, EBS volumes, and IAM roles.
API calls
It is possible to use _________ to handle the provisioning of an ECS cluster, balancing load, auto-scaling, monitoring, and placing your containers across your cluster.
Elastic Beanstalk
An Amazon ECS launch type determines the type of infrastructure on which your tasks and services are hosted. There are two launch types:
Fargate
EC2
The _______ ECS launch type allows you to run containerized applications without the need to provision and manage backend infrastructure.
Fargate
The _____ ECS launch type allows you to run your containerized applicaitons on a cluster of EC2 instances that you manage.
EC2
_______ are a logical grouping of container instances that you can place tasks on. A default is created, but you can then create multiple to separate resources.
ECS Clusters
True or False: Clusters are region-specific.
True
______ are created from a read-only template called an image which as the instructions for creating a Docker container.
Containers
______ are built from a Dockerfile. They are stored in a registry such as DockerHub or AWS Elastic Container Registry (ECR).
Images
True or False: Docker containers are not supported on ECS.
False.
Only Docker containers are supported on ECS.
______ is a managed AWS Docker registry service that is secure, scalable, and reliable. It supports private Docker repositories with resource-based permissions using AWS IAM in order to access repositories and images.
ECR
We can use the ______ to push, pull, and manage images.
Docker CLI
A ________ is a text file in JSON format that describes one or more containers, and uses Docker images to launch containers.
Task Definition
True or False: A task definition is required to run Docker containers in Amazon ECS.
True
A ___________ is an algorithm for selecting instances for task placement or tasks for termination. They can be specified when either running a task or creating a new service.
task placement strategy
Amazon ECS supports which task placement strategies?
binpack: place tasks based on the least available amount of CPU/memory
random: place tasks randomly
spread: place tasks evenly based on the specified value
__________ are expressions that enable you to group objects.
Cluster queries
Amazon ECS service can optionally be configured to use ___________ to adjust the desired task count up or down automatically.
Service Auto Scaling
_____________ is a fully-managed Docker container registry that makes it easy for developers to store, manage, and deploy Docker container images.
Amazon Elastic Container Registry (ECR)
___________ automatically distributes incoming application traffic across multiple targets, such as Amazon EC2 instances, containers, and IP addresses.
Elastic Load Balancing
There are three types of Elastic Load Balancer (ELB) on AWS:
Classic Load Balancer (CLB) – this is the oldest of the three and provides basic load balancing at both layer 4 and layer 7 (TCP/SSL/HTTP/HTTPS).
Application Load Balancer (ALB) – layer 7 (HTTP/HTTPS) load balancer that routes connections based on the content of the request.
Network Load Balancer (NLB) – layer 4 (TCP) load balancer that routes connections based on IP protocol data.
___________ control the ports and protocols that can reach the front end listener.
Security groups
__________ monitors your applications and automatically adjusts capacity to maintain steady, predictable performance at the lowest possible cost.
AWS Auto Scaling
The services within the AWS Auto Scaling family include:
Amazon EC2 (known as Amazon EC2 Auto Scaling)
Amazon ECS
Amazon DynamoDB
Amazon Aurora
True or False: Amazon EC2 Auto Scaling helps you ensure that you have the correct number of Amazon EC2 instances available to handle the load for your application.
True
Auto Scaling provides ______ scaling for your instances.
horizontal scaling (scale-out)
__________ is a serverless compute service that runs your code in response to events and automatically manages the underlying compute resources for you.
AWS Lambda
You can use ________ to extend other AWS services with custom logic, or create your own back-end services that operate at AWS scale, performance, and security.
AWS Lambda
AWS Lambda can automatically run code in response to multiple events, such as …
HTTP requests via Amazon API Gateway
modifications to objects in Amazon S3 buckets
table updates in Amazon DynamoDB
and state transitions in AWS Step Functions
With AWS Lambda, you are charged based on …
the number of requests for your functions and the time it takes for your code to execute.