- A
Modify SNMP settings on the remote device
Why wrong: SNMPwalk is read-only; modifications require SNMPset.
- B
Perform a brute-force attack on the SNMP community string
Why wrong: This command uses a known community string; it does not attempt brute-force.
- C
Test the SNMP agent for denial of service vulnerabilities
Why wrong: SNMPwalk is a query tool, not a DoS attack.
- D
Enumerate the MIB tree of the SNMP agent using the 'public' community string
SNMPwalk walks the MIB tree, retrieving OID values. Using community string 'public' is a typical enumeration technique.
Quick Answer
The correct answer is that the command enumerates the MIB tree of the SNMP agent using the 'public' community string. This is because `snmpwalk` systematically issues a series of GETNEXT requests to traverse the entire Management Information Base (MIB) from the root, retrieving every accessible Object Identifier (OID) and its corresponding value. The `-c public` flag supplies the read-only community string, while `-v2c` specifies SNMP version 2c, which is commonly used for this type of enumeration. On the Certified Ethical Hacker CEH exam, this question tests your understanding of SNMP reconnaissance, a key phase in information gathering; a common trap is confusing `snmpwalk` with `snmpget`, which only retrieves a single OID rather than the full tree. Remember the tip: "Walk the whole tree, get just one leaf" — `snmpwalk` for full MIB enumeration, `snmpget` for a single value.
CEH Enumeration and System Hacking Practice Question
This CEH practice question tests your understanding of enumeration and system hacking. Compare every option against the stated constraints before choosing — the best answer satisfies all requirements, not just the most obvious one. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A penetration tester executes the command: snmpwalk -c public -v2c 192.168.1.50. Which of the following BEST describes the purpose of this command?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue:
"best"Why it matters: Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Enumerate the MIB tree of the SNMP agent using the 'public' community string
The `snmpwalk` command is used to retrieve a subtree of management information from an SNMP agent. By specifying `-c public` (the community string) and `-v2c` (SNMP version 2c), the command performs a GETNEXT request cycle to walk the entire MIB tree, enumerating all accessible OIDs and their values. Option D correctly identifies this as enumerating the MIB tree using the 'public' community string.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Modify SNMP settings on the remote device
Why it's wrong here
SNMPwalk is read-only; modifications require SNMPset.
- ✗
Perform a brute-force attack on the SNMP community string
Why it's wrong here
This command uses a known community string; it does not attempt brute-force.
- ✗
Test the SNMP agent for denial of service vulnerabilities
Why it's wrong here
SNMPwalk is a query tool, not a DoS attack.
- ✓
Enumerate the MIB tree of the SNMP agent using the 'public' community string
Why this is correct
SNMPwalk walks the MIB tree, retrieving OID values. Using community string 'public' is a typical enumeration technique.
Clue confirmation
The clue word "best" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates may confuse `snmpwalk` with a modification or attack tool, but the CEH exam expects you to recognize it as a standard enumeration command that leverages the SNMP GETNEXT operation to walk the MIB tree.
Trap categories for this question
Command / output trap
This command uses a known community string; it does not attempt brute-force.
Detailed technical explanation
How to think about this question
SNMPv2c uses community strings as a form of access control; the 'public' string typically grants read-only access. The `snmpwalk` utility sends repeated GETNEXT requests starting from the root of the MIB, allowing an attacker to discover system information such as running processes, network interfaces, and user accounts. In real-world engagements, this is a common first step in SNMP enumeration to identify misconfigured devices with default community strings.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A practitioner preparing for the CEH exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Enumeration and System Hacking — study guide chapter
Learn the concepts, then practise the questions
- →
Enumeration and System Hacking practice questions
Targeted practice on this topic area only
- →
All CEH questions
1,010 questions across all exam domains
- →
Certified Ethical Hacker CEH study guide
Full concept coverage aligned to exam objectives
- →
CEH practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related CEH practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Footprinting, Reconnaissance and Scanning practice questions
Practise CEH questions linked to Footprinting, Reconnaissance and Scanning.
Enumeration and System Hacking practice questions
Practise CEH questions linked to Enumeration and System Hacking.
Malware, Social Engineering and Network Attacks practice questions
Practise CEH questions linked to Malware, Social Engineering and Network Attacks.
Web Application and Injection Attacks practice questions
Practise CEH questions linked to Web Application and Injection Attacks.
Introduction to Ethical Hacking practice questions
Practise CEH questions linked to Introduction to Ethical Hacking.
Scanning Networks and Enumeration practice questions
Practise CEH questions linked to Scanning Networks and Enumeration.
Vulnerability Analysis and System Hacking practice questions
Practise CEH questions linked to Vulnerability Analysis and System Hacking.
Advanced Topics: Wireless, Cloud, IoT, Cryptography practice questions
Practise CEH questions linked to Advanced Topics: Wireless, Cloud, IoT, Cryptography.
Footprinting and Reconnaissance practice questions
Practise CEH questions linked to Footprinting and Reconnaissance.
Network and Web Application Attacks practice questions
Practise CEH questions linked to Network and Web Application Attacks.
Wireless, IoT and Cloud Security practice questions
Practise CEH questions linked to Wireless, IoT and Cloud Security.
Cryptography and Malware Analysis practice questions
Practise CEH questions linked to Cryptography and Malware Analysis.
Practice this exam
Start a free CEH practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this CEH question test?
Enumeration and System Hacking — This question tests Enumeration and System Hacking — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Enumerate the MIB tree of the SNMP agent using the 'public' community string — The `snmpwalk` command is used to retrieve a subtree of management information from an SNMP agent. By specifying `-c public` (the community string) and `-v2c` (SNMP version 2c), the command performs a GETNEXT request cycle to walk the entire MIB tree, enumerating all accessible OIDs and their values. Option D correctly identifies this as enumerating the MIB tree using the 'public' community string.
What should I do if I get this CEH question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "best". Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
3 more ways this is tested on CEH
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Which of the following commands is used to enumerate SNMP information from a network device using a specific community string?
easy- A.ldapsearch -x -h 192.168.1.1 -b dc=domain,dc=com
- B.enum4linux -a 192.168.1.1
- ✓ C.snmpwalk -c public -v 2c 192.168.1.1
- D.nbtstat -a 192.168.1.1
Why C: Option C is correct because `snmpwalk` is the standard command-line tool for enumerating SNMP (Simple Network Management Protocol) information from a network device. By specifying the community string (`-c public`) and SNMP version (`-v 2c`), it retrieves the entire Management Information Base (MIB) tree from the target IP address, allowing an attacker to discover system details, running processes, and network interfaces.
Variation 2. A security engineer runs SNMPwalk on a network device and receives community strings as 'public' and 'private'. What is the PRIMARY concern?
medium- A.The device is vulnerable to buffer overflow attacks
- B.The device is infected with malware
- ✓ C.The device may be exposing sensitive configuration information
- D.The device is using outdated encryption protocols
Why C: The SNMP community strings 'public' and 'private' are default read-only and read-write credentials defined in SNMPv1 and SNMPv2c. An attacker who can SNMPwalk the device with these strings can enumerate the entire MIB tree, including system configuration, routing tables, interface details, and user accounts. This directly exposes sensitive configuration information, making C the primary concern.
Variation 3. Which SNMP community string is typically used for read-only access by default on many devices?
easy- A.snmp
- B.private
- C.admin
- ✓ D.public
Why D: The default read-only community string in SNMPv1 and SNMPv2c is 'public'. This string acts as a password that allows an SNMP manager to query device MIB objects for monitoring purposes without making configuration changes. It is widely documented in RFC 1157 and is the standard default across most networking equipment.
Last reviewed: Jun 24, 2026
This CEH practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CEH exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.