Google Professional-Cloud-Architect Exam Practice Questions (P. 1)
- Full Access (551 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #1
Your company has decided to make a major revision of their API in order to create better experiences for their developers. They need to keep the old version of the API available and deployable, while allowing new customers and testers to try out the new API. They want to keep the same SSL and DNS records in place to serve both APIs.
What should they do?
What should they do?
- AConfigure a new load balancer for the new version of the API
- BReconfigure old clients to use a new endpoint for the new API
- CHave the old API forward traffic to the new API based on the path
- DUse separate backend pools for each API path behind the load balancerMost Voted
Correct Answer:
D
D
send
light_mode
delete
Question #2
Your company plans to migrate a multi-petabyte data set to the cloud. The data set must be available 24hrs a day. Your business analysts have experience only with using a SQL interface.
How should you store the data to optimize it for ease of analysis?
How should you store the data to optimize it for ease of analysis?
- ALoad data into Google BigQueryMost Voted
- BInsert data into Google Cloud SQL
- CPut flat files into Google Cloud Storage
- DStream data into Google Cloud Datastore
Correct Answer:
A
BigQuery is Google's serverless, highly scalable, low cost enterprise data warehouse designed to make all your data analysts productive. Because there is no infrastructure to manage, you can focus on analyzing data to find meaningful insights using familiar SQL and you don't need a database administrator.
BigQuery enables you to analyze all your data by creating a logical data warehouse over managed, columnar storage as well as data from object storage, and spreadsheets.
Reference:
https://cloud.google.com/bigquery/
A
BigQuery is Google's serverless, highly scalable, low cost enterprise data warehouse designed to make all your data analysts productive. Because there is no infrastructure to manage, you can focus on analyzing data to find meaningful insights using familiar SQL and you don't need a database administrator.
BigQuery enables you to analyze all your data by creating a logical data warehouse over managed, columnar storage as well as data from object storage, and spreadsheets.
Reference:
https://cloud.google.com/bigquery/
send
light_mode
delete
Question #3
The operations manager asks you for a list of recommended practices that she should consider when migrating a J2EE application to the cloud.
Which three practices should you recommend? (Choose three.)
Which three practices should you recommend? (Choose three.)
- APort the application code to run on Google App Engine
- BIntegrate Cloud Dataflow into the application to capture real-time metrics
- CInstrument the application with a monitoring tool like Stackdriver DebuggerMost Voted
- DSelect an automation framework to reliably provision the cloud infrastructureMost Voted
- EDeploy a continuous integration tool with automated testing in a staging environmentMost Voted
- FMigrate from MySQL to a managed NoSQL database like Google Cloud Datastore or Bigtable
Correct Answer:
ADE
References:
https://cloud.google.com/appengine/docs/standard/java/tools/uploadinganapp https://cloud.google.com/appengine/docs/standard/java/building-app/cloud-sql
ADE
References:
https://cloud.google.com/appengine/docs/standard/java/tools/uploadinganapp https://cloud.google.com/appengine/docs/standard/java/building-app/cloud-sql
send
light_mode
delete
Question #4
A news feed web service has the following code running on Google App Engine. During peak load, users report that they can see news articles they already viewed.
What is the most likely cause of this problem?

What is the most likely cause of this problem?

- AThe session variable is local to just a single instanceMost Voted
- BThe session variable is being overwritten in Cloud Datastore
- CThe URL of the API needs to be modified to prevent caching
- DThe HTTP Expires header needs to be set to -1 stop caching
Correct Answer:
A
A
send
light_mode
delete
Question #5
An application development team believes their current logging tool will not meet their needs for their new cloud-based product. They want a better tool to capture errors and help them analyze their historical log data. You want to help them find a solution that meets their needs.
What should you do?
What should you do?
- ADirect them to download and install the Google StackDriver logging agent
- BSend them a list of online resources about logging best practices
- CHelp them define their requirements and assess viable logging toolsMost Voted
- DHelp them upgrade their current tool to take advantage of any new features
Correct Answer:
C
C
send
light_mode
delete
Question #6
You need to reduce the number of unplanned rollbacks of erroneous production deployments in your company's web hosting platform. Improvement to the QA/
Test processes accomplished an 80% reduction.
Which additional two approaches can you take to further reduce the rollbacks? (Choose two.)
Test processes accomplished an 80% reduction.
Which additional two approaches can you take to further reduce the rollbacks? (Choose two.)
- AIntroduce a green-blue deployment modelMost Voted
- BReplace the QA environment with canary releases
- CFragment the monolithic platform into microservicesMost Voted
- DReduce the platform's dependency on relational database systems
- EReplace the platform's relational database systems with a NoSQL database
Correct Answer:
AC
AC
send
light_mode
delete
Question #7
To reduce costs, the Director of Engineering has required all developers to move their development infrastructure resources from on-premises virtual machines
(VMs) to Google Cloud Platform. These resources go through multiple start/stop events during the day and require state to persist. You have been asked to design the process of running a development environment in Google Cloud while providing cost visibility to the finance department.
Which two steps should you take? (Choose two.)
(VMs) to Google Cloud Platform. These resources go through multiple start/stop events during the day and require state to persist. You have been asked to design the process of running a development environment in Google Cloud while providing cost visibility to the finance department.
Which two steps should you take? (Choose two.)
- AUse the - -no-auto-delete flag on all persistent disks and stop the VM
- BUse the - -auto-delete flag on all persistent disks and terminate the VM
- CApply VM CPU utilization label and include it in the BigQuery billing export
- DUse Google BigQuery billing export and labels to associate cost to groupsMost Voted
- EStore all state into local SSD, snapshot the persistent disks, and terminate the VMMost Voted
- FStore all state in Google Cloud Storage, snapshot the persistent disks, and terminate the VM
Correct Answer:
AD
AD
send
light_mode
delete
Question #8
Your company wants to track whether someone is present in a meeting room reserved for a scheduled meeting. There are 1000 meeting rooms across 5 offices on 3 continents. Each room is equipped with a motion sensor that reports its status every second. The data from the motion detector includes only a sensor ID and several different discrete items of information. Analysts will use this data, together with information about account owners and office locations.
Which database type should you use?
Which database type should you use?
- AFlat file
- BNoSQLMost Voted
- CRelational
- DBlobstore
Correct Answer:
B
Relational databases were not designed to cope with the scale and agility challenges that face modern applications, nor were they built to take advantage of the commodity storage and processing power available today.
NoSQL fits well for:
✑ Developers are working with applications that create massive volumes of new, rapidly changing data types ג€" structured, semi-structured, unstructured and polymorphic data.
Incorrect Answers:
D: The Blobstore API allows your application to serve data objects, called blobs, that are much larger than the size allowed for objects in the Datastore service.
Blobs are useful for serving large files, such as video or image files, and for allowing users to upload large data files.
Reference:
https://www.mongodb.com/nosql-explained
B
Relational databases were not designed to cope with the scale and agility challenges that face modern applications, nor were they built to take advantage of the commodity storage and processing power available today.
NoSQL fits well for:
✑ Developers are working with applications that create massive volumes of new, rapidly changing data types ג€" structured, semi-structured, unstructured and polymorphic data.
Incorrect Answers:
D: The Blobstore API allows your application to serve data objects, called blobs, that are much larger than the size allowed for objects in the Datastore service.
Blobs are useful for serving large files, such as video or image files, and for allowing users to upload large data files.
Reference:
https://www.mongodb.com/nosql-explained
send
light_mode
delete
Question #9
You set up an autoscaling instance group to serve web traffic for an upcoming launch. After configuring the instance group as a backend service to an HTTP(S) load balancer, you notice that virtual machine (VM) instances are being terminated and re-launched every minute. The instances do not have a public IP address.
You have verified the appropriate web response is coming from each instance using the curl command. You want to ensure the backend is configured correctly.
What should you do?
You have verified the appropriate web response is coming from each instance using the curl command. You want to ensure the backend is configured correctly.
What should you do?
- AEnsure that a firewall rules exists to allow source traffic on HTTP/HTTPS to reach the load balancer.
- BAssign a public IP to each instance and configure a firewall rule to allow the load balancer to reach the instance public IP.
- CEnsure that a firewall rule exists to allow load balancer health checks to reach the instances in the instance group.Most Voted
- DCreate a tag on each instance with the name of the load balancer. Configure a firewall rule with the name of the load balancer as the source and the instance tag as the destination.
Correct Answer:
C
The best practice when configuration a health check is to check health and serve traffic on the same port. However, it is possible to perform health checks on one port, but serve traffic on another. If you do use two different ports, ensure that firewall rules and services running on instances are configured appropriately. If you run health checks and serve traffic on the same port, but decide to switch ports at some point, be sure to update both the backend service and the health check.
Backend services that do not have a valid global forwarding rule referencing it will not be health checked and will have no health status.
Reference:
https://cloud.google.com/compute/docs/load-balancing/http/backend-service
C
The best practice when configuration a health check is to check health and serve traffic on the same port. However, it is possible to perform health checks on one port, but serve traffic on another. If you do use two different ports, ensure that firewall rules and services running on instances are configured appropriately. If you run health checks and serve traffic on the same port, but decide to switch ports at some point, be sure to update both the backend service and the health check.
Backend services that do not have a valid global forwarding rule referencing it will not be health checked and will have no health status.
Reference:
https://cloud.google.com/compute/docs/load-balancing/http/backend-service
send
light_mode
delete
Question #10
You write a Python script to connect to Google BigQuery from a Google Compute Engine virtual machine. The script is printing errors that it cannot connect to
BigQuery.
What should you do to fix the script?
BigQuery.
What should you do to fix the script?
- AInstall the latest BigQuery API client library for Python
- BRun your script on a new virtual machine with the BigQuery access scope enabled
- CCreate a new service account with BigQuery access and execute your script with that user
- DInstall the bq component for gcloud with the command gcloud components install bq.
Correct Answer:
B
B
send
light_mode
delete
All Pages