Q68 — AWS SAA-C03 Ch.11

Question 68 of 100 | ← Chapter 11

Q768. A solutions architect needs to copy files from an Amazon S3 bucket to an Amazon Elastic File System (Amazon EFS) file system and another S3 bucket. The files must be copied continuously. New files are added to the original S3 bucket consistently. The copied files should be overwritten only if the source file changes.Which solution will meet these requirements with the LEAST operational overhead?

Correct Answer: A. Create an AWS DataSync location for both the destination S3 bucket and the EFS file system. Create a task for the destination S3 bucket and the EFS file system. Set the transfer mode to transfer only data that has changed.

Explanation

To copy files from an Amazon S3 bucket to an Amazon Elastic File System (Amazon EFS) file system and another S3 bucket continuously, while overwriting the copied files only if the source file changes with the least operational overhead, the most suitable solution is:A. Create an AWS DataSync location for both the destination S3 bucket and the EFS file system. Create a task for the destination S3 bucket and the EFS file system. Set the transfer mode to transfer only data that has changed.Option A provides the desired solution with the least operational overhead:Create an AWS DataSync location for both the destination S3 bucket and the EFS file system:AWS DataSync is a managed data transfer service that simplifies and accelerates moving data between on-premises storage and AWS services. By creating DataSync locations for the destination S3 bucket and the EFS file system, you can efficiently copy files between them.Create a task for the destination S3 bucket and the EFS file system:Tasks in AWS DataSync define the source and destination locations for file transfers. By creating a task for the destination S3 bucket and the EFS file system, you can specify the transfer options and settings for the file copies.Set the transfer mode to transfer only data that has changed:By setting the transfer mode to transfer only data that has changed, AWS DataSync will compare the source and destination files and only copy the files that have been modified. This ensures that files are overwritten only when the source file changes, reducing unnecessary data transfer and minimizing operational overhead.Here's why the other options are not the most suitable choices:Option B suggests using an AWS Lambda function to copy files to the EFS file system and the destination S3 bucket. While this approach can work, it requires more operational overhead as you need to set up and manage the Lambda function, mount the file system, and configure S3 event notifications. This option is more complex and may require additional maintenance.Option C suggests using AWS DataSync but setting the transfer mode to transfer all data. This option would result in copying all files, regardless of changes, which would not meet the requirement of overwriting the copied files only if the source file changes. It would also lead to unnecessary data transfer and increased operational overhead.Option D suggests launching an EC2 instance and creating a script to synchronize the objects between the S3 buckets and the EFS file system. This option requires managing and maintaining the EC2 instance, writing and maintaining the synchronization script, and scheduling the script execution. It involves more operational overhead compared to using AWS DataSync, which is a managed service specifically designed for data transfer.Therefore, the most appropriate solution to copy files continuously from an S3 bucket to an EFS file system and another S3 bucket, overwriting the copied files only if the source file changes with the least operational overhead, is:A. Create an AWS DataSync location for both the destination S3 bucket and the EFS file system. Create a task for the destination S3 bucket and the EFS file system. Set the transfer mode to transfer only data that has changed.