Linkedin Amazon Web Services AWS Lambda Test Question Answers
What is AWS Lambda?
1. In what style must you write Lambda code?
MVC
virtual
protocol
stateless
2. How can a developer provide Lambda code?
by uploading a .zip file
all of these answers
by editing inline
from an S3 bucket
3. You are performance-testing your Lambda to verify that you
set the memory size adequately. Where do you verify the execution overhead?
CLoudWatch logs
DynamoDB logs
S3 logs
Lambda logs.
4. What facilitates continuous delivery of Lambdas?
CodeStack
ElasticStack
Mobile Hub
CodeDeploy
5. How are computing resources allocated to Lambdas?
proportionally
equally
periodically
daily
6. You can restrict the scope of a user’s permissions by
specifying which two items in an IAM policy?
resources and users
resources and conditions
events and users
events and conditions
7. What does Lambda logging include?
logging streams
rotating streams
logging events
advancing log groups
8. What can AWS Amplify NOT do for a Lambda?
create a Lambda
be an event source
assign an IAM role
delete a Lambda
9. How do you author a Lambda in a programming language that AWS
does not support?
Create a Lambda function with a custom runtime
and reference the function in your Lambda
Create a Lambda layer with a custom runtime
and reference the layer in your lambda
You cannot use Lambda in this situation
Create a Lambda function with a custom runtime
10. What are listed downstream resources based on?
the execution policy
the Lambda configuration
the Lambda nodes
the IAM user
11. Basic Lambda permissions include
permissions for what?
removing log groups
none of these answers
creating log groups
updating log groups
12. How are environment variables stored?
DynamoDB tables
key-value pairs
S3 buckets
none of these answers
13. You need to use a Lambda to provide backend logic to your
website. Which service do you use to make your Lambda available to your
website?
S3
API Gateway
X-Ray
DynamoDB
14. You are creating a Lambda to trigger on change to files in
an S3 bucket. Where should you put the bucket name?
in the Lambda function code
in a Lambda environment variable
in the Lambda tags
in another S3 bucket
15. What action is needed before you can test a Lambda?
Deploy the Lambda
Export the function
none of these answers
Configure a test event
16. What kind of packages can you use with Node.js for Lambdas?
Fleece
NPM
none of these answers
Pod
17. Lambdas are monitored by default using which service?
CloudTrail
CloudWatch
CloudFormation
LogWatch
18. What can trigger a Lambda function execution?
a table definition
queue isolation
STS Write
an SNS topic
19. 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?
POST
"All object create events"
PUT
COPY
20. To make Lambdas more testable, it is AWS best practice to
separate which of these?
Lambda configuration from logging code
Lambda handler from logging code
Lambda handler from core logic
Lambda configuration from core logic
21. What is
the relationship between SAM template and CloudFormation template files?
SAM templates are a superset of
CloudFormation templates. SAM templates include additional resource types.
SAM
templates have some overlap with CloudFormation templates. Both SAM and
CloudFormation templates include resource types that are not in the other type
of template.
CloudFormation
templates are a superset of SAM templates. CloudFormation templates include
additional resource types.
SAM
templates are a different name for CloudFormation templates. Both template
types include the same resource types.
22. What
service deploys Lambdas regionally?
EdgeCloud
CloudEdge
CloudFront
CloudStack
23. What
programming language does AWS Lambda support?
custom
all of these answers
Java
Ruby
24. What is
included in an exported Lambda deployment package?
YAML
definition
CloudFormation
stack configuration
SAML
deployment stack
Zip file of all related files
25. How can you increase the CPU resources for your Lambda?
Increase the configured CPU value
Increase the configured timeout value
Increase the configured memory value
Increase the configured concurrency value
26. How can additional code or content be provided for your
Lambda?
blocks
layers
aliases
handlers
27. How can Step Functions call Lambdas?
in sequence
both of these answers
neither of these answers
in parallel
28. Which AWS CLI command invokes a function?
aws lambda invoke --function ReturnBucketName
outputfile.txt
aws lambda execute --function-name
ReturnBucketName outputfile.txt
aws lambda invoke --function-name
ReturnBucketName outputfile.txt
aws lambda execute --function ReturnBucketName
outputfile.txt
29. What adds tracing capabilities to a Lambda?
AWS Trace
CloudStack
CloudTrail
AWS X-Ray
30. You need to build a continuous integration/deployment
pipeline for a set of Lambdas. What should you do?
Create configuration files and deploy them
using AWS CodePipeline.
Create CloudFormation templates and deploy
them using AWS CodeBuild
Create configuration file and deploy using AWS
CodeBuild
Create CloudFormation templates and deploy
them using AWS CodePipeline.
31. What can you use to monitor function invocations?
API Gateway
S3
SAS
CLoudTrail
32. It is AWS best practice to enable Lambda logging by which of
these methods.
Use S3 metrics and CloudWatch alarms
Create custom metrics within your Lambda code.
Create custom metrics within your CloudWatch
code.
Use Lambda metrics and CloudWatch alarms.
33. What may be provided for environment variables?
an SSL certificate
a bitmask
an AWS KMS key
an HTTP protocol
34. Lambdas allow for running of what other
things?
binaries.
all of these answers
executables
Shell scripts
35. How is the cost associated with Lambda function calculated?
number of function calls
amount of code run
compute time
amount of infrastructure used
36. What is the fastest way to get started with Lambda?
Author a Lambda from scratch.
Use a blueprint.
Use a .zip deployment package.
Use the serverless app repository.
37. Where is the disk space allocated for Lambda functions?
/tmp
/default
/temp
/ds
38. How do you stop a running Lambda that is stuck in a
recursive loop?
Delete the function.
Set the function concurrent execution limit to
0 while you update the code.
Reset the function.
Set the function concurrent execution limit to
100 while you update the code.
39. What is AWS best practice for Lambda configuration?
Overprovision memory to run your functions
faster and reduce your costs. Do not overprovision your function timeout
settings.
Overprovision memory and your function timeout
settings to run your functions faster and reduce your costs.
Do not overprovision memory. Overprovision
your function timeout settings to run your functions faster and reduce costs.
Do not overprovision memory. Do not overprovision
your function timeout settings to run your functions faster and reduce costs.
40. Which is an equivalent and valid tag for a pair of Lambdas?
department:Sales,department:Sales
department:Sales,department:sales
aws:demo;aws:demo
aws:demo;aws:DEMO
41. Outbound connections from Lambdas must be ____.
neither of these answers
UDP/IP
TCP/IP
both of these answers
42. How are CloudWatch actions configured?
automatically
none of these answers
manually
ad hoc
43. When you can change the
execution role of a Lambda?
only at creation
only before deployment
never
anytime via configuration
44. What is included in an
exported Lamda deployment package ?
YAML definition
CloudFormation stack configuration
SAML deployment stack
Zip file of all related files
45. You are testing your stream-based application and the associated Lambda. AWS best practice
advises you to test by varying what?
stream and record sizes
stream and shard sizes
batch and record sizes
batch and shard sizes
46. You need to make your Lambda available to services in
multiple VPCs. What do you do?
Place each subnet in a VPC. Associate all
subnets to your Lambda.
Place all subnets in a VPC. Associate all
subnets to your Lambda.
Configure your Lambda to be available to
multiple VPCs.
Configure all application VPCs to be peered.
47. What is the time limit
for execution in Lambda when you perform DDOS?
2 minutes
5 minutes
1 minute
0.5 minutes
You may be interested to practicer Freelancer Skill Tests Click here or below links
Govt of India
Common Service Center
Village Level Entrepreneur Exam