Troubleshoot and optimise Flashcards
What is a 429 error?
you are exceeding the rate limits set by the AWS service you are using
How to solve 429 error?
implementing exponential backoff for retrying the requests
this means you wait a short time before retrying and this prevents overwhelming
What is a 503 error?
A “Service Unavailable” error
How to investigate a 503 error?
One option is to search logs using Cloud Trail
What is a “Provisioned Throughput Exception”?
the number of read or write requests to a table or an index exceeds the provisioned throughput capacity that has been specified for that table or index
Name 3 ways to handle a “Provisioned Throughput Exception”?
- Increase Provisioned Throughput Capacity
- Implement Exponential Backoff (handle throttling and retries when encountering provisioned throughput exceptions. This helps to reduce the frequency of failed requests and minimizes the impact on your application’s performance.)
- Distribute Workloads
Your app is configured to interact with an S3 bucket, but you are getting errors that the bucket does not exist.
How would you understand why the bucket was deleted?
Look for the Bucket Deletion API request in the Cloud Trail logs
What is 200 status code?
ok
What is 201 status code?
created
What is a 204 status code?
no content
What is a 400 status code?
bad request
What is a 401 status code?
unauthorized
What is a 403 status code?
Forbidden
What is 404 status code?
Not found
What is a 429 status code?
too many requests