exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 65 discussion

Actual exam question from Google's Professional Cloud Architect
Question #: 65
Topic #: 1
[All Professional Cloud Architect Questions]

You need to upload files from your on-premises environment to Cloud Storage. You want the files to be encrypted on Cloud Storage using customer-supplied encryption keys. What should you do?

  • A. Supply the encryption key in a .boto configuration file. Use gsutil to upload the files.
  • B. Supply the encryption key using gcloud config. Use gsutil to upload the files to that bucket.
  • C. Use gsutil to upload the files, and use the flag --encryption-key to supply the encryption key.
  • D. Use gsutil to create a bucket, and use the flag --encryption-key to supply the encryption key. Use gsutil to upload the files to that bucket.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
KouShikyou
Highly Voted 5 years, 2 months ago
In GCP document, key could be configured in .boto. I didn't find information show gsutil suppots flag "--encryption-key". https://cloud.google.com/storage/docs/encryption/customer-supplied-keys
upvoted 46 times
JaimeMS
6 months, 1 week ago
The documentation is here: https://cloud.google.com/storage/docs/encryption/using-customer-supplied-keys#upload-encrypt Option C is correct. You can upload a file using customer-supplied encryption with the command: gcloud storage cp SOURCE_DATA gs://BUCKET_NAME/OBJECT_NAME --encryption-key=YOUR_ENCRYPTION_KEY
upvoted 13 times
...
tartar
4 years, 4 months ago
A is ok
upvoted 16 times
...
nitinz
3 years, 9 months ago
A is correct
upvoted 4 times
...
kumarp6
4 years, 1 month ago
.boto file with encryption key, but it will works for individual users, every user should update their own .boto with same key. Also while retrieving you should use the same key to decryption.
upvoted 3 times
...
...
Eroc
Highly Voted 5 years, 1 month ago
I agree, A.(https://cloud.google.com/storage/docs/gsutil/addlhelp/UsingEncryptionKeys#generating-customer-supplied-encryption-keys)
upvoted 18 times
...
mahi_h
Most Recent 4 days, 16 hours ago
Selected Answer: D
I see option D is not even discussed. The question said "upload files", meaning multiple object. Isn't the encrypted bucked creation a secured way to store them in cloud storage?
upvoted 1 times
...
kip21
6 days, 1 hour ago
Selected Answer: A
[GSUtil] check_hashes content_language decryption_key1 ... 100 default_api_version disable_analytics_prompt encryption_key
upvoted 1 times
...
deep316
1 week, 3 days ago
Selected Answer: C
Option C: Use gsutil to upload the files and use the flag --encryption-key to supply the encryption key. This is the correct approach, as it allows you to specify the CSEK directly at the time of upload, ensuring that your files are encrypted using your provided key.
upvoted 1 times
...
klayytech
1 week, 6 days ago
Selected Answer: D
D. Use gsutil to create a bucket, and use the flag --encryption-key to supply the encryption key. Use gsutil to upload the files to that bucket. This option provides the most comprehensive and secure approach: Create an encrypted bucket: Use gsutil mb -b location gs://your-bucket-name --encryption-key=your_encryption_key This ensures that all objects uploaded to this bucket will be encrypted with your provided key. Upload files to the encrypted bucket: Use gsutil cp your_local_file gs://your-bucket-name By following this approach, you guarantee that your files are encrypted both at rest and in transit on Cloud Storage, providing a robust security posture. The other options either lack the encryption key specification or do not create an encrypted bucket, leaving your data vulnerable.
upvoted 2 times
...
desertlotus1211
3 weeks, 5 days ago
Selected Answer: A
The boto configuration file in Google Cloud Platform (GCP) controls how the gsutil command behaves: Setting up gsutil You can use the boto configuration file to set up gsutil to work through a proxy. Using encryption keys You can use the boto configuration file to use customer-managed or customer-supplied encryption keys.
upvoted 1 times
desertlotus1211
3 weeks, 5 days ago
.boto is smoother to use consistently...
upvoted 1 times
...
...
icarogsm
1 month ago
Selected Answer: A
A! I agree that the boto file sounds better
upvoted 1 times
...
46affda
1 month ago
Option C is correct - please refer https://cloud.google.com/storage/docs/encryption/using-customer-supplied-keys#command-line
upvoted 1 times
...
sim7243
1 month, 1 week ago
Selected Answer: A
option A, Option A allows you to configure the .boto configuration file with the encryption key. This configuration file is used by gsutil to apply settings, including encryption key management. By placing the encryption key in the .boto file, you ensure that every time gsutil is used, it automatically supplies the correct key for encrypting files as they are uploaded to Cloud Storage. Option C: The --encryption-key flag does not exist for gsutil. Instead, gsutil uses the .boto configuration file or the -o flag for customer-supplied encryption keys.
upvoted 2 times
...
nareshthumma
1 month, 4 weeks ago
Answer: C Use gsutil to upload the files, and use the flag -encryption-key to supply the encryption key. Here’s why this is the best option: 1. Using gsutil: gsutil is the command-line tool for interacting with Google Cloud Storage, and it supports options for specifying customer-supplied encryption keys directly during the upload process. 2. Flag -encryption-key: The -encryption-key flag allows you to specify the encryption key at the time of uploading the files. This ensures that the files are encrypted with the provided key as they are being uploaded to Cloud Storage.
upvoted 3 times
...
AlainBas
2 months, 3 weeks ago
A is correct
upvoted 1 times
...
dfizban
2 months, 3 weeks ago
Selected Answer: C
Option C is correct.
upvoted 2 times
...
3fd692e
2 months, 3 weeks ago
Selected Answer: C
Straight for the docs: https://cloud.google.com/storage/docs/encryption/using-customer-supplied-keys#upload-encrypt
upvoted 4 times
...
Upender_PDE
2 months, 3 weeks ago
Option C is correct C. Use gsutil to upload the files, and use the flag --encryption-key to supply the encryption key. gsutil -o "GSUtil:encryption_key=YOUR_BASE64_ENCRYPTION_KEY" cp your_file.txt gs://your-bucket/
upvoted 4 times
...
maxdanny
3 months, 2 weeks ago
Selected Answer: C
When using customer-supplied encryption keys (CSEK) in Google Cloud Storage, you can provide the encryption key directly in your gsutil command during the upload operation. The --encryption-key flag allows you to specify the encryption key for encrypting the files as they are uploaded.
upvoted 4 times
...
JohnJamesB1212
3 months, 2 weeks ago
Selected Answer: C
The correct answer is C. Use gsutil to upload the files, and use the flag --encryption-key to supply the encryption key. Here’s why: To encrypt files with a customer-supplied encryption key (CSEK), you can use the gsutil command along with the --encryption-key flag to specify the encryption key when uploading files to Cloud Storage. This allows each file to be encrypted using your specified encryption key, providing an additional layer of security beyond Google-managed encryption. The other options are incorrect: A and B reference .boto configuration files and gcloud config, but those methods are not used to specify customer-supplied encryption keys for file uploads. D incorrectly suggests using --encryption-key when creating a bucket, but encryption keys are supplied during file uploads, not during bucket creation. Thus, C is the correct option to upload files with customer-supplied encryption keys using gsutil.
upvoted 5 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago