๐ŸŽ“ BookMCQ
โ† Back to 27. Network Management

๐Ÿ“ SNMP messages and PDUs (26 MCQs)

๐Ÿ“– From Data Communication and Networks โ€ข 27. Network Management โ€ข 26 questions available

What is SNMP messages and PDUs?

SNMP uses Protocol Data Units (PDUs) such as GetRequest, GetNextRequest, SetRequest, Response, and Trap to communicate between manager and agent; each PDU carries operation type, request ID, variable bindings, and optional error status to facilitate precise management actions.

9
Easy
12
Medium
5
Hard

๐Ÿ“ All SNMP messages and PDUs MCQs

Q1. What does SNMP stand for?

A.Simple Network Management Protocol โœ…
B.Secure Network Management Procedure
C.Systematic Node Monitoring Process
D.Standardized Network Message Package
๐Ÿ’ก Difficulty: easy | โœ… Correct: A

๐Ÿ“– Explanation: Simple Network Management Protocol is the standard name for SNMP, a protocol used to monitor and manage network devices. The other options are fabricated terms that do not correspond to the widely accepted definition, making option A the correct choice.

Q2. In SNMP, what is an OID?

A.Object Identifier โœ…
B.Operational Interface Device
C.Open Input Data
D.Orderly Integration Descriptor
๐Ÿ’ก Difficulty: easy | โœ… Correct: A

๐Ÿ“– Explanation: An OID, or Object Identifier, uniquely identifies a managed object in the MIB hierarchy. The other choices are unrelated acronyms, so the correct answer is the one that defines the term used throughout SNMP specifications.

Q3. What does MIB represent in SNMP?

A.Management Information Base โœ…
B.Memory Interface Buffer
C.Main Identifier Block
D.Multi-network Integration Bus
๐Ÿ’ก Difficulty: easy | โœ… Correct: A

๐Ÿ“– Explanation: MIB stands for Management Information Base, a collection of object definitions used by SNMP to represent device information. The remaining options are invented and do not match the established meaning, so option A is correct.

Q4. If an SNMP manager sends a GetRequest to an agent that lacks the requested OID, what is the most likely response?

A.No response
B.GetResponse with error-status nonโ€‘zero โœ…
C.Trap message
D.SetRequest
๐Ÿ’ก Difficulty: easy | โœ… Correct: B

๐Ÿ“– Explanation: When an agent cannot locate the requested OID, it still replies with a GetResponse PDU, setting the errorโ€‘status field to a nonโ€‘zero value indicating \noSuchName\. This behavior is defined in the SNMP protocol, making option B correct.

Q5. When the SNMP community string is set to 'public', which of the following is most likely?

A.Readโ€‘only access โœ…
B.Readโ€‘write access
C.No access
D.Administrative access
๐Ÿ’ก Difficulty: easy | โœ… Correct: A

๐Ÿ“– Explanation: The default community string 'public' is conventionally used for readโ€‘only operations, allowing managers to retrieve information but not modify it. Therefore, the expected effect is limited to readโ€‘only access, corresponding to option A.

Q6. If an SNMP manager does not receive a response within the timeout period, it will retry up to the configured retry count. How does increasing the retry count affect network traffic?

A.Decreases traffic
B.Increases traffic proportionally โœ…
C.No effect
D.Causes immediate failure
๐Ÿ’ก Difficulty: medium | โœ… Correct: B

๐Ÿ“– Explanation: Each retry generates an additional request packet, so raising the retry count adds more packets to the network, proportionally increasing traffic. The other options contradict the retry mechanism, making option B the accurate description.

Q7. When an SNMPv3 user is configured with authentication but no privacy, what is the impact on the confidentiality of transmitted data?

A.Data is encrypted
B.Data is only authenticated โœ…
C.Data is unauthenticated
D.Data is signed only
๐Ÿ’ก Difficulty: medium | โœ… Correct: B

๐Ÿ“– Explanation: Authentication without privacy means the manager can verify the sender's identity, but the payload remains in clear text. Hence confidentiality is not protected, while integrity is, which matches option B.

Q8. If an SNMP manager requires acknowledgment of a notification, which type of message should it request from the agent, and why?

A.Trap (no ack)
B.Inform (requires ack) โœ…
C.Get (pull)
D.Set (push)
๐Ÿ’ก Difficulty: hard | โœ… Correct: B

๐Ÿ“– Explanation: Inform messages are a variant of traps that require the manager to acknowledge receipt, ensuring reliable delivery. Traps do not provide acknowledgment, so the manager must request an Inform to guarantee confirmation, making option B correct.

Q9. Which scenario best illustrates why relying solely on SNMP traps may be insufficient for monitoring critical events?

A.Traps are always reliable
B.Traps may be lost โœ…
C.Polling ensures realโ€‘time
D.Traps provide encryption
๐Ÿ’ก Difficulty: medium | โœ… Correct: B

