Skip to content

Datadog Fundamentals - Practice Questions

32 original questions for Datadog Fundamentals prep; Datadog publishes no domain weights, so they are spread roughly evenly across the six domains of the exam guide.

Cert page: exams/datadog/fundamentals/


Question 1

Scenario: A developer asks why the Datadog client library in their web app sends custom metrics to the local Agent over UDP rather than TCP. Which reason fits?

A. UDP encrypts every datagram, so other processes on the same host cannot read the metric values in transit B. UDP guarantees in-order delivery, so counts are never added twice when the Agent restarts mid-interval C. UDP is connectionless, so the app sends each packet and moves on without waiting, with no delivery guarantee D. UDP is the only protocol the Datadog intake accepts, so the Agent can forward each packet to Datadog unchanged

Answer **Correct: C** **Why:** DogStatsD listens on UDP port 8125 by default because UDP is fire and forget: the application never blocks on a monitoring problem, at the price that a lost packet is not resent. UDP offers no encryption (A) and no ordering or delivery guarantee (B). The Agent sends data on to Datadog over HTTPS on port 443, not as raw UDP packets (D).

Question 2

Scenario: An engineer adds two tags to datadog.yaml as a list under tags:, indenting each - env:prod line with a tab character. After a restart the Agent reports a YAML parse error for the file. What is the cause?

A. YAML does not allow tab characters for indentation, so the list items must be indented with spaces B. YAML requires every string value to be wrapped in double quotes, so env:prod must become "env:prod" C. YAML lists must be written in square brackets on one line, so dashes on separate lines are invalid D. YAML keys in the Agent's main file must be upper case, so the key must be written as TAGS instead

Answer **Correct: A** **Why:** YAML uses spaces for indentation and rejects tabs, and a single bad indent breaks the whole file. Plain strings such as env:prod need no quotes (B), block lists with one dash per line are the normal form (C), and the Agent's settings are lower-case keys such as `tags` and `api_key` (D).

Question 3

Scenario: A new engineer is learning the difference between measurements and metadata in Datadog. Which of these is metadata about a host rather than a measurement?

A. The value of system.cpu.user reported for the host at 10:05 B. The number of requests a web server on the host served in ten seconds C. The free disk space the disk check reports for the host each interval D. The host's operating system version and the cloud region it runs in

Answer **Correct: D** **Why:** Metadata describes what a host is and where it runs: hostname, operating system, cloud region, instance type and tags. It is what lets you filter and group measurements. Options A, B and C are all numbers that change over time, which makes them metric values.

Question 4

Scenario: A dashboard widget shows "fleet CPU" at 640% for a group of eight hosts. The query uses sum:system.cpu.user{env:prod}. What change gives a meaningful fleet figure?

A. Keep sum and divide the y-axis by eight by hand each time hosts are added or removed B. Change the space aggregation to avg, because a percentage summed across hosts means nothing C. Change the metric's type from gauge to count so the per-host values add up correctly D. Change the rollup method to sum so that each time bucket adds its points together

Answer **Correct: B** **Why:** Space aggregation combines timeseries across hosts. A percentage should be averaged (or maxed) across hosts, while counts such as requests are summed. Dividing by hand (A) breaks as the fleet changes, changing the type (C) misdescribes the data, and the rollup (D) combines points over time, not across hosts.

Question 5

Scenario: An on-call engineer wants to see the path of one slow checkout request as it passes through the frontend, payment and inventory services, with the time spent in each. Which kind of telemetry answers this?

A. Traces B. Metrics C. Logs D. Events

Answer **Correct: A** **Why:** A trace follows one request across services and records the time spent in each step. Metrics (B) are numbers over time and summarize many requests. Logs (C) are timestamped records from each service that would have to be stitched together by hand. Events (D) record occurrences such as a deployment.

Question 6

Scenario: A platform team writes a nightly script that creates and updates monitors through the Datadog API. Which credentials must the script send?

