Serverless Compute Flashcards

1
Q

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.

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

3008 MB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
What is the default timeout value for an AWS Lambda function?
A. 3 seconds
B. 10 seconds
C. 15 seconds
D. 25 seconds
A

3 seconds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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.

A

Use AWS Lambda to process the file with Amazon S3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
What is the maximum execution time allowed for an AWS Lambda function?
A. 60 seconds
B. 120 seconds
C. 230 seconds
D. 300 seconds
A

900 seconds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
Which language is not supported for AWS Lambda functions?
A. Ruby
B. Python 3.6
C. Node.js
D. C# (.NET Core)
A

Ruby

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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 limits@amazon.com with the subject “AWS Lambda Increase.”
D. You cannot increase concurrent executions for AWS Lambda.

A

it’s 1000 but you can use Support Center to send Server Limit increase request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

A

Execution policy

To allow the function to access AWS resources (S3 in this case)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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.

A

Enable dead-letter queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

Environment variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly