Datadog Fundamentals free question 4 / 10 · Domain 2: Infrastructure Development
How is the Agent configured on a host compared with in a container?
- Both are configured with a YAML file
- Host: environment variables. Container: a YAML file
- Host: a YAML file. Container: environment variables
- Both are configured with environment variables
Show the answer and explanation
Answer: C
Why this is correct
The page lists the configuration differences. For a host, "the Agent is configured using a YAML file." For a container, "configuration options are passed using environment variables," for example DD_API_KEY and DD_SITE.
Why the other options are wrong
"Host: environment variables. Container: a YAML file" … This reverses the two. The host uses a YAML file and the container uses environment variables.
"Both are configured with a YAML file" … Containers do not rely on a YAML file for configuration options. They pass them as environment variables.
"Both are configured with environment variables" … Hosts are configured with a YAML file (datadog.yaml), not only with environment variables.
Key point
The two also differ in how integrations are detected. On a host they are identified through the Agent configuration file, and in a container they are identified automatically by Autodiscovery.
Go to the Datadog Fundamentals practice app (10 free questions; purchase unlocks all questions)