nerdexam
AmazonAmazon

DOP-C02 · Question #79

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

Sign in or unlock DOP-C02 to reveal the answer and full explanation for question #79. The question stem and answer options stay visible for context.

Submitted by takeshi77· Mar 6, 2026SDLC Automation

Question

A company has developed an AWS Lambda function that handles orders received through an API. The company is using AWS CodeDeploy to deploy the Lambda function as the final stage of a CI/CD pipeline. A DevOps Engineer has notices there are intermittent failures of the ordering API for a few seconds after deployment. After some investigation, the DevOps Engineer believes the failures are due to database changes not having fully propagated before the lambda function begins executing. How should the DevOps Engineer overcome this?

Options

  • AAdd a BeforeAllowTraffic hook to the AppSpec file that tests and waits for any necessary
  • BAdd an AfterAllowTraffic hook to the AppSpec file that forces traffic to wait for any pending
  • CAdd a BeforeInstall hook to the AppSpec file that tests and waits for any necessary database
  • DAdd a ValidateService hook to the AppSpec file that inspects incoming traffic and rejects the

Unlock DOP-C02 to see the answer

You've previewed enough free DOP-C02 questions. Unlock DOP-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#AWS CodeDeploy#Lambda deployment#Lifecycle hooks#Database synchronization
Full DOP-C02 PracticeBrowse All DOP-C02 Questions