A developer is writing an appspec.yaml file to deploy updates to an AWS Lambda function using AWS CodeDeploy. Which of the following sections or hooks are valid for an AWS Lambda deployment? (Select TWO.)
- The resources section, which specifies the Lambda function name, alias, current version, and target version.Cevap
- The AfterAllowTraffic hook, which is used to run validation tasks after traffic has shifted to the new version.Cevap
- CThe files section, which lists the source file paths and destination directories on the target system.
- DThe BeforeInstall hook, which runs scripts before any files are copied to the instances.
- EThe ApplicationStart hook, which executes scripts to start services after the installation completes.
Cevap
The valid sections or hooks for an AWS Lambda CodeDeploy deployment are the resources section and the AfterAllowTraffic hook.
In AWS CodeDeploy, the AppSpec file structure depends on the compute platform. For an AWS Lambda deployment, the resources section must be defined to specify the Lambda function name, alias, and versions. Additionally, only two lifecycle hooks are supported: BeforeAllowTraffic and AfterAllowTraffic. The correct choices represent these valid components.
Adım Adım Çözüm
Anahtar Kavram
AWS CodeDeploy AppSpec file structure for AWS Lambda compute platform
Tahmini Süre:1m 0s