0
0
AWScloud~10 mins

Lambda execution model in AWS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the runtime environment for an AWS Lambda function.

AWS
Runtime = "[1]"
Drag options to blanks, or click blank then click option'
Anodejs14.x
Bpython3.9
Cjava8
Dgo1.x
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing an unsupported or deprecated runtime version.
Using a runtime that does not match the function code language.
2fill in blank
medium

Complete the code to set the memory size for an AWS Lambda function.

AWS
MemorySize = [1]
Drag options to blanks, or click blank then click option'
A512
B4096
C2048
D128
Attempts:
3 left
💡 Hint
Common Mistakes
Using memory sizes not supported by Lambda (e.g., too low or too high).
Putting memory size as a string instead of a number.
3fill in blank
hard

Fix the error in the handler configuration for an AWS Lambda function.

AWS
Handler = "[1]"
Drag options to blanks, or click blank then click option'
Ahandler.index
Bindex.handler
Cmain.handler
Dapp.lambda
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the order of file and function names.
Using incorrect file or function names.
4fill in blank
hard

Fill both blanks to configure the timeout and environment variables for an AWS Lambda function.

AWS
Timeout = [1]
Environment = {"Variables": {"STAGE": "[2]"}}
Drag options to blanks, or click blank then click option'
A30
B60
Cdev
Dprod
Attempts:
3 left
💡 Hint
Common Mistakes
Setting timeout too high or too low.
Using incorrect environment variable names or values.
5fill in blank
hard

Fill all three blanks to define the AWS Lambda function's role, runtime, and handler.

AWS
Role = "[1]"
Runtime = "[2]"
Handler = "[3]"
Drag options to blanks, or click blank then click option'
Aarn:aws:iam::123456789012:role/lambda-exec-role
Bpython3.9
Clambda_function.lambda_handler
Dnodejs16.x
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect or incomplete IAM role ARN.
Mismatching runtime and handler names.