Development with AWS Services Flashcards
(25 cards)
CloudWatch Evaluation Period
number of the most recent periods, or data points, to evaluate when determining alarm state
CloudWatch Period
- length of time to evaluate the metric or expression to create each individual data point for an alarm
- expressed in seconds
- if you choose one minute as the period, there is one datapoint every minute
CloudWatch Datapoints to Alarm
- number of data points within the evaluation period that must be breaching to cause the alarm to go to the ALARM state
- breaching data points do not have to be consecutive, they just must all be within the last number of data points equal to Evaluation Period
How would you redirect users to a specific version of a site eg. https://tutorialsdojo.com/uk/ for uk users?
Implement a CloudFront function that returns the appropriate URL based on the CloudFront-Viewer-Country. Configure the distribution to trigger the function on Viewer request events.
What does CodeDeployDefault.LambdaCanary10Percent5Minutes do?
10 percent of your customer traffic is immediately shifted to your new version. After 10 minutes, all traffic is shifted to the new version
What does
CodeDeployDefault.LambdaLinear10PercentEvery1Minute do?
it will add 10 percent of the traffic linearly to the new version every minute
What does CodeUri property do in CloudFormation?
used primarily with AWS SAM (Serverless Application Model) to specify the location of your Lambda function code
What does ‘aws cloudformation package’ command do?
zips local code, uploads it to s3, updates the template to reference the code in s3
What is the concurrency limit of AWS Lambda?
By default, AWS Lambda limits the total concurrent executions across all functions within a given region to 1000. This limit can be raised by requesting for AWS to increase the limit of the concurrent executions of your account.
What is global secondary index?
- Creates completely new index with different partition key
- Queries across ALL partitions
- Flexible querying on any attributes
eg. Query orders by OrderDate for all customers
What is a local secondary index?
- Uses SAME partition key as main table
- Only sorts data WITHIN a partition differently
- Queries limited to single partition
eg. Query orders by OrderStatus for a specific customer
What is an Elastic Beanstalk worker environment?
an environment in AWS Elastic Beanstalk that allows you to run applications meant to process background activities, such as processing data, executing scheduled tasks, or sending emails. Your application receives tasks from an Amazon SQS (Simple Queue Service) queue and processes them
Why cant transfer acceleration be used on a bucket called data.tutorialsdojo.com?
the name of the bucket used for Transfer Acceleration must be DNS-compliant and must not contain periods (“.”)
How to invalidate existing cache entry to get latest result from DB?
- client must send a request that contains the Cache-Control: max-age=0 header
- ticking the Require authorization checkbox ensures that not every client can invalidate the API cache (significant increase in latency)
What ratio of instances to shards should you have when using Kinesis Client Library?
1:1 ratio (eg. 6 shards 6 instances)
Number of instances should not exceed number of shards, but shards can exceed number of instances
What is Amazon Kinesis Data Streams?
allows you to collect, process, and analyze real-time, streaming data eg. real time monitoring, log and event data collection
What is Amazon Data Firehose?
- load streaming data into data lakes, data warehouses, and analytics services
- deliver to s3, redshift, elasticsearch service, splunk
What is Amazon Kinesis Agent?
lightweight software that helps send log and event data from on-premises servers to Amazon Kinesis Data Streams or Data Firehose, not a service for streaming itself
What is provisioned capacity for DynamoDB?
- You specify the number of read and write capacity units (RCUs and WCUs) you expect your application to need
- DynamoDB allocates the necessary resources based on these specified units
- Pay for provisioned RCUs and WCUs regardless if you use them
What is on-demand capacity for DynamoDB?
- automatically scales based on the actual traffic received by the table
- you do not need to specify RCUs and WCUs
- more expensive than provisioned capacity
What is HTTP_PROXY integration?
- API Gateway acts as a straightforward proxy, forwarding the entire request to the backend HTTP endpoint and then returning the response directly to the client
- API Gateway simply passes through the requests and responses, without any added processing or transformation
What is AWS integration?
allows API Gateway to call AWS service actions (e.g., invoking a Lambda function, reading from DynamoDB) directly
What is AWS_PROXY integration?
special case of AWS integration specifically designed for invoking Lambda functions via a proxy
What is HTTP integration?
allows API Gateway to call any HTTP endpoint, whether it’s inside or outside AWS. You can manage and transform the request and response using API Gateway settings