exam questions

Exam SPLK-1001 All Questions

View all questions & answers for the SPLK-1001 exam

Exam SPLK-1001 topic 1 question 34 discussion

Actual exam question from Splunk's SPLK-1001
Question #: 34
Topic #: 1
[All SPLK-1001 Questions]

Which stats command function provides a count of how many unique values exist for a given field in the result set?

  • A. dc(field)
  • B. count(field)
  • C. count-by(field)
  • D. distinct-count(field)
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference:
https://docs.splunk.com/Documentation/Splunk/7.2.6/Search/Usethestatscommandandfunctions

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
amrit12345
Highly Voted 2 years, 11 months ago
Answer "A" his example creates a chart of how many new users go online each hour of the day. ... | sort _time | streamstats dc(userid) as dcusers | delta dcusers as deltadcusers | timechart sum(deltadcusers) The dc (or distinct_count) function returns a count of the unique values of userid and renames the resulting field dcusers.
upvoted 5 times
...
yawdeals
Most Recent 7 months, 3 weeks ago
dc() means distinct count. A is the correct answer
upvoted 1 times
...
G4ct756
11 months, 2 weeks ago
Selected Answer: A
https://docs.splunk.com/Documentation/Splunk/9.0.0/SearchReference/Aggregatefunctions "Returns the count of distinct values of the field X. This function processes field values as strings. To use this function, you can specify distinct_count(X), or the abbreviation dc(X). "
upvoted 1 times
...
Janna05
2 years, 3 months ago
A is correct pag 120 distinct_count, dc – returns a count of unique values for a given field
upvoted 1 times
...
SpTester
2 years, 5 months ago
"A" (D is a dash NOT underscore, hence wrong) page 120 pdf
upvoted 3 times
...
Nanila
2 years, 6 months ago
A or B is correct
upvoted 1 times
msn_aden
1 year, 8 months ago
The question wants unique values, so it has to be A
upvoted 2 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 ...