DVA-C02 · Question #57
A developer needs to deploy an application to AWS Elastic Beanstalk for a company. The application consists of a single Docker image. The company's automated continuous integration and continuous…
The correct answer is B. Create a docker-compose.yml file. Use the Elastic Beanstalk CLI to deploy the application. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/docker.html#single-container- docker.deploy-remote Deploy a remote Docker image to Elastic Beanstalk After testing your container locally, deploy it to an Elastic Beanstalk environment. Elastic Beanstalk uses the…
Question
A developer needs to deploy an application to AWS Elastic Beanstalk for a company. The application consists of a single Docker image. The company's automated continuous integration and continuous delivery (CI/CD) process builds the Docker image and pushes the image to a public Docker registry. How should the developer deploy the application to Elastic Beanstalk?
Options
- ACreate a Dockerfile. Configure Elastic Beanstalk to build the application as a Docker image.
- BCreate a docker-compose.yml file. Use the Elastic Beanstalk CLI to deploy the application.
- CCreate a .zip file that contains the Docker image. Upload the .zip file to Elastic Beanstalk.
- DCreate a Dockerfile. Run the Elastic Beanstalk CLI eb local run command in the same directory.
How the community answered
(55 responses)- A7% (4)
- B85% (47)
- C5% (3)
- D2% (1)
Explanation
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/docker.html#single-container- docker.deploy-remote Deploy a remote Docker image to Elastic Beanstalk After testing your container locally, deploy it to an Elastic Beanstalk environment. Elastic Beanstalk uses the docker-compose.yml file to pull and run your image if you are using Docker Compose. Otherwise, Elastic Beanstalk uses the Dockerrun.aws.json instead. Use the EB CLI to create an environment and deploy your image. ~/remote-docker$ eb create environment-name
Community Discussion
No community discussion yet for this question.