Services - Compute Flashcards

1
Q

Batch - Characteristics

A
  • It allows to run thousands of computing jobs
  • It dynamically maintains the optimal compute resources like CPU, Memory based on the volume of submitted jobs
  • It executes workloads on EC2 instances and Fargate
  • There is no charge for using this service
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Batch - Multi-node parallel jobs

A
  • Allow to run single jobs that span multiple Amazon EC2 instances
  • Can run large-scale, tightly coupled, HPC applications and distributed GPU model training
  • A Batch multi-node parallel job is compatible with any framework that supports IP-based, internode communication, such as Apache MXNet, TensorFlow, Caffe2, or Message Passing Interface (MPI)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Elastic Beanstalk - Characteristics

A
  • It’s service for deploying and scaling web applications and services developed with Java, .NET, PHP, Node.js, Python, Ruby, Go, Docker, and Packer builder on servers like Apache, Nginx, Passenger, and IIS
  • Upload the code and it automatically handles the deployment, capacity provisioning, load balancing, auto-scaling, and application health monitoring
  • Can have control over the AWS resources powering the application and access those resources at any time
  • Pay for AWS services used only
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Elastic Beanstalk - Types of environments

A
  • Web tier environment: handles HTTP / HTTPS requests from the users
  • Worker environment:
  • A worker is a background process that helps applications for handling heavy resource and time-intensive operations
  • EC2 instances and SQS queues are involved
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

ECS - Characteristics 1

A
  • It’s a managed container orchestration service that helps to deploy, manage, and scale containerized applications
  • Manages clusters of instances that support Docker containers, and monitors resource consumption and availability requirements
  • Scales elastically and integrates with other services
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

ECS - Characteristics 2

A
  • Security is achieved through policies, availability requirements, and resource allocation
  • Pay for AWS resources created to store and run the application
  • When launching an ECS instance can pass user data to that instance by setting your custom configuration details in the user data parameter
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

ECS - Components

A
  • ECS container agent: a container that allows EC2 instances to talk with the backend logic of ECS for resource management, lifecycle coordination, and efficient scheduling
  • Cluster: a group of EC2 instances spread across many AZs that are running the ECS container agent
  • Task definition: a file that describes one or more containers. It’s a blueprint that specifies various parameters of your application
  • Task: instantiation of a task definition within a cluster
  • (Optional) Service: run and maintain many tasks simultaneously in an ECS cluster. Can optionally run it behind a load balancer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

EKS - Characteristics 1

A
  • It’s a managed container service to run and scale Kubernetes applications in the cloud or on-premises
  • Doesn’t need to install, operate, and maintain your own Kubernetes control plane or node
  • Scales the control plane across multiple AZs, based on load
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

EKS - Characteristics 2

A
  • Replaces unhealthy control plane instances, and provides automated version updates and patching for them
  • It’s integrated with many services such as ECR, ELB, IAM, and VPC
  • Consists of EC2 instances of Fargate compute, and a control plane
  • Pay for every EKS cluster used. If you run your Kubernetes worker nodes on EC2 you pay also for EC2 instances and EBS volumes used
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

ELB - Characteristics

A
  • It distributes incoming traffic across multiple targets, such as EC2 instances, containers, and IP addresses, in one or more AZs
  • It uses health checks on its registered targets to routes traffic only to healthy targets
  • It can automatically scale to the vast majority of workloads
  • Cross-zone load balancing:
  • When enabled, each load balancer node distributes traffic across the registered targets in all enabled AZs
  • When disabled, each load balancer node distributes traffic only across the registered targets in its AZ
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

ELB - Types

A
  • Application Load Balancing
  • Network Load Balancing: for load balancing of TCP, UDP, and TLS traffic where extreme performance is required. Routes traffic to targets within VPC and can handle millions of requests per second. Support dynamic host port mapping as ALBs do
  • Classic Load Balancing: basic load balancing across many EC2 instances. Operates at request or connection level. Intended for applications that were built within the EC2-Classic network
  • Gateway LB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

ELB - ALB characteristics 1

A
  • Makes routing decisions at the application layer
  • Supports HTTP, HTTPS, HTTP/2 and WebSockets. Can use any TCP port
  • Uses round-robin load balancing by default
  • Provides health checks. They consist of a HTTP GET request and a success code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

ELB - ALB characteristics 2

