Deck 1 Flashcards
What is the standard naming convention of process metrics in Datadog?
system.processes.xx
If the log_level is set to “Info” in Datadog, which types of logs will be printed and sent for monitoring?
Logs with error, warning and info levels.
When configuring an alert condition, what does the “Trigger Rate” option refer to?
The number of times the alert is triggered.
Where can we change the minimum collection interval for custom checks?
custom_check_1.yaml
What does “Notify No Data” mean in alert conditions?
send an alert when no metric data is available.
What is the typical location of the conf.d folder on a Linux system?
/etc/datadog-agent/conf.d
Which variable is required to enable the logs in datadog config file?
logs_enabled:true
Which is the default site configured for the datadog?
datadoghq.com
What does the “rollup” option allow you to control in a timeseries query?
The direction of data aggregation
Which component of a custom check in Datadog typically contains the logic for data collection, processing, and metric reporting?
Python script(check.py)
Which variable should you use to store the API key when checking if it’s defined in DataDog’s configuration file?
api_key
What is the purpose of using JSON in timeseries queries in Datadog?
to format and structure query results.
The team has updated the custom metrics configuration file and wants to see the new metrics in Datadog. What should be done?
The agent needs to be restarted after every configuration change.
What will the outcome of the Python code below be?
- # Using a for loop with simple conditions and break
- numbers = [10, 7, 12]
- for num in numbers:
- if num == 5:
- print(“Found the number”)
- break
- elif num < 5:
- print(f”{num} is less than 5”)
- else:
- print(f”{num} is greater than 5”)
10 is greater than 5
7 is greater than 5
12 is greater than 5
How does the “Threshold Count” parameter work in alert conditions?
it requires the threshold to be met for a certain number of consecutive periods.
What is the role of the “facet” option in a JSON-formatted timeseries query?
It groups the data by a specific attribute or tag.
What is the purpose of setting a “Recovery Threshold” in an alert condition?
to set a threshold for recovering from an alert state.
Which Datadog feature helps in tracing API requests across distributed systems?
Distributed tracing
In a JSON-formatted timeseries query, what does the “unit” attribute control?
The measurement unit associated with the metric.
If you need to send data from the same host where your application is running, which value should you typically use for the statsd_host configuration?
localhost
How can you automate the creation of Datadog monitors and dashboards using IAAC(Infrastructure as a code)?
Terraform
Datadog has support with terraform which makes it easy to automate the process of creating the dashboards & monitors.
When setting up “Custom Time of Day” for alert conditions, what are you defining?
The time range of sending alert notifications.
What is the purpose of setting “Isolated Time Windows” for an alert condition?
To trigger alerts only during specific time ranges.
TRUE OR FALSE
The warning threshold must always be less than the Alert threshold value.
TRUE
Which is the default datadog agent user for the Linux system?
datadog-agent
The Datadog Agent does not run as root (and running as root is not recommended, as a general best practice).
Which site should you configure in the Datadog Agent for the EU region?
datadoghq.eu
What are the default roles in Datadog?
(Select the correct ones)
- Datadog read-only role
- Datadog standard role
- Datadog admin role
- All of the above
Datadog read-only role
Datadog standard role
Datadog admin role
The answer is All of the above
Datadog by default provides three roles.
How can you enable Live Process Monitoring for Windows processes? What parameter should you set to ‘true’ in the Agent main configuration file on Windows?
- process_config:
- enabled: “true”
What Datadog feature provides a visual representation of your infrastructure, displaying hosts and their relationships based on tags, making it easier to identify trends and anomalies?
Infrastructure map
In Datadog, what are advanced alert conditions used for?
To define complex conditions for triggering alerts.
In Datadog, what visualization tool is used to display aggregated metrics over time, allowing you to identify patterns and trends in your application’s performance?
Heatmaps
What is the main purpose of an “Alarm” in Datadog?
Notifying users when a specific metric or condition is met.
If the log_level is set to “Debug” in Datadog, which types of logs will be printed and sent for monitoring?
Logs with error, warning, info and debug severity levels.
Where can you define the frequency of a custom check named ‘health_custom_check’?
In conf.d directory by creating a file named health_custom_check.yaml.
Which feature is provided by Datadog for end-to-end tracing?
APM
Application performance monitoring is the feature which allows to have end to end traceability of your application.
Which configuration files are typically used to customize the behavior and settings of the Datadog Agent?
datadog.yaml
What does “Evaluate Every” represent in alert conditions?
The frequency at which conditions are checked.
What is the benefit of using Terraform with Datadog?
It ensures that monitoring configurations are consistent and version controlled.
Which Terraform resource type is used to define a Datadog monitor?
Datadog can help manage and monitor the resources defined in IAC tools like Terraform, CloudFormation and Kubernetes.
If the log_level is set to “critical” in Datadog, which types of logs will be printed and sent for monitoring?
Only logs with “Critical” severity level.
In Datadog, what are “Service Checks” used for in API monitoring?
To check if APIs are responding as expected.
Service checks allow you to characterize the status of a service to monitor it within Datadog. Service checks monitor the up or down status of the specific service.
Which Datadog query formula would you use to calculate the percentage change in a metric’s value over a specific time range?
“(final_value-initial_value)/Initial_value*100”
Which feature in Datadog allows you to create custom-calculated metrics based on existing time-series data?
Query formulas
What is the purpose of using JSON in timeseries queries in Datadog?
To format and structure query results.
Where should you place the configuration file for a custom check named “custom_check” in Datadog’s recommended folder structure?
conf.d/custom_check.yaml
In Datadog’s recommended folder structure, the configuration file for a custom check named “custom_check” should be placed in the directory path: conf.d/custom_check.yaml. This helps organize your custom checks and their configuration files in a structured manner within the Datadog Agent’s configuration.
What is the purpose of using “Precedence” when configuring alert conditions?
To control the order of alert notifications in the recipient’s inbox.
What will the outcome of the Python code below?
- # Multiples of a number up to a maximum
- max = 15
- multiple = 3
- if max < 0:
- print(max)
- elif max == 0:
- print(“max is zero”)
- else:
- i = 1 # Initialize i
- while i <= max:
- if i % multiple == 0:
- print(i, end=’ ‘)
- i += 1
3,6,9,12,15
For AIX systems, which command is used to generate and send a diagnostic package (flare) to Datadog support, including a specific case ID?
datadog-agent flare <CASE_ID></CASE_ID>
What is the role of the “facet” option in a JSON-formatted timeseries query?
It groups the data by a sepcific attribute or tag.
What logging level configuration is typically used to enable the highest level of detail in the Datadog Agent logs, allowing for extensive debugging?
debug
What is the term used to refer to the unique identifier assigned to a host where the Datadog Agent is running?
HOST ID
The Host ID is a unique identifier that Datadog assigns to each host or instance where the Datadog Agent is installed and running. This ID is used by Datadog to track and distinguish individual hosts in your infrastructure. It ensures that metrics, traces, logs, and other data collected by the Datadog Agent are accurately associated with the correct host. This identification is essential for effective monitoring and analysis within the Datadog platform
Which configuration is required to change the default port of DogstatD?
dogstatsd_port:8125
How does setting a “Warn Window” in an alert condition differ from the “Time Aggregator”?
The warn window defines when the notification is sent, the time aggregator does not.
On which port by default DogStatD listens?
UDP 8125
Which command can be used to check the agent status?
sudo systemctl status datadog-agent.
How should the tagging name start in datadog?
Starting with letter
Tags must start with a letter and after that may contain the characters listed below:
* Alphanumerics
* Underscores
* Minuses
* Colons
* Periods
* Slashes
To oversee the status of this check across multiple hosts, which method is employed?
Implementing Host Monitoring
What is the purpose of a Mute Monitor?
To mute the monitor for a specific duration.
Where to check the errors incase of any issues with the agent?
cat/var/log/datadog/agent.log
In advanced options for alert conditions, what is the “Hysteresis” setting used for?
To adjust the alert’s sensitivity to minor fluctuations
What are the different reserved tags used by the datadog?
Service
Version
Env
In Datadog, tagging is like labeling different types of data to organize and connect them. It helps correlate metrics, traces, processes, and logs, making it easier to understand and act on them. Tags like “host” connect data to specific devices, while others like “service” and “version” help focus on particular parts or versions of applications. Overall, tagging simplifies data management and analysis in Datadog.
What will the outcome of the below python code?
- # Sum of two numbers with condition
- num1 = 20
- num2 = 10
- if num1 > 100 or num2 > 100:
- print(“Numbers are too large to calculate the sum.”)
- else:
- sum = num1 + num2
- print(sum)
30
The first condition fails as both numbers are smaller than 100. Therefore it will go in else condition. Hence the sum is 30
What will the outcome of the below python code?
- numbers = [5, 7, 12]
- for num in numbers:
- if num == 5:
- print(“Found the number”)
- break
- elif num < 5:
- print(f”{num} is less than 5”)
- else:
- print(f”{num} is greater than 5”)
Found the number
As per the above code, We can see the array has a list of numbers. The first number is 5 . Therefore it will directly go into the first condition.
What role does “Group By” play when configuring alert conditions?
It groups data points for evaluation.
Which JSON attribute is commonly used to define the aggregation method in a timeseries query?
agg_method
If you need to send data from the same host where your application is running, which value should you typically use for the statsd_host configuration?
127.0.0.1
Explanation
(localhost/127.0.0.1), therefore you must be on the same host that the Agent is running. That is, you can’t run the Agent on a VM or a container and access it from the host machine.
In the Datadog agent, what type of log level is typically used for verbose logging?
DEBUG
Which configuration file should you examine to check if the api_key is defined in DataDog?
datadog.yaml
In Datadog, the api_key is a crucial piece of information that grants access to the Datadog API for sending data and performing various actions. To check whether the api_key is defined, you need to examine the datadog.yaml configuration file.
What is the purpose of using “Evaluated As” in advanced options for alert conditions?
To specify how multiple conditions should be combined.
By default the Datadog Agent sends its logs to Datadog over TCP using which port?
10516
How does “Consecutive Occurrences” affect the triggering of alert conditions?
It defines the number of consecutive periods the condition must be met.
In Datadog, what visualization tool is used to display aggregated metrics over time, allowing you to identify patterns and trends in your application’s performance?
Heatmaps
For CentOS systems, which command is used to generate and send a diagnostic package (flare) to Datadog support, including a specific case ID?
sudo datadog-agent flare <CASE></CASE>
What will the outcome of the Python code below?
- num = 5
- if num < 0:
- num = num + 1
- elif num == 0:
- print(num)
- else:
- i = 1
- # use the while loop to iterate until zero
- while i <= num:
- i += 1
- print(i, end=’, ‘) # Print i with a comma & space as the separator
- if i > 5:
- break
- print(i)
2,3,4,5,6
What is the file extension typically used for Datadog integration configuration files in the /etc/datadog-agent/conf.d folder?
yaml
Which Datadog query formula would you use to calculate the difference between two metric values at specific time points?
“derivitave(metric_name)”
What is the name of the feature in Datadog that automatically identifies and monitors new services as they are deployed, allowing the Datadog Agent to collect metrics and traces without manual configuration?
Auto Discovery
Auto Discovery is the feature in Datadog that automatically identifies and monitors new services as they are deployed. It allows the Datadog Agent to collect metrics, traces, and logs without manual configuration. This feature helps streamline the monitoring process by automatically detecting and tracking services as they come online in your infrastructure.
What will the outcome of the below python code be?
- # Sum of two numbers with condition
- num1 = 50
- num2 = 10
- if num1 > 30 or num2 > 100:
- print(“Numbers are too large to calculate the sum.”)
- else:
- sum = num1 + num2
- print(sum)
Numbers are too large to calculate sum
What does the term “log ingestion” refer to in Datadog?
collecting and processing log data
How can we parse the below log pattern in JSON format in Datadog
employee_name=max joining_date=01/001/2023 emp_id=102
rule%(data::keyvalue)
Which logging is enabled by default in Datadog?
Info
How does Datadog handle log storage when a daily quota is set for an index?
Exclude
What is the purpose of log pipelines in Datadog?
Parse logs and extract fields
Which variable is used in the Datadog Agent configuration file to enable log collection for monitoring?
logs_enable:true
Which filter is used to not include some log types(error/debug/info) in Datadog?
Exclusion filter
Which logical operator is used for combining multiple filter conditions with an OR operation in Datadog?
OR
Which term searches work within tags and attributes in Datadog logs?
Wildcard
What type of logs will be printed and sent for monitoring in Datadog if the log_level is set Debug?
Logs with error, warning, info and debug severity levels.
What does the AND operator do in log filtering?
Matches ALL conditions
Which of the following is NOT a valid Datadog log filtering option:
Less than
Greater than
Equal
Multiply
Multiply
How are metrics created from ingested logs billed in Datadog?
Custom metrics
By default ,how many indexes can we create per account?
100 indexes per account
What is the maximum retention period for Logs stored in Datadog by default?
60 Days max retention period
The infrastructure team wants to deploy log indexes for 10 application teams in Datadog , what is the best way to do it?
Deploy using Terraform (IAC)
What will the parsing rule that can be applied to the below log ?
employee_name: Michael joining_date: 01/001/2023 emp_id :102
rule%(data::keyvalue(“:”)}
Which tag is used to configure the log index
Index
How does Datadog handle log storage when a daily quota is set for an index?
Limited indexing
How can we enable debug logs in the Datadog agent?
log_level:DEBUG
Which Parser is used by Datadog to format other types of logs?
GROK
Which Datadog feature allows you to extract fields from logs and create structures logs?
LOG Parsing
Which log aggregation method is used for grouping logs by a specific field in Datadog?
Group by
What is the purpose of configuring sampling rates when sending traces to Datadog using OpenTelemntary?
To minimize costs by avoiding unnecessary trace data ingestion.
In the context of OpenTelemntary, which component is APM RED metrics such as request/error counts and latency distributions
Datadog exporter
What is the purpose of the Datadog API key in the installation process?
It configures the agent to communicate with the Datadog platform.
What command can you use to verify the successful installation of the Datadog agent?
sudo datadog-agent status
How can you enhance the versatility of your dashboard to answer different scenarios?
Experiment with various widget types, queries and functions.
What type of widget can you use to visualize complex metric-infrastructure relationships across multiple tags with intuitive multicolour intensity graphs?
Heatmaps
How can you update an incidents impact section and specify customer impact , start and end times, and whether the incident is still active?
Use the slash command/datadog incident update in the incident channel
How can you add additional metadata and context to an incident in DataDogs incident management
By configuring assessment fields in the incident settings ,using key::value metric tags.
How does Datadog ensure the security of logs submitted to their platform?
Symmetric encryption (AES-256) is used for indexed logs at rest.
How can you prevent the submission of specific logs to Datadog using the agent
By excluding logs through the logs_processing_rule setting with exclude_at_match