Dynatrace Engineer Interview Questions: Hands-On (2027)

45 hands-on Dynatrace engineer interview questions: DynaKube YAML, oneagentctl, metrics and events API, OTLP Collector config, DQL and Monaco.

Sep 24, 2025 - 10:11
Nov 11, 2026 - 23:45
 0  88
Dynatrace Engineer Interview Questions: Hands-On (2027)

Dynatrace engineer interviews are practical. Expect to deploy the Dynatrace Operator with a DynaKube resource, manage OneAgent from the command line, push metrics and events through the API, wire an OpenTelemetry Collector, write DQL, and manage configuration as code with Monaco or Terraform. This page has 45 hands-on questions with commands and YAML, grouped by level, plus scenarios.

This guide is for the implementation engineer who installs and runs Dynatrace, not the user who reads dashboards. Concept questions (Smartscape, PurePath, Grail, Dynatrace Intelligence) are covered in the keeper post, 85+ Dynatrace interview questions and answers, and the short list of most common questions is in 46 most asked Dynatrace interview questions. Here every answer comes with something you would type.

Key takeaways

  • Dynatrace engineer roles test whether you can install, configure and automate the platform, so practise commands and YAML, not definitions.
  • On Kubernetes, know the Dynatrace Operator, the DynaKube custom resource, its four OneAgent modes and the ActiveGate capabilities.
  • Know the main ingest paths: OneAgent, the metrics ingest API, the events API and OTLP over HTTP.
  • Dynatrace documents OTLP ingest as HTTP with protobuf only. gRPC needs an OpenTelemetry Collector in front.
  • Configuration as code (Monaco or the Terraform provider) is expected for senior roles.
  • Check the Dynatrace docs before the interview. API versions, token types and app names change often.

Hands-on skills map

AreaWhat you should be able to doTool or interface
Host agentsInstall, set host group and tags, check statusOneAgent installer, oneagentctl
KubernetesDeploy the Operator and a DynaKube, pick a mode, scope namespaceskubectl, Helm, DynaKube YAML
APIsCreate scoped tokens, push metrics and eventscurl, Environment API v2
OpenTelemetryExport traces, metrics and logs to DynatraceOpenTelemetry Collector
QueryingWrite DQL for logs, metrics and entitiesNotebooks, dashboards
AutomationStore config in Git, deploy per environmentMonaco, Terraform provider, Workflows

Hands-on questions for freshers

1. How do you install OneAgent on a Linux host?

In the Dynatrace web UI, open the deploy page for OneAgent, choose Linux, create or select a token, and copy the generated wget and install commands. Run the installer as root. The host appears in Dynatrace a few minutes later. Restart application processes so OneAgent can inject into them.

2. Which command shows and changes OneAgent settings on a host?

oneagentctl. It is installed with OneAgent, under /opt/dynatrace/oneagent/agent/tools on Linux.

cd /opt/dynatrace/oneagent/agent/tools
./oneagentctl --get-host-group
./oneagentctl --set-host-group=payments-prod --restart-service
./oneagentctl --set-host-tag=team=payments --restart-service

3. Why set a host group?

Host groups split process groups by environment or team and let you apply settings, such as monitoring mode or update windows, to a set of hosts. A host can be in one host group only.

4. How do you create an API token, and why limit its scopes?

Create it under Access tokens in the web UI and select only the scopes needed, for example metrics.ingest for a metrics script. A leaked token with few scopes does less damage. Store it in a secret manager, not in code.

5. How do you push a custom metric with the API?

POST plain text in the metrics line protocol to /api/v2/metrics/ingest with a token that has the metrics.ingest scope.

curl -X POST "https://${DT_ENV}.live.dynatrace.com/api/v2/metrics/ingest" \
  -H "Authorization: Api-Token ${DT_TOKEN}" \
  -H "Content-Type: text/plain" \
  --data-raw "app.queue.length,queue=orders,env=prod 42"

6. What does the metrics line protocol look like?

Metric key, optional comma-separated dimensions, a space, then the value and an optional timestamp, for example cpu.temperature,host=web1 55. Payloads are limited to 1 MB per request.

7. How do you check Kubernetes is monitored after installing the Operator?

Check the Operator and its pods, then the DynaKube status.

