Test
Google Cloud Professional Cloud Developer PT 1
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (20)
1You 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?- AA. gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
- BB. gcloud cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
- CC. hadoop fs cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
- DD. gcloud dataproc cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
2You migrated your applications to Google Cloud Platform and kept your existing monitoring platform. You now find that your notification system is too slow for time critical problems.
What should you do?- AA. Replace your entire monitoring platform with Stackdriver.
- BB. Install the Stackdriver agents on your Compute Engine instances.
- CC. Use Stackdriver to capture and alert on logs, then ship them to your existing platform.
- DD. Migrate some traffic back to your old platform and perform AB testing on the two platforms concurrently
3You are planning to migrate a MySQL database to the managed Cloud SQL database for Google Cloud. You have Compute Engine virtual machine instances that will connect with this Cloud SQL instance. You do not want to whitelist IPs for the Compute Engine instances to be able to access Cloud SQL. What should you do?
- AA. Enable private IP for the Cloud SQL instance.
- BB. Whitelist a project to access Cloud SQL, and add Compute Engine instances in the whitelisted project.
- CC. Create a role in Cloud SQL that allows access to the database from external instances, and assign the Compute Engine instances to that role.
- DD. Create a CloudSQL instance on one project. Create Compute engine instances in a different project. Create a VPN between these two projects to allow internal access to CloudSQL.
4You have deployed an HTTP(s) Load Balancer with the gcloud commands shown below.
Health checks to port 80 on the Compute Engine virtual machine instance are failing and no traffic is sent to your instances. You want to resolve the problem.
Which commands should you run?
- AA. gcloud compute instances add-access-config $ NAME -backend-instance-1
- BB. gcloud compute instances add-tags $ NAME -backend-instance-1 --tags http-server
- CC. gcloud compute firewall-rules create allow-lb --network load-balancer --allow tcp --source-ranges 130.211.0.0/22,35.191.0.0/16 --direction INGRESS
- DD. gcloud compute firewall-rules create allow-lb --network load-balancer --allow tcp --destination-ranges
130.211.0.0/22,35.191.0.0/16 --direction EGRESS
5Your website is deployed on Compute Engine. Your marketing team wants to test conversion rates between 3 different website designs.
Which approach should you use?- AA. Deploy the website on App Engine and use traffic splitting.
- BB. Deploy the website on App Engine as three separate services.
- CC. Deploy the website on Cloud Functions and use traffic splitting.
- DD. Deploy the website on Cloud Functions as three separate functions.
6You need to copy directory local-scripts and all of its contents from your local workstation to a Compute Engine virtual machine instance.
Which command should you use?- AA. gsutil cp --project my-gcp-project -r ~/local-scripts/ gcp-instance-name:~/server-scripts/ --zone us-east1-b
- BB. gsutil cp --project my-gcp-project -R ~/local-scripts/ gcp-instance-name:~/server-scripts/ --zone us-east1-b
- CC. gcloud compute scp --project my-gcp-project --recurse ~/local-scripts/ gcp-instance-name:~/server-scripts/
--zone us-east1-b - DD. gcloud compute mv --project my-gcp-project --recurse ~/local-scripts/ gcp-instance-name:~/server-scripts/ -
-zone us-east1-b
7You are deploying your application to a Compute Engine virtual machine instance with the Stackdriver Monitoring Agent installed. Your application is a unix process on the instance. You want to be alerted if the unix process has not run for at least 5 minutes. You are not able to change the application to generate metrics or logs.
Which alert condition should you configure?- AA. Uptime check
- BB. Process health
- CC. Metric absence
- DD. Metric threshold
8You have two tables in an ANSI-SQL compliant database with identical columns that you need to quickly combine into a single table, removing duplicate rows from the result set.
What should you do?- AA. Use the JOIN operator in SQL to combine the tables.
- BB. Use nested WITH statements to combine the tables.
- CC. Use the UNION operator in SQL to combine the tables.
- DD. Use the UNION ALL operator in SQL to combine the tables.
9You have an application deployed in production. When a new version is deployed, some issues don't arise until the application receives traffic from users in production. You want to reduce both the impact and the number of users affected.
Which deployment strategy should you use?- AA. Blue/green deployment
- BB. Canary deployment
- CC. Rolling deployment
- DD. Recreate deployment
10Your 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.)- AA. Create a multi-regional Cloud Spanner instance with "nam-asia-eur1" configuration.
- BB. Create a multi-regional Cloud Spanner instance with "nam3" configuration.
- CC. Create a cluster with at least 3 Spanner nodes.
- DD. Create a cluster with at least 1 Spanner node.
- EE. Create a minimum of two Cloud Spanner instances in separate regions with at least one node.
- FF. Create a Cloud Dataflow pipeline to replicate data across different databases
11You need to migrate an internal file upload API with an enforced 500-MB file size limit to App Engine. What should you do?
- AA. Use FTP to upload files.
- BB. Use CPanel to upload files.
- CC. Use signed URLs to upload files.
- DD. Change the API to be a multipart file upload API.
12You are planning to deploy your application in a Google Kubernetes Engine (GKE) cluster. The application exposes an HTTP-based health check at /healthz. You want to use this health check endpoint to determine whether traffic should be routed to the pod by the load balancer.
Which code snippet should you include in your Pod configuration?- AA.

- BB.

- CC.

- DD.

- AA.
13Your teammate has asked you to review the code below. Its purpose is to efficiently add a large number of small rows to a BigQuery table.
Which improvement should you suggest your teammate make?
- AA. Include multiple rows with each request.
- BB. Perform the inserts in parallel by creating multiple threads.
- CC. Write each row to a Cloud Storage object, then load into BigQuery.
- DD. Write each row to a Cloud Storage object in parallel, then load into BigQuery.
14You are developing a JPEG image-resizing API hosted on Google Kubernetes Engine (GKE). Callers of the service will exist within the same GKE cluster. You want clients to be able to get the IP address of the service.
What should you do?- AA. Define a GKE Service. Clients should use the name of the A record in Cloud DNS to find the service's cluster IP address.
- BB.Define a GKE Service. Clients should use the service name in the URL to connect to the service.
- CC.Define a GKE Endpoint. Clients should get the endpoint name from the appropriate environment variable in the client container.
- DD.Define a GKE Endpoint. Clients should get the endpoint name from Cloud DNS.
15You are using Cloud Build to build and test application source code stored in Cloud Source Repositories. The build process requires a build tool not available in the Cloud Build environment.
What should you do?- AA. Download the binary from the internet during the build process.
- BB. Build a custom cloud builder image and reference the image in your build steps.
- CC. Include the binary in your Cloud Source Repositories repository and reference it in your build scripts.
- DD. Ask to have the binary added to the Cloud Build environment by filing a feature request against the Cloud Build public Issue Tracker.
16You are deploying your application to a Compute Engine virtual machine instance. Your application is configured to write its log files to disk. You want to view the logs in Stackdriver Logging without changing the application code. What should you do?
- AA. Install the Stackdriver Logging Agent and configure it to send the application logs.
- BB. Use a Stackdriver Logging Library to log directly from the application to Stackdriver Logging.
- CC. Provide the log file folder path in the metadata of the instance to configure it to send the application logs.
- DD. Change the application to log to /var/log so that its logs are automatically sent to Stackdriver Logging.
17Your service adds text to images that it reads from Cloud Storage. During busy times of the year, requests to Cloud Storage fail with an HTTP 429 "Too Many
Requests" status code.
How should you handle this error?- AA. Add a cache-control header to the objects.
- BB. Request a quota increase from the GCP Console.
- CC. Retry the request with a truncated exponential backoff strategy.
- DD. Change the storage class of the Cloud Storage bucket to Multi-regional.
18You are building an API that will be used by Android and iOS apps. The API must:
* Support HTTPs
* Minimize bandwidth cost
* Integrate easily with mobile apps
Which API architecture should you use?- AA. RESTful APIs
- BB. MQTT for APIs
- CC. gRPC-based APIs
- DD. SOAP-based APIs
19Your application takes an input from a user and publishes it to the user's contacts. This input is stored in a table in Cloud Spanner. Your application is more sensitive to latency and less sensitive to consistency.
How should you perform reads from Cloud Spanner for this application?- AA. Perform Read-Only transactions.
- BB. Perform stale reads using single-read methods.
- CC. Perform strong reads using single-read methods.
- DD. Perform stale reads using read-write transactions.
20Your application is deployed in a Google Kubernetes Engine (GKE) cluster. When a new version of your application is released, your CI/CD tool updates the spec.template.spec.containers[0].image value to reference the Docker image of your new application version. When the Deployment object applies the change, you want to deploy at least 1 replica of the new version and maintain the previous replicas until the new replica is healthy.
Which change should you make to the GKE Deployment object shown below?
- AA.Set the Deployment strategy to RollingUpdate with maxSurge set to 0, maxUnavailable set to 1.
- BB.Set the Deployment strategy to RollingUpdate with maxSurge set to 1, maxUnavailable set to 0.
- CC.Set the Deployment strategy to Recreate with maxSurge set to 0, maxUnavailable set to 1.
- DD.Set the Deployment strategy to Recreate with maxSurge set to 1, maxUnavailable set to 0.
Información
- Descripción
- Curso Interno de Empresa Google Cloud Professional Cloud Developer Quiz Test sobre Google Cloud Professional Cloud Developer PT 1, creado por Emmanuel Jimenez el 15/04/2024.
- Autor
- Emmanuel Jimenez
- Idioma
- English
- Visitas
- 1
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test