nerdexam
AmazonAmazon

DVA-C02 · Question #578

DVA-C02 Question #578: Real Exam Question with Answer & Explanation

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

Submitted by satoshi_tk· Mar 5, 2026Deployment

Question

A developer is migrating a containerized application from an on-premises environment to an Amazon ECS cluster. In the on-premises environment, the container uses a Docker file to store the application. Service dependency configurations such as databases, caches, and storage volumes are stored in a docker-compose.yml file. Both files are located at the top level of the code base that the developer needs to containerize. When the developer deploys the code to Amazon ECS, the instructions from the Docker file are carried out. However, none of the configurations from docker-compose.yml are applied. The developer needs to resolve the error and ensure the configurations are applied. Which solution will meet these requirements?

Options

  • AStore the file path for the docker-compose.yml file as a Docker label. Add the label to the ECS
  • BAdd the details from the docker-compose.yml file to an ECS task definition. Associate the task
  • CCreate a namespace in the ECS cluster. Associate the docker-compose.yml file to the
  • DUpdate the service type of the ECS cluster to REPLICA, and redeploy the stack.

Unlock DVA-C02 to see the answer

You've previewed enough free DVA-C02 questions. Unlock DVA-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.

Full DVA-C02 PracticeBrowse All DVA-C02 Questions