A. Only an API key, because API keys carry the permissions of the user who created them B. Only an application key, because application keys identify the organization on their own C. An API key together with an application key, because the script manages account objects D. A client token, because client tokens are the credential designed for automation scripts

Answer **Correct: C** **Why:** The API key identifies the organization and is enough to submit data. Reading data or managing objects such as monitors also needs an application key, which carries the permissions of its owner. API keys are not tied to a user (A), an application key works with an API key rather than alone (B), and client tokens are for browser and mobile apps (D).

Question 7

Scenario: A company logs in to Datadog at https://app.datadoghq.eu. An engineer installs the Agent with a valid API key, but the Agent's site setting is datadoghq.com. The host never appears and the log shows API key errors. What fixes it?

A. Create a new API key, because a key made on the EU site expires after its first use elsewhere B. Set site: datadoghq.eu in datadog.yaml (or the DD_SITE variable) and then restart the Agent C. Open inbound port 443 on the host so that the EU site can pull metrics from the Agent D. Add the host to a US1 organization and use a monitor to copy its data over to the EU site

Answer **Correct: B** **Why:** Each Datadog site is completely independent, and data cannot be shared across sites, so an EU organization's key is rejected by the US1 site. Pointing the Agent at `datadoghq.eu` fixes it. The key itself is fine (A), the Agent sends outbound rather than being pulled from (C), and nothing copies data between sites (D).

Question 8

Scenario: The application key used by a CI pipeline belongs to an engineer who is leaving the company. The team wants a key that is not tied to any one person and can do only what CI needs. What should they do?

A. Keep the engineer's key, because application keys belong to the organization rather than to a user B. Replace it with a second API key, because API keys can create and update monitors on their own C. Store the engineer's key in a dashboard template variable so any team member can reuse it later D. Create an application key owned by a service account, scoped to only the actions CI needs

Answer **Correct: D** **Why:** Datadog's docs say application keys are associated with the user who created them, and to use a service account when a key must be shared. Scoped keys get only the scopes specified. Option A is wrong about ownership, an API key alone cannot manage monitors (B), and a dashboard variable is no place for a secret (C).

Question 9

Scenario: Two VMs built from the same image both have hostname: web-template set in datadog.yaml. In Datadog they show as one host whose metrics jump between two sets of values. What is the cause and the fix?

A. The cloud integration merged them, so disable the cloud integration and let each Agent report on its own B. Both use the same API key, so issue each VM its own API key so that Datadog can tell the two hosts apart C. Both use UDP port 8125, so change dogstatsd_port on one of the VMs so their data streams separate D. A hostname set in the config file is used first, so set a unique name on each VM or remove the setting

Answer **Correct: D** **Why:** The Agent picks its hostname from a list of rules and takes the first match, and a hostname set explicitly in the configuration file comes first. Two Agents with the same configured name report as one host. Many hosts share one API key normally (B), and the DogStatsD port (C) and cloud integration (A) do not decide the name here.

Question 10

Scenario: A team is about to install the Datadog Agent on a new Kubernetes cluster. Which installation method do the Datadog docs mark as recommended?

A. The Datadog Operator, which deploys and manages the Agent on Kubernetes B. The Linux one-line install script, run over SSH on each node after it joins C. A single Agent Deployment with one replica that reaches every node by network D. A sidecar Agent container added by hand to every application pod's manifest

Answer **Correct: A** **Why:** The Kubernetes installation page lists the Datadog Operator as recommended, with Helm and a manual DaemonSet as the alternatives. In each case an Agent runs on every node. Installing onto nodes by hand (B) fights the orchestrator, one replica (C) cannot see every node's containers, and per-pod sidecars (D) are not the standard node-Agent pattern.

Question 11

Scenario: A security team allows no traffic out of a subnet except by explicit rule. Which rule must they add so hosts with the Agent can send their data to Datadog?

A. Inbound TCP 8125 from Datadog's IP ranges to every host B. Outbound UDP 8125 to the Datadog site's intake addresses C. Outbound TCP 443 to the Datadog site's intake endpoints D. Inbound TCP 5001 from Datadog so it can query each Agent

