# Which field path selects the value of the env var SERVICE_HOST in the container named app, for a replacement target?

Kustomize, Hard (Expert), Concepts. https://k8wiz.com/uquiz/which-field-path-selects-the-value-of-the-env-var-service_host-in-the-container-named-app-for-a-replacement-target

- A. spec.template.spec.containers[app].env[SERVICE_HOST].value
- B. spec.template.spec.containers.0.env.SERVICE_HOST.value
- C. spec.template.spec.containers.[name=app].env.[name=SERVICE_HOST].value
- D. $.spec.template.spec.containers[?(@.name=='app')].env

**Answer:** spec.template.spec.containers.[name=app].env.[name=SERVICE_HOST].value

**Explanation:** Kustomize field paths use dots and select list items by a field value with [name=app], or every item with *. A replacement's options include delimiter and index, which let you replace one part of a value, such as the host in a URL.