kubectl -n dynatrace get pods
kubectl -n dynatrace get dynakube
kubectl -n dynatrace describe dynakube <name>

Then confirm the cluster appears in the Kubernetes app in Dynatrace.

8. What is a DynaKube?

A custom resource read by the Dynatrace Operator. It holds the environment API URL, the OneAgent deployment mode, ActiveGate capabilities and options such as namespace selectors. The Operator creates the matching DaemonSets, StatefulSets and webhooks.

9. Write a basic DQL query that counts error logs per namespace.

fetch logs
| filter loglevel == "ERROR"
| summarize count(), by:{k8s.namespace.name}
| sort `count()` desc

10. How do you limit a DQL query to the last 30 minutes?

Use the timeframe picker in the notebook or dashboard, or set it in the command, for example fetch logs, from:now()-30m.

11. How do you see which OneAgent version a host runs?

Look at the host's details page or the deployment status page in the web UI, or call oneagentctl --version on the host.

12. What is the difference between OneAgent and an OpenTelemetry SDK?

OneAgent instruments supported runtimes automatically with no code changes and also collects host and process data. An OpenTelemetry SDK is added to the application code and exports telemetry over OTLP, which Dynatrace can ingest. Many teams use both.

Hands-on questions for 2 to 5 years of experience

13. Write a minimal DynaKube for cloud-native full-stack monitoring.

Check the current apiVersion in the docs first. At the time of writing, Dynatrace lists v1beta6 as the current DynaKube version, which needs Operator 1.8 or later.

apiVersion: dynatrace.com/v1beta6
kind: DynaKube
metadata:
  name: prod-cluster
  namespace: dynatrace
spec:
  apiUrl: https://ENVIRONMENT_ID.live.dynatrace.com/api
  oneAgent:
    cloudNativeFullStack: {}
  activeGate:
    capabilities:
      - routing
      - kubernetes-monitoring
    resources:
      requests:
        cpu: 500m
        memory: 512Mi

14. What are the four OneAgent modes in a DynaKube?

cloudNativeFullStack (host and application monitoring, injection through a webhook), classicFullStack (older full-stack mode), applicationMonitoring (pod-level injection only, no host agent) and hostMonitoring (infrastructure only).

15. When would you choose applicationMonitoring mode?

When you cannot run a privileged host agent, for example on some managed or serverless node types, or when you only need traces from selected workloads.

16. Which ActiveGate capabilities can a DynaKube enable?

routing, kubernetes-monitoring, metrics-ingest, dynatrace-api and debugging. Enable only the ones you need.

17. How do you instrument only some namespaces?

Add a namespaceSelector with labels to the OneAgent section of the DynaKube, then label the namespaces you want monitored.

spec:
  oneAgent:
    cloudNativeFullStack:
      namespaceSelector:
        matchLabels:
          dynatrace-monitoring: enabled
kubectl label namespace payments dynatrace-monitoring=enabled

18. Why do pods show no traces after you install the Operator?

Injection happens when a pod starts, so existing pods must be restarted (for example kubectl rollout restart deployment/checkout -n payments). Also check the namespace selector and that the webhook pod is running.

19. How do you send a deployment event from a pipeline?

POST to /api/v2/events/ingest with a token that has the events.ingest scope, an event type such as CUSTOM_DEPLOYMENT, and an entity selector for the affected service.

curl -X POST "https://${DT_ENV}.live.dynatrace.com/api/v2/events/ingest" \
  -H "Authorization: Api-Token ${DT_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "eventType": "CUSTOM_DEPLOYMENT",
    "title": "checkout 2.4.1",
    "entitySelector": "type(SERVICE),tag(app:checkout)",
    "properties": {"dt.event.deployment.version": "2.4.1"}
  }'

20. Why do deployment events matter?

They place the release on the timeline of the affected service, so when a problem opens shortly after, engineers and the root cause analysis can see the change that came just before it.

21. How do you export OpenTelemetry traces to Dynatrace?

Use the OTLP HTTP exporter in an OpenTelemetry Collector, pointed at the environment's /api/v2/otlp base URL, with protobuf encoding and an authorization header. The Dynatrace docs state that gRPC is not supported on this endpoint, so receive gRPC in the Collector and export over HTTP.

