AWS Certified Developer Associate DVA-C01 – Question298

A developer is using AWS CodeDeploy to deploy an application running on Amazon EC2. The developer wants to change the file permissions for a specific deployment file.
Which lifecycle event should a developer use to meet this requirement?

A.
AfterInstall
B. DownloadBundle
C. BeforeInstall
D. ValidateService

Correct Answer: A

Explanation:

Explanation: You can use the AfterInstall deployment lifecycle event for tasks such as configuring your application or changing file permissions. Reference: https://aws.amazon.com/codedeploy/faqs/