Udemy Flashcards
CloudDeploy can only deploy to:
EC2 instances and Lambda
To deploy an API, you create an API deployment and associate it with a ___. This is a snapshot of the API and is made available for the client to call.
stage
Kinesis stores data in ____-
shards
Commands to push docker to ECR?
- $(aws ecr get-login –no-include-email)
2. docker push [123213.dkr.ecr.eu….]
API gateway URL scheme
https://.execute-api..amazonaws.com/dev/resource
Kinesis streams scales ____ whereas firehose scales ____
- manually
2. automatically
You have an application that requires reading 10 items of 6.6KB per second using eventual consistency. What value should you set for the read throughput?
10
6.6 KB gets rounded to 8 KB, one RCU for eventually consistent is two reads per second of 4 KB, so we have (10 * (8/2))/2 = 10
Your application processes message from an SQS queue. You will write the algorithm that requests more time when the visibility timeout is not enough. Which API should you call ?
ChangeMessageVisibility
In SQS, what is the default visibility timeout for a message?
30 seconds
ALBs support what protocols?
Websockets and HTTP/2
A message published to an SNS topic is distributed to a number of SQS queues in parallel. What is this design pattern called?
Fan out
Identity pools are the containers that Cognito Identity uses to keep your apps’ federated identities organized.
True
To have AWS S3 encrypt an object after it is uploaded, you need to add a header to the HTTP request called
x-amz-server-side-encryption
max size of SQS message?
256KB
In SQS, what does long polling mean ?
Worker will wait to receive a message until a message is available or until timeout
Step functions are specified in _____
JSON
Your organization becomes a huge enterprise. You deployed a customer care website to gather feedback from your customers. You expect that you will receive 180 feedbacks each minute and each feedback will be a text of 9KB in size. All the feedback will be persisted in a DynamoDB table. What should be the required provisioned write throughput ?
27
180 per minute = 3 per seconds, 1 WCU = 1 KB, so 3 * 9 = 27 WCU
Your BI application reads 1200 items from the game table every minute using strong consistency. Each item is 6KB in size. Calculate the required provisioned read throughput for the game table
40
1200 per minute = 20 per second, 6kb round up to 8
20 * (8/4) = 40
Using which AWS API can you return one or more items from one or more DynamoDB tables?
BatchGetItem
Step Functions Standard vs Express
Standard : duration of 1 year (longer workflows, longer duration)
Express: duration of 5 minute (cheaper smaller duration)
Basic idea of AWS Appsync
It is AWS managed GraphQL, and it also can serves as real time data retrieval service using web sockets or MQTT
Could be used for mobile data offline syncing
T/F: ALB, API Gateway, AppSync allow Websockets
TRUE
Your API is getting hit with the same GET request over and over. Your lambda function is overloaded and your bill starts to substantially increase. The GET response returns the same payload and changes only daily. What should you do?
Enable stage cache