The maximum size for an uncompressed deployment package for Lambda is _________.

  • 1 GB
  • 100 MB
  • 250 MB
  • 500 MB
1000 MB exceeds the maximum size limit for an uncompressed deployment package in AWS Lambda; the correct answer is 250 MB.

AWS Lambda allows you to set _________ to control resource usage and costs.

  • Execution time
  • IAM policies
  • Memory size
  • Timeout
AWS Lambda allows you to set memory size for your functions to control resource usage and costs.

Lambda functions invoked synchronously have a payload size limit of ________.

  • 10 MB
  • 2 MB
  • 6 MB
  • 8 MB
Lambda functions invoked synchronously have a payload size limit of 6 MB. This includes both the event object and the response object.

To ensure high availability and fault tolerance, AWS Lambda automatically scales the execution ________.

  • Horizontally
  • Manually
  • Statically
  • Vertically
AWS Lambda automatically scales the execution horizontally, meaning it adds more instances to handle increased load.

AWS Trusted Advisor can provide recommendations on optimizing Lambda usage based on ________.

  • Cost only
  • Performance only
  • Performance, cost, security, and fault tolerance
  • Security only
AWS Trusted Advisor can analyze various aspects of Lambda usage, including performance, cost, security, and fault tolerance, to provide recommendations for optimization.

Scenario: A Lambda function in your application occasionally hits the timeout limit. How would you troubleshoot and resolve this issue?

  • Enable AWS X-Ray tracing
  • Increase Lambda function memory
  • Monitor CloudWatch Logs
  • Optimize code and increase timeout
Optimizing code to improve performance and increasing the timeout setting can address the issue by allowing the function more time to complete its tasks.

Scenario: You're planning to migrate an existing application to serverless using AWS Lambda. What considerations would you take into account regarding Lambda's limits and quotas?

  • Estimate function resource requirements
  • Ignore Lambda limits
  • Increase Lambda function memory
  • Limit Lambda function invocations
Estimating resource requirements helps in avoiding resource contention and staying within Lambda's limits, ensuring optimal performance.

What are the primary components required for creating a Lambda function?

  • Database and storage setup
  • Function code and handler
  • Operating system and kernel
  • Virtual machine and network configuration
The primary components required for creating a Lambda function include the actual function code and a handler that specifies the entry point for the function.

What is the primary role of deployment packages in AWS Lambda function creation?

  • Bundling code and dependencies
  • Configuring networking
  • Generating logs
  • Managing server resources
Deployment packages in AWS Lambda serve the primary role of bundling the function code along with any dependencies required for execution.

How does AWS Lambda handle the execution environment for your function?

  • It delegates execution environment management to users
  • It manages the execution environment automatically
  • It requires manual configuration of execution environment
  • It restricts access to the execution environment
AWS Lambda automatically manages the execution environment for your function, including provisioning resources and scaling based on demand.