3. IOT DATA PROTOCOLS Flashcards
40 Questions
What is the HTTP method used to create a new resource in RESTful architecture?
PUT
a. PUT
b. DELETE
c. POST
d. GET
POST
What is the default port number for MQTT?
a. 8080
b. 1883
c. 80
d. 8883
1883
What is a topic in MQTT?
a. A string used to filter messages in a publish/subscribe model
b. A unique identifier for a message
c. A client identifier
d. A message payload
A string used to filter messages in a publish/subscribe model
MQTT transmits data to and from a broker in which format. (Choose the best option)
a. Text based data
b. XML
c. JSON
d. Binary data
Binary data
MQTT is _______ oriented.
a. Data
b. Device
c. Message
d. Network
Message
What type of protocol is MQTT?
a. Application protocol
b. Network protocol
c. Transport protocol
d. Presentation protocol
Application protocol
What is a resource in the context of RESTful web services?
a. An entity that can be accessed and manipulated through a URI
b. A function that performs a specific action
c. A container for storing data in a web application
d. A set of procedures for accessing a database
An entity that can be accessed and manipulated through a URI
In RESTful APIs, what is used to uniquely identify a resource?
a. API key
b. URI (Uniform Resource Identifier)
c. Session ID
d. Query parameters
URI (Uniform Resource Identifier)
In RESTful APIs, what does a status code in the 5xx range signify?
a. Server error
b. Redirection
c. Successful operation
d. Client error
Server error
Which protocol is CoAP closely modeled after?
a. HTTP
b. AMQP
c. FTP
d. MQTT
HTTP
CoAP Protocol is comprised of which sub-layers?
a. UDP
b. Request & Response
c. Observation
d. Message
- Request & Response
- Message
What is the maximum number of clients that can subscribe to a single topic in MQTT?
a. 10
b. 1
c. 100
d. Unlimited
Unlimited
What does MQTT stand for?
a. Message Querying Telecommunication Transmission
b. Message Queuing Transaction Transport
c. Message Queuing Telemetry Transport
d. Message Quorum Transport Technology
Message Queuing Telemetry Transport
What does CoAP stand for?
a. Compact Application Protocol
b. Constrained Application Protocol
c. Common Application Protocol
d. Control Application Protocol
Constrained Application Protocol
Which layer is CoAP?
a. Transport layer
b. Application layer
c. Service layer
d. Control layer
Application layer
CoAP is specialized in?
a. Wired applications
b. Internet applications
c. Wireless applications
d. Device applications
Internet applications
What transport layer protocol does CoAP use?
a. ICMP
b. REST
c. UDP
d. TCP
UDP
CoAP supports which of the following methods similar to HTTP?
a. CONNECT, TRACE, PATCH
b. None of them
c. OPTIONS, HEAD
d. GET, POST, PUT, DELETE
GET, POST, PUT, DELETE
CoAP is designed for which kind of networks?
a. Resource-constrained networks
b. Datacenter Networks
c. Wide Area Networks (WAN)
d. Local Area Networks (LAN)
Resource-constrained networks
CoAP messages can be of which types?
a. Confirmable and Non-Confirmable
b. Request and Response
c. Synchronous and Asynchronous
d. Persistent and Transient
Confirmable and Non-Confirmable
Which of the following is NOT a constraint of RESTful architecture?
a. Cookie-based authentication
b. Cacheability
c. Statelessness
d. Client-server architecture
Cookie-based authentication
What does idempotence mean in the context of RESTful APIs?
a. The API produces different results with each request
b. The API can handle asynchronous requests
c. The API encrypts data for security
d. The API produces the same result no matter how many times the same request is made
The API produces the same result no matter how many times the same request is made
The core of the protocol is specified in ______?
a. RFC 7452
b. RFC 7252
c. RFC 7524
d. RFC 7254
RFC 7252
To receive a retained message?
a. You must keep the message.
b. You must subscribe with the retained message set.
c. You must subscribe to a topic that has been published with the retained message set.
d. You must subscribe with a QOS of 1 or 2
You must subscribe to a topic that has been published with the retained message set.
Which HTTP status code indicates a successful GET request in a RESTful API?
a. 400 Bad Request
b. 201 Created
c. 200 OK
d. 500 Internal Server Error
200 OK
CoAP is a specialised _________ protocol.
a. Power
b. Web transfer
c. Resource
d. Application
Application
Which of the following QoS levels in MQTT ensures message delivery at least once?
a. QoS 0
b. None of them.
c. QoS 2
d. QoS 1
QoS 1
Which of the following is not a characteristic of MQTT?
a. Quality of Service (QoS)
b. Request/response messaging model
c. Low overhead
d. Publish/subscribe messaging model
Request/response messaging model
The Last Will Message is used to:
a. Gain inheritance
b. Notify a publisher of a network failure
c. Guarantee that the message was delivered
d. Notify clients of a failure in the publisher
Notify clients of a failure in the publisher
Which of the following is not a client type in MQTT?
a. Broker
b. Publisher
c. Producer
d. Subscriber
Producer
In RESTful APIs, what is the purpose of a payload in a POST request?
a. To provide additional headers
b. To deliver the client’s request to the server
c. To contain the data being sent by the client
d. To carry control information
To contain the data being sent by the client
What is the primary role of a RESTful API’s Uniform Interface constraint?
a. To define specific operations like GET and POST
b. To separate client and server implementations
c. To ensure that the API is stateful
d. To standardize the way clients interact with the server
To standardize the way clients interact with the server
MQTT uses the publish/subscribe model.
How does the publisher know who is subscribing?
a. The subscriber informs the publisher
b. Publisher uses the “Eye of Sauron”
c. The publisher doesn’t know
d. The publisher gets notified when they subscribe.
The publisher doesn’t know
Which HTTP method should be used to update an existing resource in RESTful web services?
a. PUT
b. GET
c. POST
d. DELETE
PUT
CoAP provides which of the following requirements?
a. Simplicity and low overhead
b. Lower overhead and multicast support
c. Multicast support and simplicity
d. Multicast support, lower overhead and simplicity
Multicast support, lower overhead and simplicity
What mechanism does RESTful APIs use to indicate the current state of the resource?
a. HTTP headers
b. Response body
c. HTTP status codes
d. API tokens
HTTP status codes
Select the TRUE statement(s) for CoAP protocol?
a. Uses GET message requests to retrieve subscription.
b. Uses FETCH message requests to retrieve subscription.
c. Uses PUSH message requests to create subscription.
d. Uses PUT message requests to create subscription.
- Uses GET message requests to retrieve subscription.
- Uses PUT message requests to create subscription.
What does REST stand for?
a. Real-time State Transfer
b. Representational State Transfer
c. Remote Server Transaction
d. Relative State Transmission
Representational State Transfer
Which of the following HTTP methods is used to retrieve a resource in RESTful architecture?
a. PUT
b. GET
c. POST
d. DELETE
GET
What type of architecture does RESTful APIs follow?
a. Peer-to-peer architecture
b. Monolithic architecture
c. Client-server architecture
d. Publisher-Subscriber architecture
e. Microservices architecture
Client-server architecture