Olete.in
Articles
Mock Tests
🧪 AWS Lambda MCQ Quiz Hub
AWS Lambda MCQ
Choose a topic to test your knowledge and improve your AWS Lambda skills
1. When is Lambda code stored encrypted?
At rest
At runtime
At deployment
Non of these
2. 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
3. How can additional code or content be provided for your Lambda?
Blocks
Layers
Aliases
Handlers
4. How can Step Functions call Lambdas?
In sequence
Both of these answers
Neither of these answers
In parallel
5. How can Step Functions call Lambdas?
In sequence
Both of these answers
Neither of these answers
In parallel
6. 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
7. What adds tracing capabilities to a Lambda?
AWS Trace
CloudStack
CloudTrail
AWS X-Ray
8. 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.
9. What can you use to monitor function invocations?
API Gateway
S3
SAS
CLoudTrail
10. 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.
11. What may be provided for environment variables?
An SSL certificate
A bitmask
An AWS KMS key
An HTTP protocol
12. Lambdas allow for running of what other things?
Binaries.
All of these answers
Executables
Shell scripts
13. In what style must you write Lambda code?
MVC
Virtual
Stateless
Protocol
14. How can a developer provide Lambda code?
By uploading a .zip file
All of these answers
By editing inline
From an S3 bucket
15. 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.
16. What facilitates continuous delivery of Lambdas?
CodeStack
ElasticStack
Mobile Hub
CodeDeploy
17. How are computing resources allocated to Lambdas?
Proportionally
Equally
Periodically
Daily
18. 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
19. What does Lambda logging include?
Logging streams
Rotating streams
Logging events
Advancing log groups
20. What can AWS Amplify NOT do for a Lambda?
Create a Lambda
Be an event source
Assign an IAM role
Delete a Lambda
21. 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
22. What are listed downstream resources based on?
The execution policy
The Lambda configuration
The Lambda nodes
The IAM user
23. 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
24. Outbound connections from Lambdas must be _.
Neither of these answers
UDP/IP
TCP/IP
Both of these answers
25. How are CloudWatch actions configured?
Automatically
None of these answers
Manually Ad hoc
Manually Ad hoc
26. 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
27. 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.
28. 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.
29. How is the cost associated with Lambda function calculated?
Number of function calls
Amount of code run
Compute time
Amount of infrastructure used
30. 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.
31. Where is the disk space allocated for Lambda functions?
/tmp
/default
/temp
/ds
32. 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.
33. 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.
34. Basic Lambda permissions include permissions for what?
Removing log groups
None of these answers
Creating log groups
Updating log groups
35. How are environment variables stored?
DynamoDB tables
Key-value pair
S3 buckets
None of these answers
36. 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
37. 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
38. What action is needed before you can test a Lambda?
Deploy the Lambda
Export the function
None of these answers
Configure a test event
39. What kind of packages can you use with Node.js for Lambdas?
Fleece
NPM
None of these
Pod
40. Lambdas are monitored by default using which service?
CloudTrail
CloudWatch
CloudFormation
LogWatch
41. What can trigger a Lambda function execution?
A table definition
Queue isolation
STS Write
An SNS topic
42. 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
43. 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
44. 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
45. When can you change the execution role of a Lambda?
Only at creation
Only before deployment
Never
Anytime via configuration
46. 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.
47. What service deploys Lambdas regionally?
EdgeCloud
CloudEdge
CloudFront
CloudStack
48. What programming language does AWS Lambda support?
Custom
All of these answers
Java
Ruby
49. You need to setup a mechanism to put controls in place to notify you when you have a spike in Lambda concurrency. What should you do?
Deploy a CloudTrail alarm that notifies you when function metrics exceed your threshold. Create an AWS budget to monitor costs.
Deploy a CloudWatch alarm that notifies you when function metrics exceed your threshold. Create an AWS budget 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 CostMonitor to monitor costs.
50. What is included in an exported Lambda deployment package?
YAML definition
CloudFormation stack configuration
SAML deployment stack
Zip file of all related files
Submit