AWS Certified Developer – Associate — Question 320

A developer wants to use AWS CodeDeploy to deploy an AWS Lambda function.

What are the MINIMUM properties required in the 'resources' section of the AppSpec file for CodeDeploy to deploy the function successfully?

Answer options

Correct answer: A

Explanation

For an AWS Lambda deployment, the AppSpec file's 'resources' section requires the name, alias, currentversion, and targetversion properties to correctly identify and shift traffic to the new function version. Properties like TaskDefinition, ContainerName, and PlatformVersion are used exclusively for Amazon ECS container deployments rather than Lambda functions.