Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Recall & Review
beginner
What is the purpose of the Requester Pays feature in Google Cloud Storage?
Requester Pays lets the person or project requesting data pay for the data access costs, instead of the bucket owner. This helps share costs fairly when many users access the same data.
Click to reveal answer
beginner
How do you enable Requester Pays on a Google Cloud Storage bucket?
You enable it by setting the bucket's billing configuration to Requester Pays using the command: gsutil requester-pays set on gs://[BUCKET_NAME]
Click to reveal answer
intermediate
What must a user do to access data from a Requester Pays bucket?
The user must specify the billing project that will pay for the access costs by adding the flag -u [PROJECT_ID] when using gsutil or setting the billing project in API requests.
Click to reveal answer
intermediate
What happens if a user tries to access a Requester Pays bucket without specifying a billing project?
The request will fail with a permission error because the system does not know which project should be billed for the access.
Click to reveal answer
beginner
Can Requester Pays be disabled after it is enabled on a bucket?
Yes, you can disable it anytime by running: gsutil requester-pays set off gs://[BUCKET_NAME] which returns billing responsibility to the bucket owner.
Click to reveal answer
What does enabling Requester Pays on a bucket do?
AEncrypts the bucket data automatically
BMakes the bucket owner pay for all costs
CBlocks all external access
DMakes the requester pay for data access costs
✗ Incorrect
Requester Pays shifts data access costs to the requester, not the bucket owner.
The correct gsutil command is 'requester-pays set on' followed by the bucket name.
What must a user specify to access a Requester Pays bucket?
AThe billing project ID
BThe bucket owner's email
CThe bucket location
DThe encryption key
✗ Incorrect
Users must specify the billing project ID to pay for access costs.
If Requester Pays is enabled, who pays for data storage costs?
ARequester
BBucket owner
CGoogle Cloud
DNo one
✗ Incorrect
Storage costs remain the responsibility of the bucket owner; only access costs shift to the requester.
What happens if a user accesses a Requester Pays bucket without specifying a billing project?
AAccess is denied with an error
BAccess is granted for free
CThe bucket owner is billed
DThe request is queued
✗ Incorrect
Access fails because the system cannot bill any project for the request.
Explain how Requester Pays changes billing responsibility in Google Cloud Storage.
Think about who pays when you download data from a shared bucket.
You got /3 concepts.
Describe the steps to enable and use Requester Pays on a bucket.
Consider commands and user actions.
You got /3 concepts.
Practice
(1/5)
1. What does enabling Requester Pays on a Google Cloud Storage bucket do?
easy
A. It makes the bucket owner pay for all data access costs.
B. It disables public access to the bucket.
C. It makes the user accessing the data pay for the access costs.
D. It encrypts the data in the bucket automatically.
Solution
Step 1: Understand Requester Pays concept
Requester Pays shifts the cost of data access from the bucket owner to the user who requests the data.
Step 2: Identify the cost responsibility
When enabled, the user accessing the bucket pays for network and operation costs, not the owner.
Final Answer:
It makes the user accessing the data pay for the access costs. -> Option C
Quick Check:
Requester Pays = user pays [OK]
Hint: Requester Pays means user pays for data access costs [OK]
Common Mistakes:
Thinking bucket owner always pays
Confusing with access permissions
Assuming it encrypts data
2. Which command correctly enables Requester Pays on a bucket named my-data-bucket?
easy
A. gsutil set requesterpay gs://my-data-bucket on
B. gsutil requester-pays enable gs://my-data-bucket
C. gsutil enable requester-pays gs://my-data-bucket
D. gsutil requesterpay set on gs://my-data-bucket
Solution
Step 1: Recall the correct gsutil syntax
The correct command to enable Requester Pays is gsutil requesterpay set on followed by the bucket URL.
Step 2: Match the command with the bucket name
gsutil requesterpay set on gs://my-data-bucket uses the exact syntax and bucket name correctly.
Final Answer:
gsutil requesterpay set on gs://my-data-bucket -> Option D
Quick Check:
Correct gsutil syntax = gsutil requesterpay set on gs://my-data-bucket [OK]
Hint: Use 'gsutil requesterpay set on' to enable Requester Pays [OK]
Common Mistakes:
Using incorrect command verbs like 'enable'
Misplacing 'requesterpay' keyword
Wrong order of command arguments
3. Given a bucket with Requester Pays enabled, which gsutil command will successfully copy a file named data.csv from the bucket gs://example-bucket to your local machine?
medium
A. gsutil cp --requester-pays gs://example-bucket/data.csv ./
B. gsutil cp gs://example-bucket/data.csv ./
C. gsutil cp --enable-requester-pays gs://example-bucket/data.csv ./
D. gsutil cp --requesterpay gs://example-bucket/data.csv ./
Solution
Step 1: Understand Requester Pays access requirement
When accessing a Requester Pays bucket, the user must include the --requester-pays flag in the gsutil command.
Step 2: Identify the correct flag usage
gsutil cp --requester-pays gs://example-bucket/data.csv ./ uses the correct flag --requester-pays with the copy command.
Final Answer:
gsutil cp --requester-pays gs://example-bucket/data.csv ./ -> Option A
Quick Check:
Use --requester-pays flag to access Requester Pays buckets [OK]
Hint: Add --requester-pays flag to gsutil commands for Requester Pays buckets [OK]
Common Mistakes:
Omitting the --requester-pays flag
Using incorrect flag names
Assuming normal commands work without flags
4. You try to download a file from a Requester Pays bucket without the --requester-pays flag and get an error. What is the most likely fix?
medium
A. Use a different gsutil version.
B. Add the --requester-pays flag to your gsutil command.
C. Change the bucket permissions to public.
D. Disable Requester Pays on the bucket.
Solution
Step 1: Identify cause of error
Accessing a Requester Pays bucket without the --requester-pays flag causes permission errors because the user is not accepting cost responsibility.
Step 2: Apply the correct fix
Adding the --requester-pays flag tells Google Cloud you accept the charges, fixing the error.
Final Answer:
Add the --requester-pays flag to your gsutil command. -> Option B
Quick Check:
Missing --requester-pays flag causes errors [OK]
Hint: Add --requester-pays flag to fix access errors [OK]
Common Mistakes:
Trying to disable Requester Pays without permission
Changing bucket permissions unnecessarily
Assuming gsutil version causes this error
5. You manage a public dataset bucket with Requester Pays enabled. A user complains they cannot access data using the Google Cloud Console UI. What is the best advice to help them access the data?
hard
A. Tell them to use gsutil with the --requester-pays flag for data access.
B. Advise them to disable Requester Pays on the bucket.
C. Instruct them to request access permissions from the bucket owner.
D. Suggest they use the Cloud Console without any special flags.
Solution
Step 1: Understand Requester Pays impact on access methods
Requester Pays requires users to explicitly accept cost responsibility, usually via command flags like --requester-pays or a confirmation prompt in the UI.
Step 2: Identify supported access methods
While the Cloud Console UI supports Requester Pays with a billing-enabled project and charge acceptance prompt, recommend gsutil with the --requester-pays flag as a reliable alternative when facing UI access issues.
Final Answer:
Tell them to use gsutil with the --requester-pays flag for data access. -> Option A
Quick Check:
Use gsutil + --requester-pays for Requester Pays buckets [OK]
Hint: Use gsutil with --requester-pays for reliable access to Requester Pays buckets [OK]
Common Mistakes:
Assuming Console UI works without project billing enabled