Serverless Compute Flashcards
A company currently uses a serverless web application stack, which consists of Amazon API Gateway, Amazon Simple Storage Service (Amazon S3), Amazon DynamoDB, and AWS Lambda. They would like to make improvements to their AWS Lambda functions but do not want to impact their production functions. How can they accomplish this?
A. Create new AWS Lambda functions with a different name, and update resources to point to the new functions when they are ready to test.
B. Copy their AWS Lambda function to a new region where they can update their resources to the new region when ready.
C. Create a new AWS account, and re-create all their serverless infrastructure for their application testing.
D. Publish the current version of their AWS Lambda function, and create an alias as PROD. Then, assign PROD to the current version number, update resources with the PROD alias ARN, and create a new version of the updated AWS Lambda function and assign an alias of $DEV.
Publish the current version of the function, create an alias PROD pointing to the current version. Then update the code to use PROD alias ARN
(then modify $LATEST and publish it and associate with a DEV alias)
What is the maximum amount of memory that you can assign an AWS Lambda function?
A. AWS runs the AWS Lambda function; it is a managed service, so you do not need to configure memory settings.
B. 3008 MB
C. 1000 MB
D. 9008 MB
What is the default timeout value for an AWS Lambda function? A. 3 seconds B. 10 seconds C. 15 seconds D. 25 seconds
A company uses a third-party service to send checks to its employees for payroll. The company is required to send the third-party service a JSON file with the person’s name and the check amount. The company’s internal payroll application supports exporting only to CSVs, and it currently has cron jobs set up on their internal network to process these files. The server that is processing the data is aging, and the company is concerned that it might fail in the future. It is also looking to have the AWS services perform the payroll function.
What would be the best serverless option to accomplish this goal?
A. Create an Amazon Elastic Compute Cloud (Amazon EC2) and the necessary cron job to process the file from CSV to JSON.
B. Use AWS Import/Export to create a virtual machine (VM) image of the on-premises server and upload the Amazon Machine Images (AMI) to AWS.
C. Use AWS Lambda to process the file with Amazon Simple Storage Service (Amazon S3).
D. There is no way to process this file with AWS.
Use AWS Lambda to process the file with Amazon S3
What is the maximum execution time allowed for an AWS Lambda function? A. 60 seconds B. 120 seconds C. 230 seconds D. 300 seconds
Which language is not supported for AWS Lambda functions? A. Ruby B. Python 3.6 C. Node.js D. C# (.NET Core)
How can you increase the limit of AWS Lambda concurrent executions?
A. Use the Support Center page in the AWS Management Console to open a case and send a Server Limit Increase request.
B. AWS Lambda does not have any limits for concurrent executions.
C. Send an email to firstname.lastname@example.org with the subject “AWS Lambda Increase.”
D. You cannot increase concurrent executions for AWS Lambda.
it’s 1000 but you can use Support Center to send Server Limit increase request
A company is receiving permission denied after its AWS Lambda function is invoked and executes and has a valid trust policy. After investigating, the company realizes that its AWS Lambda function does not have access to download objects from Amazon Simple Storage Service (Amazon S3).
Which type of policy do you need to correct to give access to the AWS Lambda function?
A. Function policy
B. Trust policy
C. Execution policy
D. None of the above
To allow the function to access AWS resources (S3 in this case)
A company wants to be able to send event payloads to an Amazon Simple Queue Service (Amazon SQS) queue if the AWS Lambda function fails.
Which of the following configuration options does the company need to be able to do this in AWS Lambda?
A. Enable a dead-letter queue.
B. Define an Amazon Virtual Private Cloud (Amazon VPC) network.
C. Enable concurrency.
D. AWS Lambda does not support such a feature.
Enable dead-letter queue
A company wants to be able to pass configuration settings as variables to their AWS Lambda function at execution time. Which feature should the company use?
A. Dead-letter queues
B. AWS Lambda does not support such a feature.
C. Environment variables
D. None of the above