receivers:
  otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317
      http:
        endpoint: 0.0.0.0:4318
processors:
  batch: {}
exporters:
  otlphttp:
    endpoint: https://ENVIRONMENT_ID.live.dynatrace.com/api/v2/otlp
    headers:
      Authorization: "Bearer ${env:DT_TOKEN}"
service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlphttp]

22. Which token does OTLP ingest need?

The current OTLP API page shows a platform token sent as a Bearer token, with scopes such as openpipeline:traces:ingest, openpipeline:metrics:ingest and openpipeline:logs:ingest. Older setups use classic API tokens with the Api-Token prefix. Check which your environment uses.

23. Why does the environment ID in the URL matter so much?

The docs warn that the platform URL contains .apps. API and OTLP calls must use the environment URL without .apps, or they return 404.

24. Write DQL for average CPU per Kubernetes node.

timeseries avg_cpu = avg(dt.host.cpu.usage), by:{dt.entity.host}
| fieldsAdd host_name = entityName(dt.entity.host)

Metric keys differ between classic and Grail metrics, so confirm the key in the metric browser before the interview.

25. How do you find the slowest services with DQL?

Query spans, group by service and sort by duration percentiles.

fetch spans
| filter request.is_root_span == true
| summarize p95 = percentile(duration, 95), by:{service.name}
| sort p95 desc
| limit 10

26. How do you parse a field out of a log line?

Use parse with a DPL pattern, then work with the new field.

fetch logs
| filter contains(content, "order_id")
| parse content, "LD 'order_id=' INT:order_id"
| summarize count(), by:{order_id}

27. How do you scrape Prometheus metrics from pods?

Enable Prometheus metric collection in the Kubernetes monitoring settings and annotate the pods or services with metrics.dynatrace.com/scrape: "true" and the port and path annotations described in the docs.

28. How do you update OneAgent safely on a large fleet?

Set update windows per host group, roll out to a canary host group first, check for problems, then let other groups update. On Kubernetes, the Operator updates OneAgent based on the DynaKube settings, so test in a non-production cluster first.

29. How do you mask sensitive data?

Configure data privacy and masking settings for request attributes, URLs and logs, and use OpenPipeline processing rules to drop or mask fields before storage. Test with sample data that contains fake card numbers or emails.

30. What is a Dynatrace Workflow used for in an engineer's day?

Automating responses: on a problem, query data, post to Slack or Teams, open a ticket, or call a webhook. Workflows are built in AutomationEngine and can be triggered by events, schedules or manually.

Senior hands-on questions

31. How do you keep Dynatrace configuration in Git?

Use Monaco (Dynatrace Configuration as Code) or the Dynatrace Terraform provider. Store configs per environment, review changes in pull requests, and deploy from CI.

32. What does a Monaco workflow look like?

A manifest lists projects and environments. Download current config, edit it, then deploy.

# pull existing config from an environment
monaco download --manifest manifest.yaml --environment prod

# preview, then apply
monaco deploy manifest.yaml --dry-run
monaco deploy manifest.yaml --environment staging

33. Monaco or Terraform: how do you choose?

Monaco is Dynatrace-specific and fits teams that manage many Dynatrace settings across environments. Terraform fits teams that already manage cloud resources with Terraform and want one workflow. Both are documented by Dynatrace. Our GitOps best practices apply to either.

34. How do you build a release gate with Site Reliability Guardian?

Define objectives (error rate, latency, a DQL query) in a guardian, trigger a validation from the pipeline after deployment through a Workflow, and fail the pipeline stage if the guardian result is a fail.

35. How do you design access for many teams?

Use groups mapped from your identity provider, IAM policies, and segments or policy boundaries to scope data by team or environment. Test what a member of each group can see. Review policies that still reference management zones, since Dynatrace has been moving away from them.

36. How do you reduce ingest cost without losing important data?

Find the biggest sources with DQL, drop debug logs and noisy fields in OpenPipeline, set bucket retention by data type, limit Prometheus scrapes to useful metrics, and switch hosts that do not need traces to infrastructure monitoring.

37. How do you monitor an EKS or AKS control plane?

Managed services hide the control plane nodes, so use the cloud provider integration and the Kubernetes API data collected through the ActiveGate's kubernetes-monitoring capability. Our Kubernetes architecture components post explains what each part does.