๐Ÿ“– Explanation: Traps are sent asynchronously and can be dropped due to network congestion or agent failures. Consequently, critical events might be missed if traps are the only monitoring mechanism, which is why option B is the most accurate.

Q10. Which statement correctly differentiates SNMPv1 from SNMPv2c?

A.v2c adds bulk retrieval โœ…
B.v1 adds security
C.v2c removes community strings
D.v1 supports inform messages
๐Ÿ’ก Difficulty: easy | โœ… Correct: A

๐Ÿ“– Explanation: SNMPv2c introduced the GETBULK operation, allowing efficient retrieval of large tables, whereas SNMPv1 lacks this capability. The other statements describe features not introduced in those versions, so option A is correct.

Q11. What is the primary functional difference between SNMP GET and GETNEXT operations?

A.GET retrieves a specific OID โœ…
B.GETNEXT retrieves the next OID in the MIB tree
C.GET modifies values
D.GETNEXT deletes an OID
๐Ÿ’ก Difficulty: easy | โœ… Correct: A

๐Ÿ“– Explanation: A GET request targets an exact OID supplied by the manager, while GETNEXT walks the MIB by returning the next OID after the one specified. Therefore, the key distinction is that GET is precise, matching option A.

Q12. In terms of network overhead, how does periodic SNMP polling compare to eventโ€‘driven SNMP traps for a large number of managed devices?

A.Polling uses less bandwidth
B.Traps generate less traffic
C.Polling generates more traffic โœ…
D.Both equal
๐Ÿ’ก Difficulty: medium | โœ… Correct: C

๐Ÿ“– Explanation: Polling requires the manager to send regular requests to every device, creating many packets, whereas traps are sent only when events occur. For many devices, this results in higher overall traffic for polling, so option C is correct.

Q13. Considering security, which SNMP version provides the strongest protection against eavesdropping and why?

A.v1 (no auth)
B.v2c (no auth)
C.v3 with auth and priv โœ…
D.v3 with auth only
๐Ÿ’ก Difficulty: medium | โœ… Correct: C

๐Ÿ“– Explanation: SNMPv3 supports both authentication (auth) and privacy (priv) using cryptographic algorithms, encrypting the payload and preventing eavesdropping. Versions 1 and 2c lack encryption, and v3 with only auth does not hide data, making option C the best answer.

Q14. If an organization uses the default community string 'public' for all devices, what is the most likely security risk?

A.Unauthorized read access โœ…
B.Unauthorized write access
C.No risk
D.Encryption bypass
๐Ÿ’ก Difficulty: hard | โœ… Correct: A

๐Ÿ“– Explanation: The default 'public' string grants readโ€‘only access to anyone who knows it, allowing attackers to harvest configuration and status information. While it does not permit writes, the exposure of data is a significant risk, supporting option A.

Q15. When designing a custom MIB module for temperature sensors, which practice best ensures scalability?

A.Use a single OID for all sensors
B.Assign a separate subtree per sensor โœ…
C.Hardcode sensor IDs
D.Use volatile OIDs
๐Ÿ’ก Difficulty: medium | โœ… Correct: B

๐Ÿ“– Explanation: Allocating a distinct subtree for each sensor (e.g., .1, .2, .3โ€ฆ) allows new devices to be added without renumbering existing OIDs, supporting scalable growth. The other approaches either limit expansion or introduce instability.

Q16. For retrieving a large table of interface statistics, which SNMP operation is most efficient and why?

A.GET
B.GETNEXT
C.GETBULK โœ…
D.SET
๐Ÿ’ก Difficulty: hard | โœ… Correct: C

๐Ÿ“– Explanation: GETBULK can return multiple rows in a single response, dramatically reducing the number of roundโ€‘trips compared with repeated GETNEXT calls. This efficiency makes it the preferred choice for large tables, so option C is correct.

Q17. How could an SNMP manager monitor the throughput of the TCP echo server described in the code snippet?

A.By reading a custom MIB counter โœ…
B.By sending a GET to system uptime
C.By using ICMP ping
D.By modifying the code to send traps
๐Ÿ’ก Difficulty: easy | โœ… Correct: A

๐Ÿ“– Explanation: Embedding a custom MIB object that increments each time the server sends data provides a direct measure of throughput. The manager can poll this counter to obtain realโ€‘time statistics, making option A the appropriate method.

Q18. If you wanted to integrate SNMP trap generation into the echo server after each successful echo, which architectural change is most appropriate?

A.Add a trap send after send() โœ…
B.Replace TCP with UDP
C.Remove SNMP manager
D.Use SNMP GET
๐Ÿ’ก Difficulty: medium | โœ… Correct: A

