Computing Flashcards

1
Q

What are the 2 main AWS container orchestration services?

A

-AWS Elastic Constainer Service (ECS)
-AWS Elastic Kubernetes Service (EKS)

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

What are the 2 main compute options on AWS ECS?

A

-EC2 (Customer managed instances)
-Fargate (Serverless)

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

What is the AWS service used for storing, managing and deploying container images?

A

-Elastic Container Registry (ECR)

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

True or False: ECR is compatible with the Docker Registry HTTP API V2

A

True

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

True or False: It is not recommended to run LLM inference on ECS since it lacks GPU Support

A

False, ECS has GPU support since it can run on any EC2 instance type

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

Whats the main use case where EKS is the recommended container orchestration solution?

A

If the cliente already works with Kubernetes and has built it’s systems around it.

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

True or False: ECR can only replicate repositories within the same region

A

False, ECR can replicate repositories both to different regions and different accounts

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

What are the types of accepted ECR repositories?

A

Public and Private

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

ECR can be configured to perform security scans of it’s images on which situations?

A

On Push and, in the case of Enhanced Scanning, Continuous Scanning. Otherwise, scans have to be performed manually.

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

What are the types of image scanning allowed in ECR?

A

-Basic Scanning using Common Vulnerabilities and Exposures Databases (CVEs)
-Enhanced Scanning using Amazon Inspector

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

What kinds of vulnerabilities can ECR Enhanced Scanning detect that Basic Scanning can’t?

A

Enhanced Scanning can detect OS vulnerabilities and Programming Language vulnerabilities

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

True or False: The results of the ECR Image Scan ca trigger EventBridge

A

True

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

What does the placement engine on ECS do?

A

It determines which images will be spun in what hardware/instance.

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

True or False: You can specify placement constraints and task placement strategies as part of your overall scheduling strategy to customize how Amazon ECS places your tasks.

A

True

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

What are the ECS Task Placement Strategies?

A

-Binpack: Places new task in instance with least CPU or Memory available.
-Spread: Distributes new tasks evenly between instances.
-Random: Places new task in random instance.

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

What are advantages of each ECS task allocation strategy? (Binpack, spread, random)

A

-Binpack: Useful for running few instances.
-Spread: Good for high availability
-Random: No advantages.

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

What are the ECS Task Placement Constraints?

A

Affinity: Places new task on group with a specific atribute (AZ, instance type, etc)
DIstinct Instance: New tasks have to be placed on different container instance (only one container of that image per instance)

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

Whtas the use case difference between ECS Task Scheduler and ECS Service Scheduler?

A

Task Scheduler should be used to run on-demand workloads while Service Scheduler should be used to run continuous, long-running applications

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

True or False: Fargate works with both ECS and EKS

A

True

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

Whats the most common way to integrate Secret Manager and SSM with ECS?

A

Pass secrets and configurations as environment variables to the running docker container

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

What are the types of ECS task networking?

A
  • none: No connectivity or port mappings
  • bridge: Use Docker’s virtual container-based network
  • host: bypass Docker and use the underlying host’s network interface
  • awsvpc: every task launched gets own ENI and private IP. Default for Fargate.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

The types of ECS auto-scaling are _______, based on the value of a pre-defined CloudWatch metric, ________, based on a specific CloudWatch alarm and ________, which happens periodically on a predetermined date/time

A

-Target Tracking
-Step Scaling
-Scheduled Scaling

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

True or False: Both Fargate and EC2 launch types on ECS can run in spot instances

A

True

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

True or False: An ECS cluster can either only have EC2 tasks or Fargate tasks, not both

A

False, a single ECS cluster can have tasks of any combination of launch types. A common use case is to have containers running on EC2 and to create more containers for dealing with spikes using Fargate, since they spin up faster

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

True or false: An ECS task definition is immutable

A

True

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

What is a Fargate platform version?

A

It is a specific runtime environment to be used on the execution of the ECS task, which includes the operating system kernel version and container runtime (Docker daemon) versions.

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

What are the 3 permission types Fargate receives from IAM?

A

-Cluster permissions
-Application permissions
-Task housekeeping permissions

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

What do Fargate cluster permissions govern?

A

Who can start, stop and describe tasks in a cluster. They work at a cluster level.

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

What do Fargate application permissions govern?

A

The permissions the containers executing the ECS task possess to access other AWS resources

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

What do Fargate task housekeeping permissions govern?

A

