0
0
AWScloud~10 mins

Why S3 matters for object storage in AWS - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create an S3 bucket using AWS CLI.

AWS
aws s3api create-bucket --bucket [1] --region us-east-1
Drag options to blanks, or click blank then click option'
Adelete-bucket
Bus-west-2
Clist-buckets
Dmy-unique-bucket-123
Attempts:
3 left
💡 Hint
Common Mistakes
Using a region name instead of a bucket name.
Using AWS CLI commands unrelated to bucket creation.
2fill in blank
medium

Complete the code to upload a file to an S3 bucket using AWS CLI.

AWS
aws s3 cp ./photo.jpg s3://[1]/
Drag options to blanks, or click blank then click option'
Amy-bucket
Bus-east-1
Clist-buckets
Ddelete-bucket
Attempts:
3 left
💡 Hint
Common Mistakes
Using region names instead of bucket names.
Using commands that list or delete buckets instead of uploading.
3fill in blank
hard

Fix the error in the command to list objects in an S3 bucket.

AWS
aws s3api list-objects --bucket [1]
Drag options to blanks, or click blank then click option'
Alist-buckets
Bdelete-bucket
Cmy-bucket
Dcreate-bucket
Attempts:
3 left
💡 Hint
Common Mistakes
Using commands that list or delete buckets instead of specifying the bucket name.
Leaving the bucket name blank.
4fill in blank
hard

Fill both blanks to configure an S3 bucket policy that allows public read access.

AWS
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "[1]",
    "Principal": "*",
    "Action": "s3:GetObject",
    "Resource": "arn:aws:s3:::[2]/*"
  }]
}
Drag options to blanks, or click blank then click option'
AAllow
BDeny
Cmy-public-bucket
Dprivate-bucket
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Deny' instead of 'Allow' for the effect.
Specifying the wrong bucket name in the resource ARN.
5fill in blank
hard

Fill all three blanks to create a lifecycle rule that transitions objects to Glacier after 30 days and expires them after 365 days.

AWS
{
  "Rules": [{
    "ID": "ArchiveAndExpire",
    "Status": "[1]",
    "Filter": {},
    "Transitions": [{
      "Days": [2],
      "StorageClass": "[3]"
    }],
    "Expiration": {
      "Days": 365
    }
  }]
}
Drag options to blanks, or click blank then click option'
AEnabled
B30
CGLACIER
DDisabled
Attempts:
3 left
💡 Hint
Common Mistakes
Setting the rule status to Disabled.
Using incorrect days or storage class values.