Chapter 18; Monitoring, Logging and Cost Estimating Flashcards

1
Q

Which tool is used to:

Collect, Store, Filter and Display log data?

A

Stackdriver Logging

Logs can come from virtually any source. Logging keeps log data for 30 days. If you need to keep log data longer than that, then you need to export the data to a log sink.

Log sinks may be a Cloud Storage bucket, a BigQuery data set, or a Cloud Pub/Sub topic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What tool is used to provide distributed tracing services for developers to record trace data?

A

Cloud Trace

Trace data can be viewed as individual traces, or you can create reports that include parameters specifying a subset of traces to include.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which page can you go to to learn about the current health status of GCP services?

A

Google Cloud Platform Status page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which service can you make use of to provide estimates on the potential cost of setups in GCP?

A

GCP Pricing Calculator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. What Stackdriver service is used to generate alerts when the CPU utilization of a VM exceeds 80 percent?
  2. Logging
  3. Monitoring
  4. Cloud Trace
  5. Cloud Debug
A

Answer = B

The Monitoring service is used to set a threshold on metrics and generate alerts when a metric exceeds the threshold for a specified period of time, so option B is correct.

Option A is incorrect; Logging is for collecting logged events.

Option C is incorrect; Cloud Trace is for application tracing.

Option D is incorrect; Debug is used to debug applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. You have just created a virtual machine, and you’d like Stackdriver Monitoring to alert you via email whenever the CPU average utilization exceeds 75 percent for 5 minutes. What do you need to do to the VM to have this happen?
  2. Install a Stackdriver workspace
  3. Install the Stackdriver monitoring agent on the VM
  4. Edit the VM configuration in Cloud Console and check the Monitor With Stackdriver checkbox
  5. Set a notification channel
A

Answer = B

You must install the monitoring agent on the VM. The agent will collect data and send it to Stackdriver, so option B is correct.

Option A is incorrect because a Workspace is not installed on a VM; it is created in Stackdriver.

Option C is incorrect; there is no Monitor With Stackdriver check box in the VM configuration form.

Option D is incorrect because you set notification channels in Stackdriver, not on a VM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. Stackdriver can be used to monitor resources where?
  2. In Google Cloud Platform only
  3. In Google Cloud Platform and Amazon Web Services only
  4. In Google Cloud Platform and on premises data centers
  5. In Google Cloud Platform, Amazon Web Services, and on premises data centers
A

Answer = D

Stackdriver can monitor resources in GCP, AWS, and in on-premise data centers, so option D is correct.

Options A through C are incorrect because they do not include two other correct options.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. Grouping a set of metrics that arrive in a period of time into regular-sized buckets is called what?
  2. Aggregation
  3. Alignment
  4. Minimization
  5. Consolidation
A

Answer = B

Aligning is the process of separating data points into regular buckets, so option B is correct.

Option A is incorrect; aggregation is used to combine data points using a statistic, such as mean.

Options C and D are incorrect; they are not processes related to processing streams of metric data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  1. You have created a condition of CPU utilization, and you want to receive notifications. Which of the following are options?
  2. Email only
  3. PagerDuty only
  4. Hipchat and PagerDuty
  5. Email, PagerDuty, and Hipchat
A

Answer = D

All three options are valid notification channels in Stackdriver Monitoring, so option D is correct.

PagerDuty and HipChat are popular DevOps tools.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  1. When you create a policy to notify you of a potential problem with your infrastructure, you can specify optional documentation. Why would you bother putting documentation in that form?
  2. It is saved to Cloud Storage for future use.
  3. It can help you or a colleague understand the purpose of the policy.
  4. It can contain information that would help someone diagnose and correct the problem.
  5. Options B and C.
A

Answer = D

The documentation is useful for documenting the purpose of the policy and for providing guidance for solving the problem, so option D is correct.

Option A is incorrect; where a policy is stored is irrelevant to its usefulness.

Options B and C alone are partially correct, but option D is a better answer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. What is alert fatigue, and why is it a problem?
  2. Too many alert notifications are sent for events that do not require human intervention, and eventually DevOps engineers begin to pay less attention to notifications.
  3. Too many alerts put unnecessary load on your systems.
  4. Too few alerts leave DevOps engineers uncertain of the state of your applications and infrastructure.
  5. Too many false alerts
A

Answer = A

Alert fatigue is a state caused by too many alert notifications being sent for events that do not require human intervention, so option A is correct. This creates the risk that eventually DevOps engineers will begin to pay less attention to notifications.

Option B is incorrect, although it is conceivable that too many alerts could adversely impact performance, but that is not likely.

Option C is a potential problem, too, but that is not alert fatigue.

Option D is incorrect because too many true alerts contribute to alert fatigue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. How long is log data stored in Stackdriver Logging?
  2. 7 days
  3. 15 days
  4. 30 days
  5. 60 days
A

Answer = C

Stackdriver logging stores logs for 30 days. Storinglogs for a prolonged period will demand an archiving solution to relocate/copy the files to a suitable storage location. Option C is correct.

Option A, B and D are incorrect as they are the wrong period of time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. You need to store log entries for a longer period of time than Stackdriver Logging retains them. What is the best option for preserving log data?
  2. There is no option; once the data retention period passes, Stackdriver Logging deletes the data.
  3. Create a log sink and export the log data using Stackdriver Logging’s export functionality.
  4. Write a Python script to use the Stackdriver API to write the data to Cloud Storage.
  5. Write a Python script to use the Stackdriver API to write the data to BigQuery.
A

Answer = B

The best option is to use Stackdriver Logging’s export functionality to write log data to a log sink, so option B is correct.

Option A is incorrect; there is a way to export data.

Options C and D are incorrect because writing a custom script would take more time to develop and maintain than using Logging’s export functionality.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  1. Which of the following are options for logging sinks?
  2. Cloud Storage bucket only
  3. BigQuery dataset and Cloud Storage bucket only
  4. Cloud Pub/Sub topic only
  5. Cloud Storage bucket, BigQuery dataset, and Cloud Pub/Sub topic
A

Answer= D

All three, Cloud Storage buckets, BigQuery data sets, and Cloud Pub/Sub topics, are available as sinks for logging exports, so option D is correct.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  1. Which of the following can be used to filter log entries when viewing logs in Stackdriver Logging?
  2. Label or text search only
  3. Resource type and log type only
  4. Time and resource type only
  5. Label or text search, resource type, log type, and time
A

Answer = D

All of the options listed can be used to filter, so option D is correct. Log level is another option as well.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  1. Which of the following is not a standard log level that can be used to filter log viewings?
  2. Critical
  3. Halted
  4. Warning
  5. Info
A

Answer = B

The correct answer, option B, is halted. There is no such standard log level status. Statuses include Critical, Error, Warning, Info, and Debug.

17
Q
  1. You are viewing log entries and spot one that looks suspicious. You are not familiar with the kind of log entry, and you want to see the complete details of the log entry as quickly as possible. What would you do?
  2. Drill down one by one into each structure in the log entry.
  3. Click Expand all to show all details.
  4. Write a Python script to reformat the log entry.
  5. Click the Show Detail link next to the log entry.
A

Answer = B

The fastest way to see the details is to expand all levels of structured data in the entry, so option B is correct.

Option A would show the details, but it is not the fastest way.

Option C is more time-consuming than using the functionality built into Stackdriver Logging.

Option D is incorrect; there is no such link.

18
Q
  1. What Stackdriver service is best for identifying where bottlenecks exist in your application?
  2. Monitoring
  3. Logging
  4. Trace
  5. Debug
A

Answer = C

Cloud Trace is a distributed tracing application that provides details on how long different parts of code run, so option C is correct.

Option A is incorrect; monitoring is used to notify DevOps engineers when resources are not functioning as expected.

Option B is incorrect; Logging is for collecting, storing, and viewing log data, and although log entries might help diagnose bottlenecks, it is not specifically designed for that.

Option D is incorrect; Debug is used to generate snapshots and inject logpoints.

19
Q
  1. There is a bug in a microservice. You have reviewed application outputs but cannot identify the problem. You decide you need to step through the code. What Stackdriver service would you use to give you insight into the status of the services at particular points in execution?
  2. Monitoring
  3. Logging
  4. Trace
  5. Debug
A

Answer = D

Debug is used to generate snapshots that provide a view of the status of an application at a particular point in its execution, so option D is correct.

Option A is incorrect; monitoring is used to notify DevOps engineers when resources are not functioning as expected.

Option B is incorrect; Logging is for collecting, storing, and viewing log data.

Option C is incorrect because Cloud Trace is a distributed tracing application that provides details on how long different parts of code run.

20
Q
  1. You believe there may be a problem with BigQuery in the us-central zone. Where would you go to check the status of the BigQuery service for the quickest access to details?
  2. Email Google Cloud Support.
  3. Check https://status.cloud.google.com/.
  4. Check https://bigquery.status.cloud.google.com/.
  5. Call Google tech support.
A

Answer = B

The Google Cloud Status Dashboard at https://status.cloud.google.com/ has information on the status of GCP services, so option B is correct.

Options A and B might lead to information, but they would take longer.

Option C is not a link to a source of information on BigQuery.

21
Q
  1. You would like to estimate the cost of GCP resources you will be using. Which services would require you to have information on the virtual machines you will be using?
  2. Compute Engine and BigQuery
  3. Compute Engine and Kubernetes Engine
  4. BigQuery and Kubernetes Engine
  5. BigQuery and Cloud Pub/Sub
A

Answer = B

Both Compute Engine and Kubernetes Engine will require details about the VMs’ configurations, so option B is correct.

The other options are incorrect because BigQuery and Cloud Pub/Sub are serverless services.

22
Q
  1. You are generating an estimate of the cost of using BigQuery. One of the parameters is Query Pricing. You have to specify a value in TB units. What is the value you are specifying?
  2. The amount of data stored in BigQuery
  3. The amount of data returned by the query
  4. The amount of data processed/scanned by the query
  5. The amount of data in Cloud Storage bucket
A

Answer = C

Query pricing in BigQuery is based on the amount of data scanned, so option C is correct.

Option A is incorrect; the amount of data storage is specified in the Storage Pricing section.

Option B is incorrect; query pricing is not based on the volume of data returned.

Option D is incorrect because this is not related to Cloud Storage.

23
Q
  1. Why do you need to specify the operating system to be used when estimating the cost of a VM?
  2. All operating systems are charged a fixed rate.
  3. Some operating systems incur a cost.
  4. It’s not necessary; it is only included for documentation.
  5. To estimate the cost of Bring Your Own License configurations.
A

Answer = B

Some operating systems, like Microsoft Windows Server, require a license, so option B is correct. Google sometimes has arrangements with vendors to collect fees for using proprietary software.

Option A is incorrect; there is no fixed rate charge for operating systems.

Option C is incorrect; the information is sometimes needed to compute charges.

Option D is incorrect because if you Bring Your Own License, there is no additional license charge.

24
Q
  1. You want to create a custom metric for use in Stackdriver Monitoring but do not want to use the low-level Stackdriver API. What is an alternative open source option for working with custom metrics?
  2. Prometheus
  3. OpenCensus
  4. Grafana
  5. Nagios
A

Answer = B

OpenCensus is a library for developing custom metrics that can be used with Stackdriver Logging, so option B is correct.

Option A is incorrect; Prometheus is an open source monitoring tool, but it is not used to define custom metrics in Stackdriver Monitoring.

Option C is incorrect; Grafana is a visualization tools for Prometheus.

Option D is incorrect; Nagios is an open source monitoring and alerting service, but it is not used for defining custom metrics in Stackdriver Logging.