Practice Free Professional Cloud Developer Exam Online Questions
You are creating an App Engine application that writes a file to any user’s Google Drive.
How should the application authenticate to the Google Drive API?
- A . With an OAuth Client ID that uses the https://www.googleapis.com/auth/drive.file scope to obtain an access token for each user.
- B . With an OAuth Client ID with delegated domain-wide authority.
- C . With the App Engine service account and https://www.googleapis.com/auth/drive.file scope that generates a signed JWT.
- D . With the App Engine service account with delegated domain-wide authority.
B
Explanation:
Reference: https://developers.google.com/drive/api/v3/about-auth
You are creating an App Engine application that writes a file to any user’s Google Drive.
How should the application authenticate to the Google Drive API?
- A . With an OAuth Client ID that uses the https://www.googleapis.com/auth/drive.file scope to obtain an access token for each user.
- B . With an OAuth Client ID with delegated domain-wide authority.
- C . With the App Engine service account and https://www.googleapis.com/auth/drive.file scope that generates a signed JWT.
- D . With the App Engine service account with delegated domain-wide authority.
B
Explanation:
Reference: https://developers.google.com/drive/api/v3/about-auth
You are using Cloud Build build to promote a Docker image to Development, Test, and Production environments. You need to ensure that the same Docker image is deployed to each of these environments.
How should you identify the Docker image in your build?
- A . Use the latest Docker image tag.
- B . Use a unique Docker image name.
- C . Use the digest of the Docker image.
- D . Use a semantic version Docker image tag.
You are using Cloud Build build to promote a Docker image to Development, Test, and Production environments. You need to ensure that the same Docker image is deployed to each of these environments.
How should you identify the Docker image in your build?
- A . Use the latest Docker image tag.
- B . Use a unique Docker image name.
- C . Use the digest of the Docker image.
- D . Use a semantic version Docker image tag.
Your company has a data warehouse that keeps your application information in BigQuery. The BigQuery data warehouse keeps 2 PBs of user data. Recently, your company expanded your user base to include EU users and needs to comply with these requirements:
Your company must be able to delete all user account information upon user request.
All EU user data must be stored in a single region specifically for EU users.
Which two actions should you take? (Choose two.)
- A . Use BigQuery federated queries to query data from Cloud Storage.
- B . Create a dataset in the EU region that will keep information about EU users only.
- C . Create a Cloud Storage bucket in the EU region to store information for EU users only.
- D . Re-upload your data using to a Cloud Dataflow pipeline by filtering your user records out.
- E . Use DML statements in BigQuery to update/delete user records based on their requests.
C,E
Explanation:
Reference: https://cloud.google.com/solutions/bigquery-data-warehouse
You are developing a single-player mobile game backend that has unpredictable traffic patterns as users interact with the game throughout the day and night. You want to optimize costs by ensuring that you have enough resources to handle requests, but minimize over-provisioning. You also want the system to handle traffic spikes efficiently.
Which compute platform should you use?
- A . Cloud Run
- B . Compute Engine with managed instance groups
- C . Compute Engine with unmanaged instance groups
- D . Google Kubernetes Engine using cluster autoscaling
You work at a rapidly growing financial technology startup. You manage the payment processing application written in Go and hosted on Cloud Run in the Singapore region (asia-southeast1). The payment processing application processes data stored in a Cloud Storage bucket that is also located in the Singapore region.
The startup plans to expand further into the Asia Pacific region. You plan to deploy the Payment Gateway in Jakarta, Hong Kong, and Taiwan over the next six months. Each location has data residency requirements that require customer data to reside in the country where the transaction was made. You want to minimize the cost of these deployments.
What should you do?
- A . Create a Cloud Storage bucket in each region, and create a Cloud Run service of the payment processing application in each region.
- B . Create a Cloud Storage bucket in each region, and create three Cloud Run services of the payment processing application in the Singapore region.
- C . Create three Cloud Storage buckets in the Asia multi-region, and create three Cloud Run services of the payment processing application in the Singapore region.
- D . Create three Cloud Storage buckets in the Asia multi-region, and create three Cloud Run revisions of the payment processing application in the Singapore region.
You work at a rapidly growing financial technology startup. You manage the payment processing application written in Go and hosted on Cloud Run in the Singapore region (asia-southeast1). The payment processing application processes data stored in a Cloud Storage bucket that is also located in the Singapore region.
The startup plans to expand further into the Asia Pacific region. You plan to deploy the Payment Gateway in Jakarta, Hong Kong, and Taiwan over the next six months. Each location has data residency requirements that require customer data to reside in the country where the transaction was made. You want to minimize the cost of these deployments.
What should you do?
- A . Create a Cloud Storage bucket in each region, and create a Cloud Run service of the payment processing application in each region.
- B . Create a Cloud Storage bucket in each region, and create three Cloud Run services of the payment processing application in the Singapore region.
- C . Create three Cloud Storage buckets in the Asia multi-region, and create three Cloud Run services of the payment processing application in the Singapore region.
- D . Create three Cloud Storage buckets in the Asia multi-region, and create three Cloud Run revisions of the payment processing application in the Singapore region.
Your team is developing a Cloud Function triggered by Cloud Storage Events. You want to accelerate testing and development of your Cloud Function while following Google-recommended best practices.
What should you do?
- A . Install the Functions Frameworks library, and configure the Cloud Function on localhost. Make a copy of the function, and make edits to the new version Test the new version using cur1.
- B . Make a copy of the Cloud Function, and rewrite the code to be HTTP-triggered Edit and test the new version by triggering the HTTP endpoint. Send mock requests to the new function to evaluate the functionality.
- C . Make a copy of the Cloud Function in the Google Cloud Console Use the Cloud console’s in-line editor to make source code changes to the new function Modify your web application to call the new function and test the new version in production.
- D . Create a new Cloud Function that is triggered when Cloud Audit Logs detects the cloud functions. functions. source CodeSet operation in the original Cloud Function Send mock requests to the new function to evaluate the functionality.
Your team is developing a Cloud Function triggered by Cloud Storage Events. You want to accelerate testing and development of your Cloud Function while following Google-recommended best practices.
What should you do?
- A . Install the Functions Frameworks library, and configure the Cloud Function on localhost. Make a copy of the function, and make edits to the new version Test the new version using cur1.
- B . Make a copy of the Cloud Function, and rewrite the code to be HTTP-triggered Edit and test the new version by triggering the HTTP endpoint. Send mock requests to the new function to evaluate the functionality.
- C . Make a copy of the Cloud Function in the Google Cloud Console Use the Cloud console’s in-line editor to make source code changes to the new function Modify your web application to call the new function and test the new version in production.
- D . Create a new Cloud Function that is triggered when Cloud Audit Logs detects the cloud functions. functions. source CodeSet operation in the original Cloud Function Send mock requests to the new function to evaluate the functionality.