AWS Certified Solutions Architect - Associate Flashcards
SHARDS
Think Kinesis Streams. It is the only form of Kinesis that uses shards.
Default is storage in shards for 24hrs. Can be configured up to days
Kinesis Firehose
NO PERSISTENT STORAGE (like streams>shards). Data has to be analysed as it comes in.
Can use lambda functions. Data comes in, triggers lambda then outputs to s3 or Redshift (although not directly to Redshift. Needs to go to s3 first then import in to Redshift) or Elasticsearch cluster and Splunk
SQS - FIFO Queue
First-in First-Out Delivery
Exactly Once Processing
Limited to 300 transactions per second
SQS
Is PULL based (not pushed = SNS)
Messages are 256KB in size
Messages can be kept in the queue from 1 minute to 14 days
Default retention is 4 days Important to remember
SQS - Visibility Time Out
The amount of time that a msg is invisible in the Q after a reader picks up that msg.
DEFAULT 30 seconds
MAXIMUM is 12HRS
Provided the job is processed before the visibility timeout expires, the msg will then be deleted from the Q.
If not processed in time. The msg will become visible again and another reader will process it.
This CAN result in the same msg being delivered twice/
SQS Polling
SHORT POLLING - returns immediately even if Q is empty LONG POLLING (Saves Money) - doesn't return a response until a message arrive sin the Q or the long poll times out.
SWF (if TASK is mentioned think SWF)
Workflow executions can last up to 1 year
SWF presents a task-oriented API (whereas SQS offers a msg oriented API)
SWF ensures a task is assigned only once and never duplicated
SWF keeps track of all tasks/events in an app (For SQS you need to implement your own tracking)
SWF
- WORKFLOW STARTERS
- DECIDERS
- ACTIVITY WORKERS
Workflow Starters - an app that can initiate a workflow. Could be an e-commerce website following the placement of an order, or a mobile app searching for bus times
DECIDERS - control the flow of activity tasks in a workflow execution. If something has finished/failed in a workflow, a decider decides what to do next.
ACTIVITY WORKERS - carry out the activity tasks
SNS vs SQS
Both are messaging systems
SNS - Push
SQS - Polls (Pulls)
Cross-origin resource sharing (CORS)
a mechanism that allows restricted resources (e.g. fonts) on a web page to be requested from another domain outside the domain from which the first resource was served.
CORS is enforced by the client.
EXAM Q - If you see something along the lines of “Origin policy cannot be read at the remote resource”
You need to ENABLE CORS on API Gateway
Attaching a network interface to an EC2 instance
You can attach a network interface to an EC2 instance in the following ways:
1. When it's running (hot attach) 2. When it's stopped (warm attach) 3. When the instance is being launched (cold attach).
IAM database authentication
IAM database authentication is only supported in MySQL and PostgreSQL database engines.
AWS X-Ray
usedto trace and analyze user requests as they travel through your Amazon API Gateway APIs to the underlying services.
Glacier Select
is not a storage service.It is primarily used to run queries directly on data stored in Amazon Glacier, retrieving only the data you need out of your archives to use for analytics.