Share a private S3 object with an external customer for one hour. How?
IntermediateScenarioS3, RDS and DynamoDB
Answer
Situation read → Use a presigned URL.
What I'd do →
- Generate:
aws s3 presign s3://bucket/report.pdf --expires-in 3600 - Sign with a role whose credentials outlive the URL (role session expiry caps URL life)
- For uploads use a presigned PUT or POST policy with size limits
- Log access with S3 server access logs or CloudTrail data events
Why → The URL carries the signer's permissions temporarily without making the object public.
Interview tip → URLs signed with temporary credentials die when those credentials expire.
More on S3, RDS and DynamoDB
You need to host a static website with HTTPS and low latency worldwide. Which services do you use?BeginnerUploaded files in your bucket must be deleted after 90 days and old versions after 30. How do you do that?BeginnerSomeone deleted objects from a versioned bucket. How do you recover and prevent repeats?IntermediateMillions of small objects are being uploaded and S3 returns 503 Slow Down. What do you do?IntermediateLarge 50 GB files upload slowly from remote offices to S3. How do you speed it up?IntermediateDesign a cross-region DR strategy for a critical S3 bucket with a 15-minute RPO.Advanced