38. How do you roll out Dynatrace to a cluster that already uses Prometheus and OpenTelemetry?

Start with infrastructure and Kubernetes monitoring, ingest existing Prometheus metrics and OTLP data, then add OneAgent injection to one namespace and compare. Do not run two auto-instrumentation agents in the same process.

Scenario-based hands-on questions

39. The OTel Collector logs 404 when exporting to Dynatrace. What do you check?

The endpoint URL: it must be the environment URL without .apps, end in /api/v2/otlp for the otlphttp exporter base, and the exporter must use HTTP with protobuf, not gRPC.

40. The exporter returns 401 or 403. What now?

The token is missing, expired, sent with the wrong prefix (Bearer vs Api-Token for the token type), or lacks the ingest scope. Recreate it with the right scope and check how the header is rendered.

41. A DynaKube shows an error status after an Operator upgrade. What do you do?

Run kubectl describe dynakube and read the conditions, check Operator logs, and compare the DynaKube apiVersion with the versions the new Operator supports. Migrate the resource if an old version was removed.

42. One namespace shows no logs since yesterday. How do you troubleshoot?

Check the log collection pods on the nodes running that namespace, the log ingest rules and OpenPipeline filters, and recent changes to namespace labels or log formats. Run a DQL query filtered on the namespace to confirm when data stopped.

43. A custom metric script works but the metric does not appear. Why?

The API may have rejected some lines. Read the response body, which lists invalid lines. Common issues are invalid metric keys, wrong dimension format or a token without metrics.ingest.

44. A Monaco deploy to production overwrote a manual fix. How do you prevent this?

Make Git the only source of truth: restrict manual edits in production, run monaco download to capture drift before deploying, and require pull requests for every change.

45. After a release, the checkout service's error rate rises. What steps do you take in Dynatrace?

Open the problem and its root cause, check the deployment event on the service timeline, compare failure rate and traces before and after, look at failing spans and related logs, and roll back if the release is the cause. Then add a guardian objective so the next release is checked automatically.

How to prepare

  1. Start a Dynatrace free trial and install OneAgent on a Linux VM.
  2. Deploy the Operator and a DynaKube on a local or cloud Kubernetes cluster, and restrict it to one namespace.
  3. Push one custom metric and one deployment event with curl.
  4. Send traces from a demo app through an OpenTelemetry Collector.
  5. Write five DQL queries in a notebook and export one config with Monaco.

Kubernetes skills carry most of this work. Our CKA training covers them in the Kharadi, Pune classroom and live online. For a wider monitoring view, compare Dynatrace with open tools in top observability tools for DevOps and practise the PromQL side with Prometheus engineer interview questions.

FAQs

What does a Dynatrace engineer do day to day?

Deploys and upgrades OneAgent and the Operator, manages tokens and integrations, builds dashboards and alerts, writes DQL, automates responses with Workflows, and keeps configuration in Git.

What is the current DynaKube API version?

At the time of writing, the Dynatrace docs list v1beta6 as current, requiring Operator 1.8 or later. Check the DynaKube parameters page before you write YAML.

Does Dynatrace accept OTLP over gRPC?

Not directly. The docs state that the OTLP endpoint accepts HTTP with protobuf. Put an OpenTelemetry Collector in front if your apps export gRPC.

Which API scope is needed to push metrics?

metrics.ingest for a classic API token, or openpipeline:metrics:ingest for a platform token or OAuth client.

Do I need DQL for a Dynatrace engineer interview?

Yes. Expect to write simple fetch, filter, summarize and timeseries queries during the interview.

How is this page different from the 85+ Dynatrace questions post?

The 85+ post explains concepts across the platform. This page focuses on the commands, YAML and API calls an implementation engineer uses.

Is there an official Dynatrace certification?

Dynatrace University runs certification programmes. Check its site for current names and requirements.

Official references

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
Mridul I am a passionate technology enthusiast with a strong focus on DevOps, Cloud Computing, and Cybersecurity. Through my blogs at DevOps Training Institute, I aim to simplify complex concepts and share practical insights for learners and professionals. My goal is to empower readers with knowledge, hands-on tips, and industry best practices to stay ahead in the ever-evolving world of DevOps.