0
0
AWScloud~20 mins

Creating S3 buckets in AWS - Practice Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
S3 Bucket Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Configuration
intermediate
2:00remaining
What is the output of this AWS CLI command?
You run the following AWS CLI command to create an S3 bucket in the us-east-1 region:

aws s3api create-bucket --bucket my-unique-bucket-12345 --region us-east-1

What will be the result?
AWS
aws s3api create-bucket --bucket my-unique-bucket-12345 --region us-east-1
ABucket is created but in the default region us-west-2.
BCommand fails because LocationConstraint must be set for us-east-1.
CBucket is created successfully without specifying LocationConstraint.
DCommand fails because bucket name is invalid.
Attempts:
2 left
💡 Hint
The us-east-1 region is special in AWS S3 bucket creation.
Architecture
intermediate
1:00remaining
How many buckets can you create in AWS by default?
By default, how many Amazon S3 buckets can you create in a single AWS account?
A1000 buckets
B100 buckets
CUnlimited buckets
D10 buckets
Attempts:
2 left
💡 Hint
Think about AWS default service limits.
security
advanced
3:00remaining
Which bucket policy option correctly denies public access?
You want to deny all public access to your S3 bucket named 'my-secure-bucket'. Which bucket policy snippet correctly denies any request that is not from your AWS account?
AWS
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Deny",
      "Principal": "*",
      "Action": "s3:*",
      "Resource": ["arn:aws:s3:::my-secure-bucket", "arn:aws:s3:::my-secure-bucket/*"],
      "Condition": {
        "StringNotEquals": {
          "aws:PrincipalAccount": "123456789012"
        }
      }
    }
  ]
}
AEffect: Allow, Principal: *, Condition: StringEquals aws:PrincipalAccount your-account-id
BEffect: Deny, Principal: *, Condition: StringNotEquals aws:PrincipalAccount your-account-id
CEffect: Deny, Principal: your-account-id, Condition: StringEquals aws:PrincipalAccount your-account-id
DEffect: Allow, Principal: *, no Condition
Attempts:
2 left
💡 Hint
Deny overrides allow and Principal * means everyone.
service_behavior
advanced
1:30remaining
What happens if you try to create an S3 bucket with a name already taken globally?
You attempt to create an S3 bucket named 'example-bucket' but this name is already used by another AWS user in a different region. What will happen?
ABucket creation fails with an error that the bucket name is already taken.
BBucket is created successfully in your region with the same name.
CBucket creation succeeds but is shared globally with the other user.
DAWS automatically appends a unique suffix to your bucket name and creates it.
Attempts:
2 left
💡 Hint
S3 bucket names must be unique across all AWS users worldwide.
Best Practice
expert
3:00remaining
Which bucket configuration best ensures data durability and availability across multiple regions?
You want to create an S3 bucket that stores data redundantly across multiple AWS regions to protect against regional failures. Which configuration achieves this?
AEnable S3 Transfer Acceleration on a single regional bucket.
BCreate a standard S3 bucket in one region with versioning enabled.
CCreate multiple buckets in different regions and manually copy data between them.
DUse S3 Cross-Region Replication (CRR) to replicate objects to a bucket in another region.
Attempts:
2 left
💡 Hint
Look for automated replication across regions.