Courseiva
Question 51 of 1,511
Incident and Event ResponsemediumMultiple ChoiceObjective-mapped

DOP-C02 Incident and Event Response Practice Question

After deploying a new application version using AWS CodeDeploy, an EC2 instance fails the deployment. The deployment group is configured with an in-place deployment. The engineer sees the error 'ScriptMissing' in the CodeDeploy logs. What should the engineer check?

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

The file path defined in the appspec.yml for the lifecycle hook

The 'ScriptMissing' error in CodeDeploy indicates that the script file specified in the appspec.yml for a lifecycle event hook is not found at the expected path. The engineer should verify the file path defined in the appspec.yml to ensure it points to an existing executable script on the instance.

Answer analysis

Option-by-option breakdown

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

  • The deployment group's deployment configuration

    Why it's wrong here

    Deployment configuration does not cause 'ScriptMissing'.

  • The file path defined in the appspec.yml for the lifecycle hook

    Why this is correct

    The appspec.yml specifies scripts; if the script file is not at the specified path, the error occurs.

  • The security group attached to the instance

    Why it's wrong here

    Security groups do not affect script execution.

  • The AMI used for the EC2 instance

    Why it's wrong here

    AMI is not related to script availability.

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 20, 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.