nerdexam
Amazon

DOP-C02 · Question #145

A company has a legacy application. A DevOps engineer needs to automate the process of building the deployable artifact for the legacy application. The solution must store the deployable artifact in…

The correct answer is A. Create a custom Docker image that contains all the dependencies for the legacy application. Store the. This approach is the most operationally efficient because it leverages the benefits of containerization, such as isolation and reproducibility, as well as AWS managed services. AWS CodeBuild is a fully managed build service that can compile your source code, run tests, and…

Submitted by klara.se· Mar 6, 2026SDLC Automation

Question

A company has a legacy application. A DevOps engineer needs to automate the process of building the deployable artifact for the legacy application. The solution must store the deployable artifact in an existing Amazon S3 bucket for future deployments to reference. Which solution will meet these requirements in the MOST operationally efficient way?

Options

  • ACreate a custom Docker image that contains all the dependencies for the legacy application. Store the
  • BLaunch a new Amazon EC2 instance. Install all the dependencies for the legacy application on the
  • CCreate a custom EC2 Image Builder image. Install all the dependencies for the legacy application on
  • DCreate an Amazon Elastic Kubernetes Service (Amazon EKS) cluster with an AWS Fargate profile that

How the community answered

(44 responses)
  • A
    68% (30)
  • B
    5% (2)
  • C
    18% (8)
  • D
    9% (4)

Explanation

This approach is the most operationally efficient because it leverages the benefits of containerization, such as isolation and reproducibility, as well as AWS managed services. AWS CodeBuild is a fully managed build service that can compile your source code, run tests, and produce deployable software packages. By using a custom Docker image that includes all dependencies, you can ensure that the environment in which your code is built is consistent. Using Amazon ECR to store Docker images lets you easily deploy the images to any environment. Also, you can directly upload the build artifacts to Amazon S3 from AWS CodeBuild, which is beneficial for version control and archival purposes.

Topics

#Build Automation#Legacy Applications#Docker#Operational Efficiency

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice