Transferring EC2 Instance Logs to S3 Bucket | Solution for AWS Certified Developer Exam

How to Transfer Logs from EC2 Instances to S3 Bucket

Prev Question Next Question

Question

You are a developer for a company.

You have to develop an application that would transfer the logs from several EC2 Instances to an S3 bucket.

Which of the following would you use for this purpose?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - C.

This is mentioned in the AWS Documentation.

AWS Data Pipeline is a web service that you can use to automate data movement and transformation.

With AWS Data Pipeline, you can define data-driven workflows so that tasks can depend on the successful completion of previous tasks.

You define the parameters of your data transformations, and AWS Data Pipeline enforces the logic that you've set up.

Option A is incorrect since this is used specifically for migrating databases.

Option B is incorrect since this is used for performing SQL queries in data stored on S3.

Option D is incorrect since this is used for Big data applications.

For more information on AWS Pipeline, please visit the following URL-

https://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/what-is-datapipeline.html
Task: copy Task: launch
log files data analysis

Amazon EC2 Amazon $3 Amazon EMR

The correct answer is C. AWS Data Pipeline.

AWS Data Pipeline is a web service that enables you to schedule regular data movement and data processing activities in the AWS environment. It can help to transfer data between different AWS services, such as EC2 instances and S3 buckets. It is a perfect solution for handling logs because it supports a variety of data sources and targets, including logs, databases, and AWS services.

AWS Database Migration Service is a tool that helps to migrate databases to AWS from on-premises or other cloud platforms. It is not suitable for transferring logs from EC2 instances to S3 buckets.

AWS Athena is an interactive query service that enables you to query data stored in S3 using standard SQL. It is not designed for data transfer but rather for querying data.

AWS EMR is a managed big data platform that allows you to process and analyze vast amounts of data using Hadoop, Spark, or other frameworks. It is not suitable for transferring logs from EC2 instances to S3 buckets.

Therefore, AWS Data Pipeline is the most appropriate service for transferring logs from several EC2 instances to an S3 bucket.