You have an application running on EC2
When the application trying to upload a 7 GB file to S3, the operation fails.
What could be the reason for failure, and what would be the solution?
Click on the arrows to vote for the correct answer
A. B. C. D. E. F.Answer: A.
AWS recommends using multi-part uploads for larger objects.
For more information on multi-part uploads, refer to documentation here.
https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.htmlFor option B, Amazon EBS is a storage for the drives of your virtual machines.
It stores data as blocks of the same size and organizes them through a hierarchy similar to a traditional file system.
EBS is not a standalone storage service like Amazon S3
So you can use it only in combination with Amazon EC2.
Objects can be stored on EBS volumes, but not cost-effective and not highly resilient and fault-tolerant compared to S3.
Options C and D are incorrect.
NAT Gateway ad VPC endpoints do not have any data transfer limitations.
The correct answer for this question is A: With a single PUT operation, you can upload objects up to 5 GB in size. Use multi-part upload for larger file uploads.
Explanation: When uploading a file to Amazon S3 using the PutObject operation, the maximum size of the object that can be uploaded in a single operation is 5 GB. If the file is larger than 5 GB, the operation will fail. Therefore, the recommended solution is to use multi-part upload to upload the file in smaller parts.
Multi-part upload allows you to upload large objects in parts, which can be uploaded independently and in parallel. This increases the speed of upload and also allows for resuming failed uploads from the last successful part.
In addition, it is important to ensure that the EC2 instance is correctly configured and has sufficient resources to upload large files. EBS Provisioned IOPs and Amazon EBS-optimized instances can help to optimize the performance of the instance and the storage.
Option B, D, and F are incorrect because they do not address the issue of uploading a large file to S3. They refer to optimizing the performance of the EC2 instance, but not the S3 upload.
Option C and E are incorrect because they refer to NAT gateway and VPC Endpoints, which are not relevant to the issue of uploading a file to S3.