exam questions

Exam KCNA All Questions

View all questions & answers for the KCNA exam

Exam KCNA topic 1 question 111 discussion

Actual exam question from Linux Foundation's KCNA
Question #: 111
Topic #: 1
[All KCNA Questions]

Which of the following is a valid PromQL query?

  • A. SELECT * from http_requests_total WHERE job=apiserver
  • B. http_requests_total WHERE (job="apiserver")
  • C. SELECT * from http_requests_total
  • D. http_requests_total(job="apiserver")
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
shahy0
1 month, 2 weeks ago
Selected Answer: D
The valid PromQL query to select metrics with a specific label is http_requests_total{job="apiserver"}. This query retrieves all time series with the metric name http_requests_total where the job label is equal to apiserver.
upvoted 1 times
...
2211094
3 months ago
Selected Answer: D
D. http_requests_total{job="apiserver"} In PromQL (Prometheus Query Language), the syntax for filtering metrics based on label values uses curly braces {}. Option D correctly filters the http_requests_total metric to include only the metrics where the label job equals "apiserver".
upvoted 1 times
...
miskill
6 months, 4 weeks ago
Selected Answer: D
D is correct but the right way to write it is: http_requests_total{job="apiserver"}
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago