You want to upload files from an on-premises virtual machine to Google Cloud Storage as part of a data migration. These files will be consumed by Cloud
DataProc Hadoop cluster in a GCP environment.
Which command should you use?
A.
gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
B.
gcloud cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
C.
hadoop fs cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
D.
gcloud dataproc cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
Your company wants to expand their users outside the United States for their popular application. The company wants to ensure 99.999% availability of the database for their application and also wants to minimize the read latency for their users across the globe.
Which two actions should they take? (Choose two.)
A.
Create a multi-regional Cloud Spanner instance with "nam-asia-eur1" configuration.
B.
Create a multi-regional Cloud Spanner instance with "nam3" configuration.
C.
Create a cluster with at least 3 Spanner nodes.
D.
Create a cluster with at least 1 Spanner node.
E.
Create a minimum of two Cloud Spanner instances in separate regions with at least one node.
F.
Create a Cloud Dataflow pipeline to replicate data across different databases.
Your development team is using Cloud Build to promote a Node.js application built on App Engine from your staging environment to production. The application relies on several directories of photos stored in a Cloud Storage bucket named webphotos-staging in the staging environment. After the promotion, these photos must be available in a Cloud Storage bucket named webphotos-prod in the production environment. You want to automate the process where possible. What should you do?
A.
Manually copy the photos to webphotos-prod.
B.
Add a startup script in the application's app.yami file to move the photos from webphotos-staging to webphotos-prod.
C.
Add a build step in the cloudbuild.yaml file before the promotion step with the arguments:
D.
Add a build step in the cloudbuild.yaml file before the promotion step with the arguments:
You are developing a web application that will be accessible over both HTTP and HTTPS and will run on Compute Engine instances. On occasion, you will need to SSH from your remote laptop into one of the Compute Engine instances to conduct maintenance on the app. How should you configure the instances while following Google-recommended best practices?
A.
Set up a backend with Compute Engine web server instances with a private IP address behind a TCP proxy load balancer.
B.
Configure the firewall rules to allow all ingress traffic to connect to the Compute Engine web servers, with each server having a unique external IP address.
C.
Configure Cloud Identity-Aware Proxy API for SSH access. Then configure the Compute Engine servers with private IP addresses behind an HTTP(s) load balancer for the application web traffic.
D.
Set up a backend with Compute Engine web server instances with a private IP address behind an HTTP(S) load balancer. Set up a bastion host with a public IP address and open firewall ports. Connect to the web instances using the bastion host.
You have a mixture of packaged and internally developed applications hosted on a Compute Engine instance that is running Linux. These applications write log records as text in local files. You want the logs to be written to Cloud Logging. What should you do?
A.
Pipe the content of the files to the Linux Syslog daemon.
B.
Install a Google version of fluentd on the Compute Engine instance.
C.
Install a Google version of collectd on the Compute Engine instance.
D.
Using cron, schedule a job to copy the log files to Cloud Storage once a day.