Q39 — AWS SAP-C02 Ch.1

Question 39 of 75 | ← Chapter 1

Q114. An international delivery company hosts a delivery management system on AWS. Drivers use the system to upload confirmation of delivery. Confirmation includes the recipient's signature or a photo of the package with the recipient. The driver's handheld device uploads signatures and photos through FTP to a single Amazon EC2 instance.Each handheld device saves a file in a directory based on the signed-in user, and the file name matches the delivery number. The EC2 instance then adds metadata to the file after querying a central database to pull delivery information.The file is then placed in Amazon S3 for archiving. As the company expands, drivers report that the system is rejecting connections.The FTP server is having problems because of dropped connections and memory issues. In response to these problems,a system engineer schedules a cron task to reboot the EC2 instance every 30 minutes. The billing team reports that files are not always in the archive and that the central system is not always updated. A solutions architect needs to design a solution that maximizes scalability to ensure that the archive always receives the files and that systems are always updated. The handheld devices cannot be modified, so the company cannot deploy a new application.Which solution will meet these requirements?

Correct Answer: C. Use AWS Transfer Family to create an FTP server that places the files in Amazon S3. Use an S3 event notification through Amazon Simple Notification Service (Amazon SNS) to invoke an AWS Lambda function. Configure the Lambda function to add the metadata and update the delivery system

Explanation

Based on the requirements, the solution that will meet the scalability needs and ensure that the archive always receives the files and the systems are always updated is: C. Use AWS Transfer Family to create an FTP server that places the files in Amazon S3. Use an S3 event notification through Amazon Simple Notification Service (Amazon SNS) to invoke an AWS Lambda function. Configure the Lambda function to add the metadata and update the delivery system. Explanation: C. Use AWS Transfer Family to create an FTP server that places the files in Amazon S3: AWS Transfer Family provides fully managed FTP services in the cloud. By using AWS Transfer Family, you can create an FTP server that directly places the files in Amazon S3. This eliminates the need for the problematic EC2 instance and the associated FTP server. Use an S3 event notification through Amazon SNS to invoke an AWS Lambda function: Configure an S3 event notification that triggers an AWS Lambda function whenever a file is uploaded to the designated S3 bucket. This ensures that the Lambda function is invoked automatically whenever a new file is uploaded. Configure the Lambda function to add the metadata and update the delivery system: In the Lambda function, you can add the necessary logic to retrieve the delivery information from the central database using the delivery number from the file name. The Lambda function can then update the delivery system with the metadata and perform any other required actions. Option A is incorrect because creating an Auto Scaling group of EC2 instances behind an Application Load Balancer does not address the root cause of the issues related to the FTP server and memory problems. It also does not provide a scalable solution for handling the increasing workload. Option B is incorrect because mounting an Amazon Elastic File System (Amazon EFS) volume to the existing EC2 instance does not address the scalability issues and does not provide a solution to ensure that the archive always receives the files and the systems are always updated. Option D is incorrect because it suggests updating the handheld devices to directly place the files in Amazon S3. However, the requirement clearly states that the handheld devices cannot be modified, so this solution is not feasible. Therefore, the correct solution is C: Use AWS Transfer Family to create an FTP server that places the files in Amazon S3, use an S3 event notification through Amazon SNS to invoke an AWS Lambda function, and configure the Lambda function to add the metadata and update the delivery system.