๐Ÿ“– Explanation: Injecting a trap transmission immediately after the existing send() call preserves the serverโ€™s TCP behavior while providing asynchronous notifications to the manager. The other options either change the transport protocol or eliminate SNMP functionality.

Q19. Applying the principle of least privilege, how should community strings be configured for readโ€‘only monitoring of the echo server?

A.Use 'public' as readโ€‘write
B.Use distinct readโ€‘only string โœ…
C.Use same string for all
D.Disable community strings
๐Ÿ’ก Difficulty: medium | โœ… Correct: B

๐Ÿ“– Explanation: Creating a dedicated readโ€‘only community string (e.g., 'monitor') limits access to viewing data and prevents accidental modifications, aligning with the leastโ€‘privilege principle. Using the default 'public' for both read and write would violate this principle.

Q20. Design a scalable SNMP monitoring scheme for 500 echo servers distributed across subnets, ensuring minimal impact on network performance. Which combination is most effective?

A.Use SNMPv1 with frequent polling
B.Use SNMPv3 with bulk and inform โœ…
C.Use SNMPv2c with traps only
D.Use custom TCP protocol
๐Ÿ’ก Difficulty: hard | โœ… Correct: B

๐Ÿ“– Explanation: SNMPv3 provides security, bulk retrieval reduces roundโ€‘trips, and inform messages guarantee delivery without overwhelming the network. This combination balances performance, reliability, and security across many devices, making option B optimal.

Q21. Which OID subtree would be most logical for grouping all echo server instances if the enterprise number is 12345?

A.1.3.6.1.4.1.12345.1 โœ…
B.1.3.6.1.2.1.12345
C.1.3.6.1.4.1.12345.2
D.1.3.6.1.4.1.1.12345
๐Ÿ’ก Difficulty: medium | โœ… Correct: A

๐Ÿ“– Explanation: Enterpriseโ€‘specific objects are placed under .1.3.6.1.4.1.<enterprise>. Assigning a dedicated branch (e.g., .1) for echo servers follows standard MIB structuring, making option A the most appropriate choice.

Q22. An organization mandates that all SNMP communications be encrypted. Which configuration satisfies this requirement while maintaining backward compatibility with legacy devices that only support SNMPv2c?

A.Deploy SNMPv3 with authPriv and use a gateway that translates to v2c โœ…
B.Use only SNMPv2c with community strings
C.Use SNMPv1 with plaintext
D.Disable SNMP
๐Ÿ’ก Difficulty: hard | โœ… Correct: A

๐Ÿ“– Explanation: Implementing SNMPv3 with authentication and privacy meets encryption needs, and a translation gateway can expose v2c interfaces for legacy devices, preserving compatibility. The other options either lack encryption or eliminate SNMP entirely.

Q23. To ensure continuous monitoring despite occasional packet loss, which SNMP feature should be enabled on the manager?

A.Increase timeout
B.Enable inform requests โœ…
C.Disable retries
D.Use only traps
๐Ÿ’ก Difficulty: medium | โœ… Correct: B

๐Ÿ“– Explanation: Inform requests combine the asynchronous nature of traps with acknowledgment, allowing the manager to detect lost notifications and request retransmission. This provides resilience against packet loss, whereas the other options either reduce reliability or stop monitoring.

Q24. Which SNMP operation would you use to change the maximum buffer size of the echo server remotely?

A.GET
B.SET โœ…
C.GETNEXT
D.INFORM
๐Ÿ’ก Difficulty: easy | โœ… Correct: B

๐Ÿ“– Explanation: The SET operation is designed to modify the value of a writable MIB object, such as a buffer size parameter. GET retrieves values, GETNEXT walks the tree, and INFORM sends notifications, so option B is correct.

Q25. If an SNMP manager does not receive a response within the timeout period, it will retry up to the configured retry count. How does increasing the retry count affect network traffic?

A.Decreases traffic
B.Increases traffic proportionally โœ…
C.No effect
D.Causes immediate failure
๐Ÿ’ก Difficulty: medium | โœ… Correct: B

๐Ÿ“– Explanation: Each retry generates an additional request packet, so raising the retry count adds more packets to the network, proportionally increasing traffic. The other options contradict the retry mechanism, making option B the accurate description.

Q26. If an SNMP manager uses the community string 'private' for write access on a subset of devices, but the same string is also configured on other devices for readโ€‘only, what is the most likely security implication?

A.Write operations may be allowed on all devices โœ…
B.Read access is blocked
C.No impact
D.Authentication fails
๐Ÿ’ก Difficulty: medium | โœ… Correct: A

๐Ÿ“– Explanation: Using the same community string for both readโ€‘only and readโ€‘write contexts creates ambiguity; agents that interpret 'private' as writeโ€‘enabled could permit unauthorized modifications across all devices, representing a significant security risk.

๐Ÿ”— Related Topics (MCQs)