A
  • Supports path-based routing (forward request to different target groups) and host-based routing (forward requests based on host name)
  • Supports native IPv6, WAF integration, dynamic ports (ports utilized by scheduled containers of ECS), deletion protection, and request tracing
  • Support Server Name Indication (SNI) to enable hosting of multiple domain names with different TLS certificates for a single ALB. Many certificates can be associated with different listeners
  • Supports authentication from OIDC compliant identity providers (Google, Amazon, Facebook). It’s implemented through an authentication action on a listener rule that integrates with Cognito to create the respective user pool
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

ELB - ALB components

A
  • Listener: process that checks for a connection request using the configured protocol and port, and according defined rules
  • Target: traffic destination based on established listener rules
  • Target group: routes requests to one or more registered targets. A target can belong to multiple target groups. Health checks can be configured per target
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

ELB - Gateway Load Balancing

A
  • Deploys, scales, and runs third-party virtual networking appliances
  • Provides load balancing and auto scaling for fleets of third-party appliances
  • It’s transparent to the source and destination of traffic. It’s well suited when using third-party appliances for security, network analytics, and other use cases
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

ELB - Pricing

A
  • Application Load Balancer: charged for every hour of use, and the number of Load Balancer Capacity Units (LCU) used. They consist of connections, processed bytes, and rule evaluations
  • Network Load Balancer: charged for every hour of use, and the number of Network Load Balancer Capacity Units (NLCU) used. They consist of connections and processed bytes
  • Classic Load Balancer: charged for every hour of use and for each GB transferred through the LB
  • Gateway Load Balancer: charged for every hour of use, and the number of Gateway Load Balancer Capacity Units (GLCU) used. They consist of connections and processed bytes
17
Q

Fargate - Characteristics 1

A
  • It’s a managed service that you can use with ECS / EKS without having to manage servers or clusters of EC2 instances
  • Pay only for the CPU and memory time used
  • Customer only owns and manages their tasks, so there’s no SSH access to the infrastructure
  • Compute Savings Plans can be used to reduce costs in exchange for a usage commitment
18
Q

Fargate - Characteristics 2

A
  • A task defines container resources, image, and other details that indicate how the containers should run
  • A task runs inside a defined VPC
  • Supports ALB and NLB, not the Classic LB
  • Supports advanced task-level networking, so ENIs can be assigned to running ECS tasks from VPC subnets defined by you
19
Q

Lambda - Characteristics 1

A
  • It’s a serverless, event-driven compute service that lets you run code for any type of application or backend service without provisioning or managing servers
  • The code is organized in Lambda functions. You pay for what you use
  • Allows to add custom logic to AWS resources such as S3 buckets, DynamoDB tables, API endpoints, and others
  • Every Lambda function has an IAM role associated that is specified when the function is created. Two types of permissions can be granted:
  • To execute actions against other AWS resources
  • To poll streams and read new records on those streams
20
Q

Lambda - Characteristics 2

A
  • Allows to create backend application services that process custom events instead of servicing those events on the client
  • Can use third-party libraries or native code. The languages supported are Java, Go, PowerShell, Node.js, C#, Python, and Ruby
  • Provides automatic scaling. There’s no limit in the number of sequential requests
  • Compute Savings Plans can be used to reduce costs in exchange for a usage commitment
21
Q

Lambda - Configuration restrictions

A
  • Disk space is limited to 512 MB
  • Memory allocation is limited from 128MB to 10240 MB
  • Function execution is limited to 900 seconds (15 minutes)
  • Restrictions exist in request and response payload, deployment package size, file descriptors, concurrent executions, and others
22
Q

Step Functions - Characteristics

A
  • It’s a serverless, low-code visual workflow service used to orchestrate AWS services, like Lambda Functions. Also can automate business processes, and build applications
  • Through a graphical console, you see your application’s workflow as a series of event-driven steps
  • Workflows are defined using Amazon State Language
23
Q

Step Functions - Components

A
  • State machine represents a workflow
  • Task is type of state in a workflow. Each step in a workflow is a state
24
Q

Step Functions - Workflow types

A
  • Standard workflows have exactly-once workflow execution. So a task and states are never executed more than once and can run for up to one year
  • Express workflows have at-least-once workflow execution. So a task and states may be executed more than once and can run for up to five minutes
25
Q

Step Functions - State types

A
  • Task: do some work in your state machine
  • Choice: make a choice between branches of execution
  • Fail / Succeed: stop an execution with a failure or success
  • Pass: simply pass its input to its output or inject some fixed data
  • Wait: provide a delay for a certain amount of time or until a specified date / time
  • Parallel: begin parallel branches of execution
  • Map: dynamically iterate steps