exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 61 discussion

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 two.)

  • 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 Kinesis 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.
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
cldy
Highly Voted 3 years, 7 months ago
D. - Docker with awslogs E. VM Import/Export + CW logs
upvoted 7 times
...
amministrazione
Most Recent 8 months, 3 weeks ago
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.
upvoted 1 times
...
SkyZeroZx
1 year, 10 months ago
Selected Answer: AD
The correct options are A and D. Option A allows you to create an AWS Elastic Beanstalk application using the custom web server platform. This is a good option if you want to migrate the application without making any changes to the code. You can also enable log file rotation to Amazon S3, which will ensure that the logs are stored in a durable location. Option D allows you to create a Dockerfile for the application and then create an AWS Elastic Beanstalk application using the Docker platform and the Dockerfile. This is a good option if you want to containerize the application. You can also enable logging the Docker configuration to automatically publish the application logs. This will ensure that the logs are published to Amazon S3, which is a durable location.
upvoted 1 times
SkyZeroZx
1 year, 10 months ago
The other options are not as suitable for this scenario. For example, option B requires you to create an AWS OpsWorks stack, which is more complex and expensive than Elastic Beanstalk. Option C requires you to use Amazon Kinesis, which is a more complex solution than Amazon CloudWatch Logs. Option E requires you to create a new AMI, which is more complex and time-consuming than using Elastic Beanstalk.
upvoted 1 times
...
...
alexua
2 years ago
now , beanstalk does not work with AMI as Custom Platform.. the Useless discussion..
upvoted 1 times
...
CloudHandsOn
2 years, 1 month ago
D & E I believe. I rule out A because you dont have a custom web server platform with Beanstalk. You can use an EC2 for the custom web platform however.
upvoted 1 times
...
NathanvB99
2 years, 5 months ago
DE. A falls of because there’s a custom platform for AWS Elastic Beanstalk but it works based on an AMI and not on an executable. This is what you do in E.
upvoted 1 times
...
Harithareddynn
2 years, 8 months ago
Selected Answer: DE
Docker with awslogs to S3 . Since ELB Cloudwatch agents doesnt send logs directly to S3, it is not A but E
upvoted 4 times
...
bobsmith2000
3 years ago
BE A. It sounds substantially wrong. There's no "custom web server platform" only "custom platform". And if that's the case the one doesn't have to specify a web server executable anywhere. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/custom-platforms.html B. That's completely feasible. https://aws.amazon.com/blogs/devops/running-docker-on-aws-opsworks/ C. Wrong. There's no such thing as "Docker layer". A custom layer is required. https://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers.html D. Wrong. The one is only able to request logs from EB instances. On an instance the logs appear via docker volumes. There are no mentions of any sctipts for sending logs anywhere which has to be embedded into custom ami for EB env. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker.container.console.html#docker-env-cfg.dc-customized-logging E. That's ancually feasible. A custom image is fairly common pattern. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.customenv.html
upvoted 1 times
bobsmith2000
2 years, 11 months ago
My bad. E is wrong because there's no such a platform as "AMI platform". Moreover I misunderstood D. You create a volume to map logs from a container to a host and then it's possible to publish them to CloudWatch or rotate to S3 even using the web console. So it seems to be BD
upvoted 1 times
...
...
sin99
3 years, 1 month ago
B & D is best
upvoted 1 times
...
jyrajan69
3 years, 2 months ago
There is nothing here that indicates that we need to containerize this application. It is BeSpoke so it is customized. so E for sure and A. I am opting for A and E
upvoted 1 times
...
vbal
3 years, 4 months ago
B & E https://aws.amazon.com/blogs/devops/running-docker-on-aws-opsworks/ https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.customenv.html
upvoted 1 times
...
cldy
3 years, 4 months ago
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.
upvoted 2 times
...
tiana528
3 years, 5 months ago
Selected Answer: AD
A, D. A : The question mentions it uses a specific webserver of bespoke, and A mentions creating the customized platform. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/custom-platforms.html Why E is incorrect : Because `Elastic Beanstalk installs a CloudWatch log agent with the default configuration settings on each instance it creates` : https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.cloudwatchlogs.html Cloudwatch logs agent is already there, you don't need to do that complex steps to install it.
upvoted 4 times
...
chat77
3 years, 6 months ago
BE D - Wrong, logs are not in S3
upvoted 2 times
...
Kinnam
3 years, 6 months ago
A, D and E are correct. A & E - https://aws.amazon.com/about-aws/whats-new/2017/02/aws-elastic-beanstalk-supports-custom-platforms/ D- Docker platform runs natively on Linux. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html https://acloud.guru/forums/aws-certified-solutions-architect-professional/discussion/-KHL5b624o_6PR_KAW30/sample-question- CloudWatch Logs will store your log data indefinitely. S3 is equally durable. Going with A & E since they allow "custom platform" comparing to D which offers "Docker platform".
upvoted 2 times
...
Akhil254
3 years, 6 months ago
DE Correct
upvoted 1 times
...
pradhyumna
3 years, 6 months ago
A and D because S3 is the durable location that the question hints.
upvoted 3 times
GeniusMikeLiu
3 years, 4 months ago
cloudwatch logs default expire time is indefinitely. That meams it is durable.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago