Professional-Cloud-Architect Exam Questions

Total 251 Questions

Last Updated Exam : 22-Oct-2024

Topic 5, Misc Questions

A small number of API requests to your microservices-based application take a very long time. You know that
each request to the API can traverse many services. You want to know which service takes the longest in those
cases. What should you do?


A.

Set timeouts on your application so that you can fail requests faster.


B.

Send custom metrics for each of your requests to Stackdriver Monitoring.


C.

Use Stackdriver Monitoring to look for insights that show when your API latencies are high.


D.

Instrument your application with Stackdnver Trace in order to break down the request latencies at each
microservice.





D.
  

Instrument your application with Stackdnver Trace in order to break down the request latencies at each
microservice.



https://cloud.google.com/trace/docs/overview

You are creating a solution to remove backup files older than 90 days from your backup Cloud Storage bucket. You want to optimize ongoing Cloud Storage spend. What should you do?


A.

Write a lifecycle management rule in XML and push it to the bucket with gsutil.


B.

Write a lifecycle management rule in JSON and push it to the bucket with gsutil.


C.

Schedule a cron script using gsutil is -lr gs://backups/** to find and remove items older than 90 days.


D.

Schedule a cron script using gsutil ls -1 gs://backups/** to find and remove items older than 90 days and
schedule it with cron.





B.
  

Write a lifecycle management rule in JSON and push it to the bucket with gsutil.



https://cloud.google.com/storage/docs/gsutil/commands/lifecycle
Question #:

One of your primary business objectives is being able to trust the data stored in your application. You want to log all changes to the application data. How can you design your logging system to verify authenticity of your logs?


A.

Write the log concurrently in the cloud and on premises.


B.

Use a SQL database and limit who can modify the log table.


C.

Digitally sign each timestamp and log entry and store the signature.


D.

Create a JSON dump of each log entry and store it in Google Cloud Storage.





D.
  

Create a JSON dump of each log entry and store it in Google Cloud Storage.



https://cloud.google.com/storage/docs/access-logs

You have created several preemptible Linux virtual machine instances using Google Compute Engine. You
want to properly shut down your application before the virtual machines are preempted. What should you do?


A.

Create a shutdown script named k99.shutdown in the /etc/rc.6.d/ directory.


B.

Create a shutdown script registered as a xinetd service in Linux and configure a Stackdnver endpoint
check to call the service.


C.

Create a shutdown script and use it as the value for a new metadata entry with the key shutdown-script
in the Cloud Platform Console when you create the new virtual machine instance.


D.

Create a shutdown script, registered as a xinetd service in Linux, and use the gcloud compute instances
add-metadata command to specify the service URL as the value for a new metadata entry with the key
shutdown-script-url





C.
  

Create a shutdown script and use it as the value for a new metadata entry with the key shutdown-script
in the Cloud Platform Console when you create the new virtual machine instance.



https://cloud.google.com/compute/docs/shutdownscript

A recent audit that a new network was created in Your GCP project. In this network, a GCE instance has an SSH port open the world. You want to discover this network's origin. What should you do?


A.

Search for Create VM entry in the Stackdriver alerting console.


B.

Navigate to the Activity page in the Home section. Set category to Data Access and search for Create
VM entry.


C.

In the logging section of the console, specify GCE Network as the logging section. Search for the Create
Insert entry.


D.

Connect to the GCE instance using project SSH Keys. Identify previous logins in system logs, and
match these with the project owners list.





B.
  

Navigate to the Activity page in the Home section. Set category to Data Access and search for Create
VM entry.



A production database virtual machine on Google Compute Engine has an ext4-formatted persistent disk for data files The database is about to run out of storage space How can you remediate the problem with the least amount of downtime?


A.

In the Cloud Platform Console, increase the size of the persistent disk and use the resize2fs command in
Linux.


B.

Shut down the virtual machine, use the Cloud Platform Console to increase the persistent disk size, then
restart the virtual machine.


C.

In the Cloud Platform Console, increase the size of the persistent disk and verify the new space is ready
to use with the fdisk command in Linux.


D.

In the Cloud Platform Console, create a new persistent disk attached to the virtual machine, format and
mount it, and configure the database service to move the files to the new disk.


E.

In the Cloud Platform Console, create a snapshot of the persistent disk, restore the snapshot to a new
larger disk, unmount the old disk, mount the new disk, and restart the database service





A.
  

In the Cloud Platform Console, increase the size of the persistent disk and use the resize2fs command in
Linux.



Your company has decided to build a backup replica of their on-premises user authentication PostgreSQL
database on Google Cloud Platform. The database is 4 TB, and large updates are frequent. Replication requires private address space communication. Which networking approach should you use?


A.

Google Cloud Dedicated Interconnect


B.

Google Cloud VPN connected to the data center network


C.

A NAT and TLS translation gateway installed on-premises


D.

A Google Compute Engine instance with a VPN server installed connected to the data center network





B.
  

Google Cloud VPN connected to the data center network



https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations

Your marketing department wants to send out a promotional email campaign. The development team wants to
minimize direct operation management. They project a wide range of possible customer responses, from 100
to 500,000 click-throughs per day. The link leads to a simple website that explains the promotion and collects
user information and preferences. Which infrastructure should you recommend?


A.

Use Google App Engine to serve the website and Google Cloud Datastore to store user data.


B.

Use a Google Container Engine cluster to serve the website and store data to persistent disk.


C.

Use a managed instance group to serve the website and Google Cloud Bigtable to store user data.


D.

Use a single compute Engine virtual machine (VM) to host a web server, backed by Google Cloud SQL.





A.
  

Use Google App Engine to serve the website and Google Cloud Datastore to store user data.



Your customer is receiving reports that their recently updated Google App Engine application is taking
approximately 30 seconds to load for some of their users. This behavior was not reported before the update. What strategy should you take?


A.

Work with your ISP to diagnose the problem.


B.

Open a support ticket to ask for network capture and flow data to diagnose the problem, then roll back
your application.


C.

Roll back to an earlier known good release initially, then use Stackdriver Trace and logging to diagnose
the problem in a development/test/staging environment.


D.

Roll back to an earlier known good release, then push the release again at a quieter period to investigate.
Then use Stackdriver Trace and logging to diagnose the problem.





D.
  

Roll back to an earlier known good release, then push the release again at a quieter period to investigate.
Then use Stackdriver Trace and logging to diagnose the problem.



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?


A.

Install the latest BigQuery API client library for Python


B.

Run your script on a new virtual machine with the BigQuery access scope enabled
Create a new service account with BigQuery access and execute your script with that user
Install the bq component for gccloud with the command gcloud components install bq.


C.

Create a new service account with BigQuery access and execute your script with that user


D.

Install the bq component for gccloud with the command gcloud components install bq.





A.
  

Install the latest BigQuery API client library for Python




Page 6 out of 26 Pages
Previous