Refactoring Flashcards
In Kinesis allows consumer applications to consume records in which order?
• According a sequence number assigned when the record is written to the stream
• Last In First Out
• Records are processed in no particular order
• According to the timestamp assigned when the record is written to the stream
• According a sequence number assigned when the record is written to the stream
You are working on a web application which needs somewhere to store user session state. Which of the following approaches is the best way to deal with user session state?
• Store session state in RDS
• Store session state in memory
• Store session state locally on the EC2 instance
• Use an ElastiCache cluster
- Store session state in RDS
* Use an ElastiCache cluster
Your application is storing a lot of data in an S3 bucket called mybucket and is routinely exeeding 100 requests per second using a mix of GET, PUT and DELETE operations. Which of the following naming strategies will ensure low latency performance with S3?
• mybucket/2018-02-07-12-00-00/cust26347456/file1.txt
• mybucket/8761-2018-02-07-12-00-00/cust26347456/file1.txt
• mybucket/customers/cust26347456/file1.txt
• mybucket/2018-02-07-12-00-00/cust26347456/8761file1.txt
mybucket/8761-2018-02-07-12-00-00/cust26347456/file1.txt
Using the AWS console, you are trying to Scale DynamoDB past its preconfigured maximums. Which service can you increase by raising a ticket to AWS support? • Local Secondary Indexes • Provisioned throughput limits • Global Secondary Indexes • Item Sizes
Provisioned throughput limits
You are building a serverless web application which will serve both static and dynamic content. Which of the following services would you use to create your application? • S3 • Elasticache • EC2 • Lambda • API Gateway • RDS
- S3
- Lambda
- API Gateway
You are developing a serverless application which runs on Lambda, DynamoDB and API Gateway. The application needs to support an average of 5,000 requests per second. During testing, the Test Team want to test for peaks of 2.5 x the average load (12,500 requests per second). Shortly after testing begins, your application crashes with API Gateway generating a 429 error code. What could be the reason for this?
- Your Lambda function has run out of memory, you need to increase CPU capacity in order to increase memory capacity
- Your tests have caused the application to hit the default limit of 10,000 requests per second for Lambda
- Your Lambda function has run out of CPU, you need to increase the memory allocation in order to increase CPU capacity
- Your tests have caused the application to hit the default limit of 10,000 requests per second for API Gateway
• Your tests have caused the application to hit the default limit of 10,000 requests per second for API Gateway
You have software on an EC2 instance that needs to access both the private and public IP address of that instance. What’s the best way for the software to get that information?
- Have the software use cURL or GET to access the instance user data.
- Have the software use cURL or GET to access the instance metadata.
- Reference the instance metadata for the private IP and the instance user data for the public IP.SELECTED
- Call the EC2 API.
• Reference the instance metadata for the private IP and the instance user data for the public IP.SELECTED
You are developing an online hotel booking application which makes an number of requests to different back end applications to get quotes for travel related add-on services. You are using API gateway handle all the API calls and you notice that the majority of requests are for the same 5 or 6 services. How can you optimize the configuration to ensure the best performance for your application?
• Add an ElastiCache cluster in front of your database to cache the most frequently accessed data
• Configure auto-scaling for the API Gateway
• Configure a CloudFront CDN in front of the API • Gateway to cache the most frequent HTTP requestsSELECTED
• Implement API Caching to cache the endpoint’s response for the most popular requests
Implement API Caching to cache the endpoint’s response for the most popular requests
Which of the following protocols does API Gateway support? • GraphQL • REST • SOAP • O API
REST
SOAPS
Your application is trying to upload a 6TB file to S3 and you receive an error message telling you that your proposed upload exceeds the maximum allowed object size. What is the best way to accomplish this file upload?
- Use the Multipart Upload API for this object.
- Use the S3 LargeObjectUpload API.
- You cannot fix this, as the maximum size of an S3 object is 5TB.SELECTED
- Contact AWS support to increase the maximum size of your S3 object.
You cannot fix this, as the maximum size of an S3 object is 5TB
Which of the following is NOT a supported event source for Lambda? • RDS • S3 • DynamoDB • CloudWatch Events
• RDS