nerdexam
AmazonAmazon

DOP-C02 · Question #506

DOP-C02 Question #506: Real Exam Question with Answer & Explanation

The correct answer is D: Send CodeDeploy agent logs to Amazon CloudWatch Logs by using the CloudWatch agent.. Centralizing CodeDeploy agent logs in CloudWatch Logs provides the most operationally efficient troubleshooting workflow because logs from all instances are available in one place without interactive access to each instance. CloudWatch Logs Insights then enables fast querying and

Submitted by noor.lb· Mar 6, 2026Incident & Event Response

Question

A company is using AWS CodeDeploy to deploy applications to a fleet of Amazon EC2 instances. During a recent deployment, several EC2 instances failed to update successfully. A DevOps engineer must investigate the root cause of the failures and must determine which specific deployment lifecycle events encountered errors. What is the MOST operationally efficient way to access and analyze the detailed deployment logs for troubleshooting?

Options

  • AUse SSH to connect to each EC2 instance that failed to update successfully. Read the logs from
  • BUse AWS Systems Manager Session Manager to connect to each EC2 instance that failed to
  • CCreate an Amazon S3 bucket to store CodeDeploy logs. Update the appspec.yml file to copy logs
  • DSend CodeDeploy agent logs to Amazon CloudWatch Logs by using the CloudWatch agent.

Explanation

Centralizing CodeDeploy agent logs in CloudWatch Logs provides the most operationally efficient troubleshooting workflow because logs from all instances are available in one place without interactive access to each instance. CloudWatch Logs Insights then enables fast querying and filtering to pinpoint which deployment lifecycle events failed and to extract the associated error

Topics

#CodeDeploy#Troubleshooting#CloudWatch Logs#Deployment logs

Community Discussion

No community discussion yet for this question.

Full DOP-C02 PracticeBrowse All DOP-C02 Questions