Answer **Correct: C** **Why:** The Agent opens connections out to Datadog, and the network traffic docs say most Agent data uses port 443. Port 8125 (A, B) is the local DogStatsD listener on the host, and 5001 (D) is the Agent's local command API, which must never be opened to the internet.

Question 12

Scenario: An application's APM tracing library cannot reach the Agent on the same host. The host firewall only allows local traffic on UDP 8125. Which change lets traces through?

A. Allow UDP 8126, because traces use the same transport as DogStatsD on the next port B. Allow TCP 8126, the APM receiver's port; UDP 8125 is DogStatsD, for metrics C. Allow TCP 5002, because tracers submit traces through the Agent's browser GUI D. Allow TCP 5000, because traces are delivered to the Agent's expvar server

Answer **Correct: B** **Why:** The APM receiver listens on TCP 8126 and DogStatsD on UDP 8125. The near-identical numbers with different protocols are the trap in (A). Port 5002 (C) serves the Agent GUI and port 5000 (D) the go_expvar server; neither receives traces.

Question 13

Scenario: A firewall team must allowlist Datadog by IP address for Agent traffic and worries that a hand-copied list will go stale. What approach do the Datadog docs support?

A. Copy the addresses from a community blog post once, then review the list every year B. Fetch the ip-ranges JSON for your site and update rules when its version field changes C. Allow only the IP that app.datadoghq.com resolved to on the day the Agent was installed D. Allow only the api section's prefixes, since the Agent sends all data through the public API

Answer **Correct: B** **Why:** Datadog publishes its ranges as JSON at `ip-ranges.`, with sections such as agents, api, apm and logs, and a version field that increments whenever the data changes, so automation can watch it. The domains are CNAMEs to a set of addresses that changes over time (C), Agent traffic has its own section (D), and a static copy goes stale (A).

Question 14

Scenario: An Autodiscovery template for a web check uses http://%%host%%:%%port%%/status. The container exposes ports 8080 and 9090. Which port does %%port%% resolve to?

A. 8080, because %%port%% is the lowest port the container exposes B. 8080, because %%port%% is the first port listed in the Dockerfile C. None, because %%port%% only resolves for Kubernetes pods, not Docker D. 9090, because %%port%% is the highest port the container exposes

Answer **Correct: D** **Why:** The template variables guide defines `%%port%%` as the highest exposed port, sorted numerically. To pick another port, use `%%port_%%` (its position in ascending order, from 0) or `%%port_%%`. The variable works for Docker containers as well as pods (C).

Question 15

Scenario: An app container sends DogStatsD metrics to the Agent container's address on UDP 8125, but none arrive. The Agent container runs with its default settings. What is the most likely fix?

A. Set DD_DOGSTATSD_NON_LOCAL_TRAFFIC to true on the Agent so it accepts packets from other containers B. Switch the client to TCP 8125, because DogStatsD rejects UDP datagrams sent from other containers C. Set DD_LOG_LEVEL to debug, because DogStatsD only starts listening while debug logging is enabled D. Prefix each metric name with dd., because DogStatsD drops metrics that have no Datadog prefix

Answer **Correct: A** **Why:** DogStatsD listens on localhost unless non-local traffic is allowed, and the DogStatsD docs say containerized setups must set `DD_DOGSTATSD_NON_LOCAL_TRAFFIC` to `true`. UDP is the default transport (B), the log level does not control the listener (C), and metric names need no special prefix (D).

Question 16

Scenario: An app reports the current number of jobs waiting in a queue every second. Datadog should keep the value as it stands at the end of each interval. Which metric type fits?

A. Count, because each submission adds to a running total for the interval B. Rate, because the values are divided by the interval to give a per-second figure C. Gauge, because the last value submitted in each interval is the one kept D. Set, because each distinct queue length seen is counted once per interval

Answer **Correct: C** **Why:** A gauge is a snapshot: the docs define it as the last value submitted during the interval, which suits queue depth or memory in use. Count (A) and rate (B) describe how many events happened, and a set (D) counts unique values, which says nothing about the current depth.

Question 17

Scenario: A team needs an accurate 99th percentile of request latency across 40 hosts behind a load balancer. Which metric type should the application submit?

A. Distribution, because raw values from all hosts are aggregated server-side for global percentiles B. Histogram, because each Agent computes a 99th percentile that Datadog then averages correctly C. Gauge, because the last latency in each interval gives a representative 99th percentile value D. Count, because adding up request durations from every host produces the percentile directly

Answer **Correct: A** **Why:** A distribution sends raw values that Datadog aggregates globally, and percentiles such as p99 can be added to it. A histogram (B) is aggregated on each Agent (average, count, median, 95th percentile, max), and averaging per-host percentiles does not give a true fleet percentile. A gauge (C) or count (D) cannot describe a spread of values.

Question 18

Scenario: A developer captures this DogStatsD datagram with tcpdump: checkout.items:3|c|@0.5|#env:prod,team:shop. What does it describe?

A. A gauge of 3 that Datadog keeps for 0.5 seconds, tagged env:prod and team:shop B. A count of 3 for Agent port 0.5, with no tags, since tags need their own datagram C. A count of 3 sent at a 50 percent sample rate, tagged env:prod and team:shop D. A histogram of three values that average 0.5, tagged env:prod and team:shop

Answer **Correct: C** **Why:** The format is `:||@|#`. Type `c` is a count (a gauge is `g`, as in A, and a histogram `h`, as in D), `@0.5` is a sample rate of 50 percent, and the comma-separated list after `#` holds the tags, so they travel in the same datagram (B).

Question 19

Scenario: A team wants metrics from AWS managed services such as load balancers, where no Agent can be installed. Which way of collecting the data fits?

A. Install the Agent on the load balancer itself, then enable an AWS check in its conf.d directory B. Write a custom Agent check in checks.d that runs on every application host behind the balancer C. Send each load balancer metric from the application's own code through the DogStatsD client D. Set up the AWS integration with credentials so Datadog pulls the data via the AWS API

Answer **Correct: D** **Why:** Datadog's integration guide names three kinds: Agent-based, authentication (crawler) based and library. For a crawler integration such as AWS, Slack or PagerDuty you give Datadog credentials and it collects through the service's API, with nothing installed. You cannot install an Agent on a managed load balancer (A), and options B and C only see what the hosts or app can observe.

Question 20

Scenario: A developer wants to add a user_id tag to a custom metric so each of two million users gets their own line. What is the best response?

A. Go ahead, because extra tags always make metrics easier to group with no other effect B. Avoid it: an unbounded tag like a user ID adds a timeseries per value and grows custom metrics C. It is fine if each tag stays under 200 characters, since length is the only rule for tags D. It is fine once the key is written in camel case, because camelCase keys are indexed separately

Answer **Correct: B** **Why:** The tagging docs say tags should not come from unbounded sources such as timestamps, user IDs or request IDs, because each value becomes a new combination and the number of metrics grows without limit. The 200-character limit (C) is one rule among several, and tags are normalized to lower case, so camel case is discouraged (D).

Question 21

Scenario: A script that POSTs metrics to /api/v2/series in a tight loop starts receiving HTTP 429 responses. What does the status mean?

A. The API key is not valid, so the script should create a new key B. The payload was accepted and will appear after a short delay C. The script sends too many requests and should slow down and retry D. The payload is too large and must be split into smaller batches

Answer **Correct: C** **Why:** The Submit metrics reference lists 429 as "Too many requests". It lists 403 for an authentication error (A), 202 for an accepted payload (B) and 413 for a payload that is too large (D).

Question 22

Scenario: An engineer has just configured and enabled the PostgreSQL integration and restarted the Agent. Which step confirms the check is running, per the Datadog setup guide?

