Answer – A, C, and D
Setup occurs on a new instance after it successfully boots.
Configure occurs on all of the stack`s instances when an instance enters or leaves the online state.
Deploy occurs when you deploy an app.
Undeploy occurs when you delete an app.
Shutdown occurs when you stop an instance.
For more information on Lifecycle events, please refer to the below URL-
http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-events.html