The permissions needed to perform housekeeping activities around a task, such as registering targets on the ELB, accessing ECR for the container image, etc.

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

True or False: Fargate ephemeral storage is based on EFS

A

False, it is based on EBS

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

How much space does each Fargate task receive for ephemeral storage?

A

10GB plus 4 GB of shared space for sharing data between containers.

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

If I Have 5 container inside a single Fargate task, how much ephemeral space will each of them have access to?

A

2GB (10GB /5) plus the 4 GB of shared space.

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

What is Kubernetes?

A

Kubernetes is an Open-Source solution for the management, deployment and caling of containerized aplications

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

True or False: Kubernets employs a master-worker architecture

A

True

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

What are the EKS node types?

A

-Managed Node Groups
-Self-Managed Nodes
-AWS Fargate (No management or nodes required)

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

What are the difference between EKS Managed Node Groups and Self-Managed Nodes?

A

Managed Node Groups create and manage nodes (EC2 instances) for you. These nodes are part of an ASG managed by EKS. Self-Managed Nodes are nodes created by you and registered to the EKS cluster and managed by an ASG.

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

True or False: Both EKS Managed Node Groups and Self-Managed Nodes support both on-demand and spot EC2 instances

A

True

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

What are the types of storage accepted by EKS?

A

-EBS
-EFS
-FSx for Lustre
-FSx for NetApp ONTAP

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

What is an ecs cluster?

A

Its a logical grouping of services and tasks

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

True ro False: When running an ECS cluster on EC2 you pay for the EC2 instances running plus the cluster manager running on ECS

A

False

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

What are the types of storage usable by ECS?

A

-EBS Volume
-EFS File System
-Amazon ECS Ephemeral Instance Store

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

What are the main existing EC2 instance types?

A

-R
-C
-M
-I
-G

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

What is the specialty of the EC2 R instance type?

A

It’s an instance with more RAM

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

What is the specialty of the EC2 C instance type?

A

It’s an instance with more computing power

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

What is the specialty of the EC2 M instance type?

A

It’s an instance type that’s balanced

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

What is the specialty of the EC2 I instance type?

A

It’s an instance type with more local I/O capacity

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

What is the specialty of the EC2 G instance type?

A

It’s an instance type with GPU

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

What are the EC2 instance placement groups?

A

-Cluster
-Spread
-Partition

49
Q

True or False: Once an instance is created inside a placement group it cannot be moved to another one

A

False, it can be moved as long as you stop it first

50
Q

What is the EC2 Cluster placement strategy and what are its advantages?

A

The cluster strategy places instancesin a low latency group inside the same AZ. Its is good if you are executing a job that needs a lot of fast communication between instance.

51
Q

What is the EC2 Spread placement strategy and what are its advantages?

A

The Spread strategy involves placing the instances spread through the harware, with a max of 7 instance per AZ. It’s good for increasing availability though spreading the instances on differente hardware and availability zones.

52
Q

What is the EC2 Partition placement strategy and what are its advantages?

A

The Partition strategy involves spreading instance within partitions (same racks) inside a single AZ, with up to 7 possible partitions inside a same AZ. It allows up to 100s of instances on the same Group and do not stop working if one of the racks fail.

53
Q

What are the existing EC2 instance launch types and what characterizes them?

A

-On demand: Pay as you go
-Spot instances: For transient workloads, must be prepared to lose access to the instance
-Reserved instances: Intances where you get a discount if you pledge to use them for a predetermined time.
-Dedicated instances: No other user will share hardware
-Dedicated host: Control entire physical server, control instance allocation

54
Q

What are the available durations for EC2 Reserved Instances?

A

1 or 3 years

55
Q

What are the existing payment types or Reserved Instances? Do any of them offer benefits?

A

There is All Upfront Payment, Partial Upfront Payment and No Upfront Payment, with a discount being offered proportional to ow early the payment is made

56
Q

What is EC2 Graviton?

A

It’s a spcific type of EC2 processors with best price performance, but cannot be used with Windows

57
Q

What are the restrictions on EC2 Graviton usage?

A

It cannot be used with Windows instances

58
Q

What are the EC2 inculded metrics?

A

-CPU usage
-Network In/Out
-System Status
-Disk Usage (Only for instance store)

59
Q

True or False: RAM is one metric that can be monitored by EC2 metrics

A

False

60
Q

True or False: When an EC2 instance is Recovered, it keeps the same Public, Private and Elastic IP

A

True

61
Q

