GCP Stackdriver Flashcards
What are the services in GCP Stackdriver (ML-TEDP)?
It is GCP suit of tools for (ML-TEDP)
- Monitoring
- Logging
- Tracking
- Error reporting
- Debugging
- Profiling
Can I use stack driver for AWS?
Yes AWS is supported
In Stackdriver do I have to manually discover resources?
No, this is automatic
Can I use Stackdriver monitoring for logging?
No, you have to use Strackdriver logging
Can I use Stackdriver logging for metrics?
No, you would use Stackdriver logging
What does Stackdriver Trace do?
Enables you to find the bottleneck in your application
Is Stackdriver centralized?
Yes
Is there third party integration available for Stackdriver?
Yes
-Splunk
Hipchat
-ect
Should I use Stackdriver by placing in an existing project?
No, It is best practice to keep Stackdriver in a separate project for monitoring, logging, etc purpose.
Is Stackdriver monitoring a full stack monitoring solution, able to monitor virtual, oS and application level?
Yes, 100%
Can I use aws monitoring in stackdriver for AWS on basic teir?
No you need premium tier
What is monitoring?
Enables you to capture and store metrics fro full stack.
What is logging?
Enables you t capture logs from GCP, systems and apps.
What is tracing?
Enables you to to find latency across components in your web app.
What is error reporting in stackdriver?
if an application has a exceptions, the line of code the exception happens in is captured.
What types of logs are captured?
Admin activity : Modidiy config or metadata
System activity: System events like live migration
Data Access: Data access
What types of logs are captured?
- Admin activity : Modidiy config or metadata
- System activity: System events like live migration
- Data Access: Data access
What is the retention period?
- Admin activity: 400
- System activity: 30
- Data access: 400
What are the different audit logs?
They are the normal GCP logs,
- Admin activity
- System activity
- Data access
I want to retain my logs for 10 years, do I need to do anything?
Yes logs are only stored for 400 for Admin activity, 30 for system and 400 for data access, you can set up export of logs for bigquery, cloud storage and cloud pub/sub.
What is an uptime check?
It is a check prefromed by stackdriver to check if stackdriver can call your web app running on an instance, this ensure your web app is reachable.
What is an alerting policy?
It is a policy that is used to alert an user to an event such as uptime check failed.
I have an auditor coming in to do an audit on my GCP resources, what IAM role do I need to asign?
- Logging
- Log view
- Project view
I want to save may logs for long term, what options so i have?
- Cloud Storage
- BigQuery
- Pub/Sub
What is a log based-metric?
It enables you to create metric values from the logs?
How do I enable data access logs?
You have to edit the iam-access policy for the project
Is Error Reporting realtime?
Yes
Can I use Stackdriver trace with a VM?
Yes you can use a lib in code sot send info to CP Stackdriver Trace
Can debugger be used with non GCP resources?
Yes
I need to alert when a instance becomes unresponsive, what options do I have?,
Use stackdriver monitoring and create an alert when the service goes down.
I need to check if my server with apache is up and working, what stack driver options do I have?
I can create an uptime check, have it ping every 5min with an HTTP request.
I need to have my uptime check send me an email with it fails, what options do I have?
You can create an alert policy and have it send an email or an SMS message.
Do I require stack river monitoring and logging agent to be installed?
No, but if you do install the agent you will get enhanced information.
What are the types of logs available for viewing with stackdriver?
-Admin audit
-System audit
-
I am advising my team on using stack driver for a new up coming project, what is the best practice for stackdriver?
Put stack driver in a separate project.
I need to see the number of requests, network traffic received and sent for a Cloud storage bucket, what is my option?
Use stack driver monitoring
What other application software is supported by stackdriver monitoring?
apache, nginx, tomcat, iis
I need to trigger an alert on a monitored instance, what options do I have/
Monitorng can set alerts
Do I need to refresh and discover instances after adding for stackdriver?
No stack driver automatically discovers new resources in GCP
I require the ability to see if my application is accessable from different locations around the world, what options do I have in stackdriver?
Use stackdriver monitoring uptime.
What is an alert policy?
An alert policy is a policy you set on a resource metric or on a uptime check
I wnat to be alerted when i receive activity logs from an instance, what options do I have?
I can create a log-based-metric and then set this up in the monitoring for alerting.
What are the alert channels available ins stackdriver monitoring?
- Mobile App
- Page duty (Third party)
- SMS
- Slack
- Campfire
- HipChat
- WebHook
Can I send stackdriver logging my log data from a custum app?
Yes stack driver api cna be used.
Do I need to install logging agent on my instance?
Yes you have to install the logginh agent on you instances, the logging agent is fluentd
I need alerts on stackdriver logging how cna i acheive this?
Create a log-metric
I wnat to analize my log data with SQL, what is my options?
You cna one click the data to BigQuery.
I ant to use dataflow to realtime analize my logs, how can i acheive this?
Use pub/dub with stackdriver logging and hook pub/sub with datraflow.
How long are logs retained for ?
- Adin activity logs 400 day
- System events 30 days
- Data access 400 days
Data stackdriver logging sinks have we available?
- BigQuery
- Pub/Sub
- Cloud storage
What types of logs have we in GCP?
- Admin activity logs
- System event logs
- Data access logs
If I am concerned about log injestion size, what options do i have for alerting?
You can set up injection alerting on the logs
I wnat to see logs in realtime to help debug and issue, what optiosn do I have?
Stackdriver logging as a feature to enable and disable realtime log viewing.
What are audit logs?
- Admin activity logs
- System event logs
- Data access logs
When exporting stackdriver logging data using a sink, can i filter on the dat i need?
Yes
What is stackdriver error reporting?
It is app exception reporting, it cataches any exceptions in your application and logs them in error reporting so you knwo even the line of code tthe eror occured on.
Do I need to turn on error reporting for app engine stgandard?
No, it is turned on by default.
I wna to use stackdriver error reporting for Google kubernetes engine, is this possible?
Yes, I can install the agent
What is stackdriver trace?
Enables me to see bottlenecks across components in my stack
Do I need to enable stackdriver trace for app engine standard environment?
No, it is enablers by default.
Can sstackdriver trace be installed for non GCP resources?
Yes.
I would like to have error reporting alert me if there are new error, can I do this?
Yes error reporting has the function for you to set up an alert, an email will be send if a new error comes in.