nerdexam
AmazonAmazon

DOP-C02 · Question #46

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

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

Submitted by tunde_lagos· Mar 6, 2026Configuration Management & Infrastructure as Code

Question

A company is adopting AWS CodeDeploy to automate its application deployments for a Java- Apache Tomcat application with an Apache Webserver. The development team started with a proof of concept, created a deployment group for a developer environment, and performed functional tests within the application. After completion, the team will create additional deployment groups for staging and production. The current log level is configured within the Apache settings, but the team wants to change this configuration dynamically when the deployment occurs, so that they can set different log level configurations depending on the deployment group without having a different application revision for each group. How can these requirements be met with the LEAST management overhead and without requiring different script versions for each deployment group?

Options

  • ATag the Amazon EC2 instances depending on the deployment group. Then place a script into the
  • BCreate a script that uses the CodeDeploy environment variable DEPLOYMENT_GROUP_ NAME
  • CCreate a CodeDeploy custom environment variable for each environment. Then place a script into
  • DCreate a script that uses the CodeDeploy environment variable DEPLOYMENT_GROUP_ID to

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

#CodeDeploy#Deployment lifecycle hooks#Environment variables#Dynamic configuration
Full DOP-C02 PracticeBrowse All DOP-C02 Questions