Troubleshooting and Optimization
An AWS CodeDeploy deployment to an EC2 instance fails during AfterInstall. The deployment event identifies a hook script, but its error summary omits the script's standard error output. Where should the developer look next?
Show the answer
Correct answerC. The deployment's scripts.log on the instance
AWhy not this: VPC Flow Logs record network flow metadata rather than hook script output.
BWhy not this: CloudTrail records API activity rather than the standard error produced by the hook.
CWhy this is right: The deployment-specific scripts.log contains output from lifecycle event hook scripts.
DWhy not this: An X-Ray service map describes traced application dependencies, not deployment hook standard error.
CodeDeploy records lifecycle hook script output in the deployment's scripts.log on the instance. CloudTrail records AWS API activity, not the standard error emitted by a deployment hook script.