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.
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.
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.
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
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.
Navigate to the Activity page in the Home section. Set category to Data Access and search for Create
VM entry.
Page 11 out of 51 Pages |
Previous |