AWS - LambdaWhich of the following is the correct way to reference a Lambda layer in a function's AWS SAM template?ALayerARNs: [arn:aws:lambda:region:account-id:layer:layer-name:version]BLayer: arn:aws:lambda:region:account-id:layer:layer-name:versionCLayers: [arn:aws:lambda:region:account-id:layer:layer-name:version]DLayerList: arn:aws:lambda:region:account-id:layer:layer-name:versionCheck Answer
Step-by-Step SolutionSolution:Step 1: Recall SAM syntax for layersIn AWS SAM, the correct property to add layers is 'Layers' with a list of ARNs.Step 2: Verify correct syntaxLayers: [arn:aws:lambda:region:account-id:layer:layer-name:version] uses 'Layers' with square brackets indicating a list, which is correct.Final Answer:Layers: [arn:aws:lambda:region:account-id:layer:layer-name:version] -> Option CQuick Check:SAM layers syntax = Layers list [OK]Quick Trick: Use 'Layers' with a list of ARNs in SAM templates [OK]Common Mistakes:Using singular 'Layer' instead of 'Layers'Missing brackets for list syntaxIncorrect property names like LayerARNs or LayerList
Master "Lambda" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes API Gateway - Lambda integration - Quiz 15hard API Gateway - Request and response mapping - Quiz 12easy AWS Lambda - Creating a Lambda function - Quiz 2easy Auto Scaling - Launch templates - Quiz 5medium Auto Scaling - Predictive scaling overview - Quiz 10hard DynamoDB - Tables, items, and attributes - Quiz 5medium DynamoDB - Tables, items, and attributes - Quiz 3easy RDS and Relational Databases - Parameter groups and option groups - Quiz 3easy SNS and SQS - SNS notification types (email, SMS, Lambda) - Quiz 10hard SNS and SQS - Dead letter queues - Quiz 15hard