A. Run datadog-agent version, which lists every loaded check with its error count B. Run datadog-agent status and find the check in its checks section, without errors C. Run datadog-agent hostname, which prints each running check beside the host name D. Run datadog-agent launch-gui, the only place where check errors are ever displayed

Answer **Correct: B** **Why:** The integrations guide ends with validating the setup through the status subcommand, where a working integration appears under the checks section with no warnings or errors. The `version` command (A) prints version info and `hostname` (C) prints the hostname. The GUI (D) exists but is not the only place errors appear.

Question 23

Scenario: In /etc/datadog-agent/conf.d/postgres.d/ an engineer edited conf.yaml.example with the connection details and restarted the Agent. The check does not run. What is wrong?

A. The settings must be in a file named conf.yaml, since the example file does not enable the check B. The file must move to checks.d, because the Agent reads integration settings from that directory C. The check only loads after Datadog Support approves a flare, so the engineer must send one first D. The Agent reads example files only in debug mode, so log_level must be set to DEBUG to load it

Answer **Correct: A** **Why:** The Agent configuration docs say to rename the example to `conf.yaml` to enable the check, then restart. The `checks.d` directory (B) holds custom check Python code, not integration settings. Flares (C) are for Support, and the log level (D) changes only how much the Agent logs.

Question 24

Scenario: Pods in a cluster carry Autodiscovery annotations, but one check is missing. An engineer wants to see the configurations the running Agent has loaded and resolved. Which command shows that?

A. datadog-agent health, which prints each resolved Autodiscovery template in full B. datadog-agent diagnose, which prints only the merged contents of datadog.yaml C. datadog-agent hostname, which lists every pod that the Agent has discovered D. datadog-agent configcheck, which prints the configurations loaded and resolved

Answer **Correct: D** **Why:** The Agent commands page describes `configcheck` as printing all configurations loaded and resolved by a running Agent, which includes templates resolved by Autodiscovery. The `health` command (A) prints Agent health, `diagnose` (B) runs connectivity diagnosis, and `hostname` (C) prints the hostname the Agent uses.

Question 25

Scenario: Datadog Support asks a customer to send a flare for an open case. What does running datadog-agent flare <CASE_ID> do?

A. It restarts the Agent in a safe mode, with every check disabled until Support closes the case B. It uploads the last day of the host's application logs into Log Management for Support to search C. It sends the API key and passwords unredacted so that Support can reproduce the setup exactly D. It archives the Agent's config files and logs with secrets removed, and confirms before upload

Answer **Correct: D** **Why:** The flare docs say it gathers the Agent's configuration files and logs into an archive, removes sensitive information such as passwords, API keys and proxy credentials, and prompts for confirmation before uploading. It does not restart the Agent (A), ship application logs (B) or expose secrets (C).

Question 26

Scenario: On a Linux host the Agent's default log does not explain why a check fails. What is the standard next step?

A. Set log_level to DEBUG in datadog.yaml, restart, read the log in /var/log/datadog/, then go back to INFO B. Set log_level to DEBUG in conf.yaml.example; the Agent applies it at once and keeps it from then on C. Add DD_LOG_LEVEL=debug as a dashboard template variable; the log then moves to /etc/datadog-agent/ D. Run the flare command with a debug flag, which raises the log level for good on that one host

Answer **Correct: A** **Why:** The debug mode docs say the Agent logs at INFO by default; you change `log_level` in datadog.yaml (or `DD_LOG_LEVEL` for a container), restart, and set it back to INFO when done because debug output is large. On Linux the Agent logs are in `/var/log/datadog/`. The example file (B) is not read, and a dashboard (C) cannot change Agent settings.

Question 27

Scenario: datadog.yaml contains hostname: web-01, yet the Agent reports as web-99. The service's environment file sets DD_HOSTNAME=web-99. Why?

A. The file's value wins only after a full reboot, so restarting the service is not enough B. The Agent uses whichever value sorts last alphabetically when two sources disagree C. Environment variables take precedence over datadog.yaml, so DD_HOSTNAME is used D. The hostname is read only from conf.d files, so the value in datadog.yaml is ignored

Answer **Correct: C** **Why:** Every datadog.yaml option has a `DD_` environment variable form, and the docs say that when a setting is in both places the environment variable takes precedence. That is why a file edit can appear to do nothing on a host or container that sets a `DD_*` variable. Options A, B and D describe rules that do not exist.

Question 28

Scenario: An SRE wants one view of the fleet with hosts grouped by availability zone, colored by CPU and sized by memory, to spot the odd one out at a glance. Which Datadog view fits?

A. Metrics Explorer, drawing one timeseries line per host grouped by availability zone B. Host Map, grouped by the availability-zone tag, filled by CPU and sized by memory C. Infrastructure List sorted by CPU, which shades each row by the host's memory use D. Log Explorer, searching all host logs and grouping them by an availability-zone facet

Answer **Correct: B** **Why:** The Host Map draws each host as a cell that you can filter, group by tags, color with "Fill by" (CPU by default) and size with "Size by". Metrics Explorer (A) gives lines rather than a map, the Infrastructure List (C) is a table, and logs (D) do not show host resource use this way.

Question 29

Scenario: A monitor watches avg:system.disk.in_use{env:prod} by {host}. The team wants a separate notification naming each host that crosses 90%. Which setting gives that?

A. Simple alert, because it sends one notification for each host that reports B. Multi alert by host, which notifies once per group that meets the condition C. A composite monitor, because only composites can split alerts out by host D. A forecast monitor, because it is the type that evaluates each host apart

Answer **Correct: B** **Why:** A multi alert monitor sends one notification per group meeting the alert conditions, so grouping by host names the host. Simple alert (A) aggregates over all reporting sources into one alert. Composite monitors (C) combine other monitors, and forecast monitors (D) alert when a metric is projected to cross a threshold.

Question 30

Scenario: Every Sunday from 02:00 to 04:00 a team patches its database hosts, and their monitors page the on-call engineer each time. What is the right way to stop those pages?

A. Delete the monitors before each window starts and recreate them by hand afterwards B. Raise every threshold to 100 percent for the window, then change them back after it C. Stop the Agents for the window, since monitors stay quiet when no data is arriving D. Schedule a recurring downtime scoped to those monitors' tags for the weekly window

Answer **Correct: D** **Why:** Downtimes silence monitor alerts and notifications for a scope and period, can recur on a schedule, and still let monitors change state. Deleting monitors (A) or editing thresholds (B) loses configuration and is easy to forget. Stopping the Agents (C) can itself trigger no-data notifications on monitors set to notify on missing data.

Question 31

Scenario: One metric monitor should page the on-call engineer when it alerts, but only post a note to the team's chat channel when it warns. How is that done in a single monitor?

A. Wrap the paging @-handle in an {{#is_alert}} block and the chat @-handle in {{#is_warning}} B. Build two dashboards, one per monitor state, and share each with a different team instead C. Put both @-handles in the monitor title, because titles are evaluated separately per state D. Use the {{value}} variable in the message, which routes each notification by its value

Answer **Correct: A** **Why:** Conditional variables such as `{{#is_alert}}` and `{{#is_warning}}` show their text and @-notifications only in that state, so one monitor can notify different people per state. `{{value}}` (D) prints the breaching value but does not route anything, and dashboards (B) do not send notifications.

Question 32

Scenario: A team wants one service dashboard that viewers can switch between prod and staging from a dropdown, with every widget following the choice. What should they add?

A. A cloned copy of the dashboard for each environment, kept in sync by hand afterwards B. A note widget telling viewers to edit each widget's query scope to their environment C. A template variable bound to the env tag, so one dropdown filters every widget at once D. A screenboard layout, because free-form dashboards filter widgets by environment on their own

Answer **Correct: C** **Why:** Dashboard template variables dynamically filter widgets, and binding one to the `env` tag gives a dropdown that rescopes every widget together. Clones (A) drift, asking viewers to edit queries (B) does not scale, and the free-form layout (D) changes widget placement, not filtering.