Cloud Engineer interview question
Write a least-privilege IAM policy that lets an application read and write objects under one prefix of a bucket.
Hands-on Asked in Cloud Engineer · DevOps Engineer interviews
Summary
Allow s3:GetObject and s3:PutObject only on bucket/app-prefix/*, and s3:ListBucket on the bucket with a
condition limiting s3:prefix to that prefix. Attach it to the application's role, not to a user with long-lived
keys.
Keep reading with a membership
The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.
More Cloud Engineer questions
- How do you keep object storage buckets from being exposed publicly?
- What do Multi-AZ deployments and read replicas give you for managed databases?
- Design a highly available web application on AWS that survives the loss of an availability zone.
- What are regions and availability zones, and how do you use them for resilience?
- An application on AWS suddenly gets AccessDenied when reading from S3. How do you troubleshoot it?
- How is an AWS IAM request evaluated when several policies apply?
- How do you eliminate long-lived credentials in a cloud environment?
- How do you approach cloud cost optimisation?