CoAP is designed for devices with limited resources. Which of the following reasons best explains why CoAP fits well with constrained devices?
Think about how network protocols affect battery life and bandwidth on small devices.
CoAP uses UDP, which is lightweight and requires less overhead than TCP. This reduces bandwidth and power consumption, making it ideal for constrained devices.
Given a CoAP message and an HTTP message with the same payload, which statement about their sizes is true?
Consider the protocol headers and encoding used by CoAP and HTTP.
CoAP uses a compact binary header and UDP, which results in smaller message sizes compared to HTTP's text-based headers over TCP.
Which sequence correctly describes the workflow of a confirmable CoAP message?
Confirmable messages require acknowledgment from the receiver.
In CoAP, a confirmable (CON) message requires the server to reply with an acknowledgment (ACK). If the server has a separate response, it sends it after the ACK.
A constrained device using CoAP over UDP is experiencing message loss. Which is the most likely cause?
Think about the nature of UDP and how it handles packet delivery.
UDP is connectionless and does not guarantee delivery. CoAP handles reliability at the application layer, but message loss can still occur if retransmissions fail.
Which approach is best for securing CoAP communication on constrained devices?
Consider security protocols designed for UDP and constrained environments.
DTLS provides encryption and security for UDP-based protocols like CoAP, making it suitable for constrained devices without the overhead of TCP-based TLS.
