ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 586 - DVA-C01 discussion

Report
Export

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?

A.
Create a Dockerfile. Configure Elastic Beanstalk to build the application as a Docker image.
Answers
A.
Create a Dockerfile. Configure Elastic Beanstalk to build the application as a Docker image.
B.
Create a docker-compose.yml file. Use the Elastic Beanstalk CLI to deploy the application.
Answers
B.
Create a docker-compose.yml file. Use the Elastic Beanstalk CLI to deploy the application.
C.
Create a .zip file that contains the Docker image. Upload the .zip file to Elastic Beanstalk.
Answers
C.
Create a .zip file that contains the Docker image. Upload the .zip file to Elastic Beanstalk.
D.
Create a Dockerfile. Run the Elastic Beanstalk CLI eb local run command in the same directory.
Answers
D.
Create a Dockerfile. Run the Elastic Beanstalk CLI eb local run command in the same directory.
Suggested answer: B

Explanation:

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/docker.html#single-containerdocker.deploy-remoteDeploy a remote Docker image to Elastic BeanstalkAfter testing your container locally, deploy it to an Elastic Beanstalk environment. Elastic Beanstalkuses 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

asked 16/09/2024
Francisco Julian Mota Fraile
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first