Question 993 of 1,740
Incident and Event ResponsemediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is CloudWatch Logs, as it is the designated AWS service for capturing and storing detailed execution logs for each CodePipeline action, including failed Deploy stages. When a pipeline action fails, CodePipeline automatically streams its output—such as error messages, stack traces, and timestamps—to a log group in CloudWatch Logs, which you can access directly from the CodePipeline console or the CloudWatch Logs console for granular troubleshooting. On the AWS Certified DevOps Engineer Professional DOP-C02 exam, this question tests your understanding of CodePipeline’s native logging integration, often appearing as a distractor where candidates mistakenly choose AWS CloudTrail (for API activity) or Amazon S3 (for artifacts). A common trap is assuming CloudTrail captures action-level logs, but it only records API calls, not the deployment script output. Remember the memory tip: “Pipeline fails? Check the Logs—CloudWatch, not CloudTrail.”

DOP-C02 Incident and Event Response Practice Question

This DOP-C02 practice question tests your understanding of incident and event response. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company's DevOps team uses AWS CodePipeline to automate deployments. A recent pipeline execution failed at the 'Deploy' stage. The engineer needs to view the detailed logs for the failed action. Which AWS service or feature should the engineer use?

Question 1mediummultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

CloudWatch Logs

AWS CodePipeline integrates with Amazon CloudWatch Logs to capture and store detailed execution logs for each pipeline action, including the 'Deploy' stage. When a deployment action fails, the engineer can view the associated logs directly from the CodePipeline console or via the CloudWatch Logs console, which provides granular error messages, timestamps, and stack traces necessary for troubleshooting. This is the designated service for accessing action-level logs in CodePipeline.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • CloudWatch Logs

    Why this is correct

    CodePipeline logs execution details to CloudWatch Logs.

    Related concept

    Read the scenario before looking for a memorised answer.

  • S3 access logs

    Why it's wrong here

    S3 access logs are for bucket access.

  • CodeBuild logs

    Why it's wrong here

    CodeBuild logs are for build projects, not the deploy stage.

  • CloudTrail

    Why it's wrong here

    CloudTrail logs API calls, not pipeline execution details.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may confuse CloudTrail (audit logs) with CloudWatch Logs (operational logs), or assume that CodeBuild logs cover all pipeline stages, when in fact each stage type (e.g., Deploy) has its own log destination.

Detailed technical explanation

How to think about this question

Under the hood, CodePipeline sends logs to CloudWatch Logs via a log group named `/aws/codepipeline/<pipeline-name>`, with log streams for each action execution. The logs include stdout/stderr from the deployment provider (e.g., CodeDeploy, ECS, or CloudFormation), and the engineer can use CloudWatch Logs Insights to query for specific error patterns. In a real-world scenario, a failed deploy to ECS might show a 'Task failed to start' error in CloudWatch Logs, which would not be captured by CloudTrail or S3 access logs.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related DOP-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free DOP-C02 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this DOP-C02 question test?

Incident and Event Response — This question tests Incident and Event Response — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: CloudWatch Logs — AWS CodePipeline integrates with Amazon CloudWatch Logs to capture and store detailed execution logs for each pipeline action, including the 'Deploy' stage. When a deployment action fails, the engineer can view the associated logs directly from the CodePipeline console or via the CloudWatch Logs console, which provides granular error messages, timestamps, and stack traces necessary for troubleshooting. This is the designated service for accessing action-level logs in CodePipeline.

What should I do if I get this DOP-C02 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This DOP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DOP-C02 exam.