Interview Q&A / AWS & Cloud
AWS & Cloud interview questions
EC2, S3, Lambda, IAM and VPC basics, with when to pick which service.
Prefer rapid revision? Practise AWS & Cloud short interview answers →
- How would you give a user read-only access to one specific S3 bucket?
Attach an identity policy that allows s3:ListBucket on the bucket ARN and s3:GetObject on the objects inside it using the bucket ARN with /*. Nothing else is allowed, so the user can read but not write or delete.
IntermediateQuick answer1 min read - Is Amazon S3 eventually consistent or strongly consistent?
S3 gives strong read-after-write consistency for all object operations. After a successful PUT, overwrite or DELETE, any later GET or LIST immediately reflects the change.
IntermediateQuick answer1 min read - What are the S3 Glacier storage classes and how do their retrieval times differ?
Glacier Instant Retrieval returns data in milliseconds. Glacier Flexible Retrieval takes minutes to hours depending on the option. Glacier Deep Archive is the cheapest and takes hours, typically around 12 hours or more.
IntermediateQuick answer1 min read - What happens when you delete an object in an S3 bucket that has versioning enabled?
S3 does not remove the data. It adds a delete marker as the newest version, so normal reads return 404, but older versions remain and can be restored by removing the marker or fetching a version ID.
IntermediateQuick answer1 min read - What is an S3 presigned URL and when would you use it?
A presigned URL is a temporary link, signed with someone's credentials, that lets a person upload or download one specific S3 object without having AWS credentials. It stops working when it expires.
IntermediateQuick answer1 min read