Google Professional Cloud Developer Question 211
Select 4Google Cloud PlatformYou are developing a Python-based application that uses Google Cloud Storage. You need to upload files to a specific bucket while testing your application. You want to use the Google Cloud tools available to test this functionality. Which of the following tools can you use to programmatically upload the files to the bucket or verify the upload in an interactive development environment?
- A
Google Cloud SDK with the 'gsutil' command
- B
Google Cloud Console
- C
Cloud Shell
- D
Google Cloud APIs with client libraries
- E
Google Cloud Monitoring
Show answer and explanation
Correct answers: A, B, C, D
Explanation
Uploading files to a Google Cloud Storage bucket can be achieved through various tools provided by Google Cloud. The Google Cloud SDK's 'gsutil' command, the Google Cloud Console, and Cloud Shell all support file uploads interactively or through commands. Additionally, Google Cloud APIs with client libraries like the Python library enable programmatic uploads. However, Google Cloud Monitoring is not designed for this purpose as it focuses on tracking metrics and logging.
- A. Correct.
'gsutil', a tool provided by the Google Cloud SDK, allows you to interact with Google Cloud Storage, including uploading files to a bucket.
- B. Correct.
The Google Cloud Console provides a web-based interface to upload files directly to a bucket and verify the upload.
- C. Correct.
Cloud Shell offers an interactive environment with pre-installed tools like 'gsutil' for uploading files to Google Cloud Storage.
- D. Correct.
Google Cloud APIs, accessed via client libraries like the Python client library, provide programmatic access to upload files to a bucket.
- E. Incorrect.
Google Cloud Monitoring is used for tracking and analyzing metrics but cannot be used to upload files to a bucket.