True or False: If you High Performance Computing needs fast networking on tightly coupled workload you can employ an Elastic Fabric Adapter (EFA), which can increase network up to 100Gbps or, if your application uses Linux, an Elastic Network Adapter, whic is a more efficient version of EFAs for Linux

A

False, EFA and ENA are flipped

62
Q

The best performing FSx version for high aperforming computing in EC2 is ____________

A

FSx for Lustre

63
Q

The types of EC2 reserved instances that can be created regarding scope are ______________

A

Regional and Zonal Reserved Instances

64
Q

EC2 auto-scaling has all ECS sacling strategies plus a differente one. What is this different scaling strategy?

A

It’s predictive scaling, where EC2 predicts the future load and scales accordingly

65
Q

True or False: ASG does not support Spot Fleets

A

False

66
Q

What is an Autoscaling Life Cycle Hook?

A

It is an EC2 configuration that you can setup so that certain actions are performed before an instance is in service or is terminated

67
Q

True or False: Updating an Auto-Scaling AMI means the EC2 instances automatically get spun down and back up with the new AMI

A

False, you need to manually terminate them or use EC2 Instance Refresh for Auto Scaling

68
Q

What does EC2 Instance Refresh do?

A

It recreates all EC2 instances when an ASG Launch Template is updated, always mantaining a minimum percentage of healthy instances online.

69
Q

What are the types of Health Checks available for EC2 instances?

A

-EC2 Status Check
-ELB Health Check (HTTP)
-Custom Health Check (You configure)

70
Q

How does EC2 Spot Instances determine when to vacate instances from customers and when to allocate them?

A

-The customer sets a Max Spot Price, and while the current Spot price is under that value that instance is considered usable

71
Q

What are EC2 Spot Fleets?

A

Spot Fleets are a group of Spot Instances + On-demand instances (optional) that try to meet target capacity within a price constraint, allowing the request of Spot Instances with the lowest price. You can define multiple launch pools each with their own instance type, AZ, etc and the fleet chooses from the most adequate pool.

72
Q

What are the EC2 Spot Fleet instance allocation strategies?

A

-lowestPrice: Allocates from the pool with the lowest price
-diversified: Distributed accross all pools
-capacityOptimized: Pool with the optimal capacity for the number of instances
-priceCapacityOptimized (recommended): Pools with the highest capacity available then select the pool with the lowest price

73
Q

Whats the difference between Passive and Active High-Availability?

A

-Passive: When there is failover a failure node is activated so the system keeps working
-Active: There are multiple parallel versions of the system working in paarallel

74
Q

What are the Docker Container Management services on AWS?

A

-ECS
-EKS
-Fargate

75
Q

What is AWS AppRunner?

A

It’s a service that allow you to create web applications based only on your code or container image

76
Q

The services that allow you to run ECS or EKS anywhere you like, such as on-premise data centers, are called _____________

A

ECS Anywhere and EKS Anywhere

77
Q

What do you need installed on your server for ECS Anywhere to work properly?

A

ECS Container Agent and SSM Agent

78
Q

What programming languages does AWS Lambda support by default?

A

-Node.js (Javascript)
-Python
-Java
-C# (.NET Core)
-Golang
-C#/Powershell
-Ruby

79
Q

The max available Lambda memory is ______

A

10GB

80
Q

The /tmp storage space available in AWS Lambda is ________________

A

10.240 MB

81
Q

The max size of the accepted AWS Lambda deployment package is _____________

A

50MB zipped, 250MB unzipped (including layers)

82
Q

The max container image size for AWS Lambda is _________________

A

10GB

83
Q

True or False: If you configure a Lambda Function with a reserved concurrency of 10, that means that there can only be 10 executions of that function at the same time, but those 10 executions are always available to be used by that function, regardless of other Lambda invocations

A

True

84
Q

True or False: AWS Lambda deployments made by Code Deploy have all of the default deployment strategies available (Linear, Canary, AllAtOnce)

A

True

85
Q

True or False: When an AWS Lambda is triggered by an Async event (Ex: S3 event) it can by default retry the processing 5 times in case of error, after which it stops trying, with the offending message being sent to an SNS DLQ (Optional)

A

False, Lambda only retries 3 times

86
Q

Whats AWS Batch

A

It’s a service that uses container images to process data on batch requests (Similar to processing jobs)

87
Q

True or False: AWS Batch is serverless, and can run either on AWS Fargate or on EC2 instances (Spot or On-Demand) inside it’s VPC

A

True

88
Q

