You must architect the migration of a web application to AWS. The application consists of Linux web servers
running a custom web server. You are required to save the logs generated from the application to a durable
location.What options could you select to migrate the application to AWS? (Choose 2)
A.
Create an AWS Elastic Beanstalk application using the custom web server platform. Specify the web server
executable and the application project and source files. Enable log file rotation to Amazon Simple Storage
Service (S3).
B.
Create Dockerfile for the application. Create an AWS OpsWorks stack consisting of a custom layer. Create
custom recipes to install Docker and to deploy your Docker container using the Dockerfile. Create customer
recipes to install and configure the application to publish the logs to Amazon CloudWatch Logs.
C.
Create Dockerfile for the application. Create an AWS OpsWorks stack consisting of a Docker layer that
uses the Dockerfile. Create custom recipes to install and configure Amazon Kineses to publish the logs into
Amazon CloudWatch.
D.
Create a Dockerfile for the application. Create an AWS Elastic Beanstalk application using the Docker
platform and the Dockerfile. Enable logging the Docker configuration to automatically publish the application
logs. Enable log file rotation to Amazon S3.
E.
Use VM import/Export to import a virtual machine image of the server into AWS as an AMI. Create an
Amazon Elastic Compute Cloud (EC2) instance from AMI, and install and configure the Amazon
CloudWatch Logs agent. Create a new AMI from the instance. Create an AWS Elastic Beanstalk application
using the AMI platform and the new AMI.
D, E
From some other sources, it is said that the solution in E is the most appropriate action. To my understanding, because of the question mentioning about “The application consists of Linux web servers
running a custom web server…”, using VM Import/Export sounds more reasonable to me.
E mentioned Cloud watch only, nothing about saving the log. But practically speaking, I would use vm import to migration customized applications.
DE – agreed
I think that A,D may be correct.
First I was insecure that you could “Create an AWS Elastic Beanstalk application using the custom web server platform.” But I think it seems possible according to: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/custom-platforms.html
I want to store the logs in s3, based on durability and availability.
So A seems like a good option.
And B,C are obviously false.
E is kind of tricky, but since it is not really discussing how to save the logs, I would go for A.