aws lambda linkedin assessment answers
1. Lambdas can be created _____.
- from the app repository
- from scratch
- all of these answers
- using a blueprint
2. You need to set up a mechanism to put controls in place to notify you when you have a spike in Lambda concurrency. What should you do?
- Deploy a CloudWatch alarm that notifies you when function metrics exceed your threshold. Create an AWS budget to monitor costs.
- Deploy a CloudTrail alarm that notifies you when function metrics exceed your threshold. Create an AWS CostMonitor to monitor costs.
- Deploy a CloudWatch alarm that notifies you when function metrics exceed your threshold. Create an AWS CostMonitor to monitor costs.
- Deploy a CloudTrail alarm that notifies you when function metrics exceed your threshold. Create an AWS budget to monitor costs.
3. What can AWS Amplify not do for a Lambda?
- be an event source
- create a Lambda
- delete a Lambda
- assign an lAM role
4. You need to set an S3 event trigger on your Lambda to respond when data is added to your bucket from another S3 bucket. Which event type do you configure?
- “All object create events”
- COPY
- PUT
- POST
5. You want to minimize cold start time for your Lambda. What do you do?
- Add extra code to check if the permanent cache, or the /cache directory, has the data that you stored.
- Create a warm-up Lambda that calls your Lambda every minute.
- Add extra code to check if the transient cache, or the /tmp directory, has the data that you stored.
- Do nothing. AWS minimizes cold start time by default.
6. You need to build a continuous integration/deployment pipeline for a set of Lambdas. What should you do?
- Create CloudFormation templates and deploy them using AWS CodePipeline.
- Create configuration files and deploy them using AWS CodePipeline.
- Create CloudFormation templates and deploy them using AWS CodeBuild.
- Create configuration files and deploy them using AWS CodeBuild.
7. When is Lambda code stored encrypted?
- at deployment
- at runtime
- at rest
- none of these answers
8. What action is needed before you can test a Lambda?
- Deploy the Lambda.
- none of these answers
- Configure a test event.
- Export the function.
9. How do you stop a running Lambda that is stuck in a recursive loop?
- Set the function concurrent execution limit to 100 while you update the code.
- Set the function concurrent execution limit to 0 while you update the code.
- Reset the function.
- Delete the function.
10. You are testing your stream-based application and the associated Lambda. AWS best practice advises you to test by varying what?
- batch and record sizes
- stream and record sizes
- stream and shard sizes
- batch and shard sizes
12. Which tool would you use to test a Lambda locally?
- AWS CLI
- AWS CloudFormation
- AWS SAM
- AWS SAM CLI
13. Your function failed to execute due to timeout. What type of error is this?
- account
- caller
- request
- runtime
14. You need to quickly understand execution times for two different Lambda functions with different invocation types: asynchronous and synchronous. What do you do?
- Enable tracing, rerun the Lambdas, and view in the X-Ray console.
- View the logs in CloudWatch.
- View the logs in CloudTrail.
- Enable tracing, rerun the Lambdas, and view in the Lambda console.
15. If a Lambda is part of a serverless application, where should you manage its deployments?
- Cloud Watch console
- SAM console
- CloudFormation console
- Lambda console