What is AWS Batch Multi-Node Mode? What is it good for?

A

Its an AWS mode that allows you to run AWS Batch batches on parallel on multiple EC2/ECS instances. It is good for HPC, and works best if you use a Cluster placement strategy.

89
Q

True or False: AWS Batch Multi-Node Mode works with neither Spot Instances or Fargate

A

False, it does work with Fargate, but not Spot Instances

90
Q

Elastic Beanstalk supports which platforms?

A

-Go
-PHP
-Python
-Ruby
-Java SE
-Java with Tomcat
-Node.js
-NET on Windows Server with IIS
-Packer Server
-Single Container Docker
-Multi Container Docker
-Preconfigured Docker
-Custom Platform

91
Q

What kind of migration is EBS recommended for?

A

Replatforms

92
Q

What are the available architecture deployment modes for EBS?

A

-Single instance deployment
-LB + ASG
-ASG only
-Worker

93
Q

True or False: EBS Can be used to perform Blue/Green deployment

A

True

94
Q

What is AWS Compute Optimizer?

A

It is a service that allows you to optimize your workloads by recommending optimal resources

95
Q

What are the types of supported AWS Compute Optimizer workloads?

A

-EC2
-EC2 Auto-scaling
-EBS Volumes
-Lambda Functions

96
Q

True or False: Compute Optimizer can help you optimize you workload by suggesting optimal configurations and right-sizing your workloads

A

True

97
Q

True or False: Compute Optimizer needs Cloudwatch Agent installed on your machines to analize their metrics

A

False, it needs the agent only to analize Memory Utilization metrics

98
Q

What are the main use cases of Edge Computing?

A

-Preprocess Data
-ML
-Transcoding media streams

99
Q

True or False: Snowball Edge Hardware can be optimized either for Compute, Storage or IO

A

False, only Compute or Storage

100
Q

True or False: Both Snowball Edge and Snowcone can run EC2 and Lambda using IoT Greengrass, and both can get discounts if their usage is commited to 1 or 3 years

A

True

101
Q

To use the Snow Family you need the _________ interface

A

AWS Ops Hub

102
Q

True or False: Enabling CPU hyperthreading in EC2 instances can result in increased performance on HPC contexts

A

False, you actually should disable it if you want increased performance

103
Q

True or False: EC2 ENAs are plug-and-use, requiring no additional configurations to be used

A

False, ENA configuration requires reasonable effort

104
Q

What is one case where the use of Step Scaling is better over the use of Target Tracking on an ASG?

A

When you need to scale multiple times in quick succession, since there is a small cooldown on scaling when you use target tracking.

105
Q

What is the Reserved Instance Marketplace?

A

It is a place where you can sell your AWS Reserved Instance capabilities if you do note need them anymore

106
Q

What are the predefined instance attributes valid for reserved instances?

A

-Type
-Tenancy
-OS
-Region

107
Q

Whats a Convertible Reserved Instance?

A

It is a type of reserved instance where you can switch some of the instance parameters (Type, Tenancy, Region, OS)

108
Q

True or False: To use EC2 Hibernation it’s EBS Block must be encrypted

A

True

109
Q

True or False: To use EC2 Hibernation the instance RAM must be smaller then 256GB and it must use EBS as its root volume

A

False, it must be smaller the 150GB

110
Q

True or False: EC2 Hibernation is not supported for base metal instances

A

True

111
Q

True or False: An EC2 instance can only hibernate for 30 days

A

False, 60 days

112
Q

For what types of instances is EC2 hubernation enabled?

A

On-demand, Reserved, Spot

113
Q

What are the use cases for the Partition placement group?

A

-HDFS
-Hbase
-Kafka
-Cassandra

114
Q

When using App Runner to create a service you must connect to either a Bitbucket or Github repository

A

False, you must connect only if you are creating a service based on code. A service based on image does not need to connect to a repository.

115
Q

What is AWS Lightsail?

A

It is a service focused on the creation of websites and web applications.

116
Q

What are some development stacks compatible with Lightsail?

A

-LEMP
-LAMP
-SQL Server Express

117
Q

What are some applications compatible with Lightsail?

A

-Wordpress
-Magento
-Drupal

118
Q

What is the EBS Worker Environment?

A

It is an environment where you send messagges to SQS and the EBS resources scale based on the number of messages on the queue

119
Q

True or False: It is common to separate ELB applications in 2 tiers, one web tier (EC@ + ELB) and one worker tier (SQS + EC2)

A

True