
Answer-first summary for fast verification
Answer: Create a custom Docker image containing all dependencies for the legacy application, store this image in a new Amazon Elastic Container Registry (Amazon ECR) repository, and configure an AWS CodeBuild project to use this Docker image for building the deployable artifact, saving it to the S3 bucket.
Option A is the correct answer. This solution leverages the benefits of containerization using Docker, which allows for consistent and isolated builds. By using a custom Docker image stored in Amazon ECR, dependencies for the legacy application are well-managed and portable. AWS CodeBuild offers a scalable and automated build process that uses the custom Docker image to create the deployable artifact. Once built, the artifact is saved into the existing S3 bucket efficiently for future deployments. This method ensures a streamlined, repeatable, and operationally efficient build process compared to the other options.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A company requires a DevOps engineer to automate the build process for a legacy application, ensuring the deployable artifact is stored in an existing Amazon S3 bucket for future deployment references. Which solution offers the most operationally efficient approach to achieve this?
A
Create a custom Docker image containing all dependencies for the legacy application, store this image in a new Amazon Elastic Container Registry (Amazon ECR) repository, and configure an AWS CodeBuild project to use this Docker image for building the deployable artifact, saving it to the S3 bucket.
B
Launch a new Amazon EC2 instance, install all necessary dependencies for the legacy application on this instance, and use it to build the deployable artifact, saving it to the S3 bucket.
C
Create a custom EC2 Image Builder image, install all dependencies for the legacy application on this image, launch a new Amazon EC2 instance from it, and use this instance to build the deployable artifact, saving it to the S3 bucket.
D
Create an Amazon Elastic Kubernetes Service (Amazon EKS) cluster with an AWS Fargate profile running in multiple Availability Zones, create a custom Docker image containing all dependencies for the legacy application, store this image in a new Amazon Elastic Container Registry (Amazon ECR) repository, and use this Docker image within the EKS cluster to build the deployable artifact, saving it to the S3 bucket.
No comments yet.