APP SERVICES, CONTAINERS & SERVERLESS Flashcards
What’s a Task Role used for within ECS?
It allows the Task to assume an IAM role that it requires for access to other AWS ressources.
What’s a Task representing within ECS?
It represents the entire application, which may consist of one or more containers.
What’s a Service Definition used for within ECS?
It defines how an application scales, i.e. how many applications run in parallel in an ECS cluster, including a load balancers to distribute traffic. Services should be used for any production workloads.
What’s a Container Definition within the context of ECS?
Part of the Task Definition, defining the properties for a single container such image, port number, CPU & memory
What’s a Task Definition used for within ECS?
Defines the security (Task Role) and container(s) to use, and the resources (CPU, memory, network, etc.) that each container gets assigned.
Which two cluster types exist with ECS?
EC2 mode and Fargate mode
What is maximum size for a payload with SNS?
256 KB
What is maximum size for a message with SQS?
256 KB
What’s VisibilityTimeout referring to with SQS?
Time that a message is hidden in the queue after it’s been picked up
How often can a message be delivered with Standard vs FIFO queues in SQS?
Standard: at least once
FIFO: exactly once
What is the performance of FIFO queues with and without batching (in messages per second)?
Batch: 3000 messages per second
Non-Batch: 300 messages per second
What’s the maximum time in seconds allowed for Long Polling with SQS (configured via waitTimeSeconds)?
Up to 20 seconds
How long can a message live in SQS?
Up to 14 days
What is important to know about the names of FIFO queues?
The name of a FIFO queue must end with the .fifo suffix
What’s the SQS Extended Client Library used for?
It automatically puts the payload of messages larger than 256 KB onto S3 when sending a message, and links the S3 object in the SQS message. When processing a message, it will also automatically retrieve the payload via S3 again and delete the S3 object when processing was finished successfully.
What are the min, max and default values for VisibilityTimeout in SQS?
Min: 0 seconds
Max: 12 hours
Default: 30 seconds
On which elements in SQS can the VisibilityTimeout be set?
Queue or Per-Message
What’s DelaySeconds referring to with SQS?
Time that a message is hidden in the queue after it’s been added to the queue
What are the min and max values for DelaySeconds in SQS?
Min: 0
Max: 15 minutes
When support for protocols like AMQP, MQTT, OpenWire or STOMP is required, what AWS service is a great fit?
Amazon MQ
If you’re using Jakarta Messaging API (formerly Java Message Service or JMS API) and want to continue using this on AWS, what AWS service is a great fit?
Amazon MQ
Is Amazon MQ a public or private service?
Private, so it requires setup in a VPC
What are supported runtimes with Lambda?
Python, Ruby, Java, Go, C#, NodeJS
Other languages are supported via Custom Runtimes.
What’s the min and max memory allocation with Lambda?
Min: 128 MB
Max: 3 GB
What’s the max run time with Lambda before a function times out?
15 minutes