MCQs on Setting Up AWS Lambda | AWS Lambda Multiple Choice Questions

AWS Lambda is a powerful serverless compute service that allows you to run code without provisioning or managing servers. If you’re preparing for AWS certifications or enhancing your knowledge, these AWS Lambda MCQ questions and answers will help you understand key concepts like setting up an AWS account, IAM roles, Lambda functions, and deployment. Get ready to dive into the world of AWS Lambda with these expertly crafted questions!


AWS Lambda MCQs

Chapter 2: Setting Up AWS Lambda


1. What is the first step in setting up AWS Lambda?

a) Create a Lambda function
b) Set up an AWS account
c) Install AWS CLI
d) Configure IAM roles

2. Which of the following is required to use AWS Lambda?

a) AWS Management Console
b) AWS EC2 instance
c) IAM roles
d) S3 Bucket

3. In AWS Lambda, what does IAM stand for?

a) Internal Access Management
b) Identity and Access Management
c) Instance Access Management
d) Internet Application Manager

4. What is the primary purpose of IAM roles in AWS Lambda?

a) To create Lambda functions
b) To define permissions for Lambda execution
c) To store Lambda functions
d) To configure AWS Billing

5. What is the default timeout limit for AWS Lambda functions?

a) 15 seconds
b) 30 seconds
c) 5 minutes
d) 15 minutes

6. How do you deploy your first Lambda function using AWS Management Console?

a) Through AWS CLI
b) By clicking “Create Function” and filling out the required details
c) By setting up CloudWatch
d) By configuring EC2 instance

7. Which programming languages are supported by AWS Lambda for function deployment?

a) Python, JavaScript, Java, and C#
b) Python, Ruby, Java, and Go
c) C++, Java, Perl, and Python
d) JavaScript, Ruby, PHP, and Swift

8. When setting up AWS Lambda, what do you configure to grant permissions to Lambda to access other AWS services?

a) IAM user
b) IAM role
c) EC2 instance
d) S3 Bucket policy

9. Which of the following is the first step to create a Lambda function in the AWS Management Console?

a) Write the function code
b) Set the function’s runtime
c) Define the trigger
d) Select the execution role

10. What is the name of the AWS service used to monitor AWS Lambda functions?

a) AWS CloudTrail
b) AWS CloudWatch
c) AWS EC2
d) AWS Route 53

11. In AWS Lambda, what is the maximum execution timeout for a Lambda function?

a) 30 seconds
b) 5 minutes
c) 15 minutes
d) 10 minutes

12. Which of the following steps is required to set up an AWS account for AWS Lambda?

a) Buy an EC2 instance
b) Provide a valid email address and payment method
c) Download AWS CLI
d) Create an IAM user with admin access

13. What happens if a Lambda function exceeds its configured timeout limit?

a) The function continues to run until it completes
b) AWS stops the function and logs the error
c) The function is retried automatically
d) The function gets deployed to a different region

14. Which AWS service is used to trigger a Lambda function?

a) AWS S3
b) AWS API Gateway
c) AWS EventBridge
d) All of the above

15. What is a “Hello, World!” Lambda function typically used for?

a) Testing the Lambda setup
b) Processing user data
c) Accessing databases
d) Managing IAM roles

16. Which of the following is true about AWS Lambda?

a) It requires you to manage the underlying infrastructure
b) It is a fully managed service that scales automatically
c) It is not suitable for handling large amounts of data
d) It runs only on EC2 instances

17. How can you view logs generated by a Lambda function?

a) Through AWS CloudWatch Logs
b) By using the AWS CLI
c) Through EC2 Logs
d) By downloading Lambda logs manually

18. What is the function of an IAM policy in Lambda?

a) It defines the permissions of a Lambda function to access AWS services
b) It defines the Lambda function code
c) It determines the timeout value of a Lambda function
d) It sets the memory size for a Lambda function

19. When configuring IAM roles for Lambda, which of the following actions must be included in the role policy?

a) Allow Lambda to write to S3
b) Allow Lambda to execute EC2 instances
c) Allow Lambda to invoke API Gateway
d) All of the above

20. Which AWS service can trigger a Lambda function in response to changes in an S3 bucket?

a) AWS CloudTrail
b) AWS CloudWatch
c) AWS S3 Events
d) AWS EC2

21. What is the AWS Lambda function’s maximum memory allocation?

a) 256 MB
b) 512 MB
c) 3 GB
d) 10 GB

22. In the AWS Lambda console, what option allows you to test a function?

a) Deploy function
b) Create version
c) Test function
d) Monitor function

23. When creating a Lambda function, which permissions should be granted to the Lambda execution role?

a) Permissions to invoke the function
b) Permissions to access S3 and DynamoDB
c) Permissions to deploy the function
d) Permissions to delete resources

24. What is the maximum number of concurrent Lambda executions per account by default?

a) 500
b) 1,000
c) 3,000
d) 5,000

25. Which AWS service can automatically trigger a Lambda function in response to HTTP requests?

a) AWS API Gateway
b) AWS S3
c) AWS CloudWatch
d) AWS DynamoDB

26. Which of the following Lambda runtimes is NOT supported by AWS Lambda?

a) Python
b) Node.js
c) PHP
d) C#

27. What happens when you deploy a Lambda function through the AWS Management Console?

a) It is automatically assigned to a specific EC2 instance
b) It is stored in an S3 bucket
c) It is made available for invocation by triggers
d) It runs immediately

28. Which of the following actions is NOT part of creating an AWS Lambda function?

a) Selecting a function runtime
b) Setting the function’s execution role
c) Specifying the trigger event
d) Configuring S3 bucket storage

29. What is the primary role of the AWS Lambda execution role?

a) To invoke the Lambda function
b) To monitor Lambda function metrics
c) To provide the function permissions to interact with other AWS services
d) To store Lambda logs

30. What AWS service is used to schedule Lambda function executions at specific times?

a) AWS CloudWatch Events
b) AWS SNS
c) AWS EC2
d) AWS Lambda Scheduler


Answers Table

QnoAnswer
1b) Set up an AWS account
2c) IAM roles
3b) Identity and Access Management
4b) To define permissions for Lambda execution
5d) 15 minutes
6b) By clicking “Create Function” and filling out the required details
7b) Python, Ruby, Java, and Go
8b) IAM role
9b) Set the function’s runtime
10b) AWS CloudWatch
11c) 15 minutes
12b) Provide a valid email address and payment method
13b) AWS stops the function and logs the error
14d) All of the above
15a) Testing the Lambda setup
16b) It is a fully managed service that scales automatically
17a) Through AWS CloudWatch Logs
18a) It defines the permissions of a Lambda function to access AWS services
19d) All of the above
20c) AWS S3 Events
21c) 3 GB
22c) Test function
23b) Permissions to access S3 and DynamoDB
24b) 1,000
25a) AWS API Gateway
26c) PHP
27c) It is made available for invocation by triggers
28d) Configuring S3 bucket storage
29c) To provide the function permissions to interact with other AWS services
30a) AWS CloudWatch Events

4o mini

Use a Blank Sheet, Note your Answers and Finally tally with our answer at last. Give Yourself Score.

X
error: Content is protected !!
Scroll to Top