3. IOT DATA PROTOCOLS Flashcards

40 Questions

1
Q

What is the HTTP method used to create a new resource in RESTful architecture?
PUT

a. PUT
b. DELETE
c. POST
d. GET

A

POST

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the default port number for MQTT?

a. 8080
b. 1883
c. 80
d. 8883

A

1883

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A string used to filter messages in a publish/subscribe model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

Binary data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

MQTT is _______ oriented.

a. Data
b. Device
c. Message
d. Network

A

Message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What type of protocol is MQTT?

a. Application protocol
b. Network protocol
c. Transport protocol
d. Presentation protocol

A

Application protocol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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

A

An entity that can be accessed and manipulated through a URI

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A

URI (Uniform Resource Identifier)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In RESTful APIs, what does a status code in the 5xx range signify?

a. Server error
b. Redirection
c. Successful operation
d. Client error

A

Server error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which protocol is CoAP closely modeled after?

a. HTTP
b. AMQP
c. FTP
d. MQTT

A

HTTP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

CoAP Protocol is comprised of which sub-layers?

a. UDP
b. Request & Response
c. Observation
d. Message

A
  1. Request & Response
  2. Message
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the maximum number of clients that can subscribe to a single topic in MQTT?

a. 10
b. 1
c. 100
d. Unlimited

A

Unlimited

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A

Message Queuing Telemetry Transport

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does CoAP stand for?

a. Compact Application Protocol
b. Constrained Application Protocol
c. Common Application Protocol
d. Control Application Protocol

A

Constrained Application Protocol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which layer is CoAP?

a. Transport layer
b. Application layer
c. Service layer
d. Control layer

A

Application layer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

CoAP is specialized in?

a. Wired applications
b. Internet applications
c. Wireless applications
d. Device applications

A

Internet applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What transport layer protocol does CoAP use?

a. ICMP
b. REST
c. UDP
d. TCP

A

UDP

15
Q

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

A

GET, POST, PUT, DELETE

16
Q

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)

A

Resource-constrained networks

16
Q

CoAP messages can be of which types?

a. Confirmable and Non-Confirmable
b. Request and Response
c. Synchronous and Asynchronous
d. Persistent and Transient

A

Confirmable and Non-Confirmable

17
Q

Which of the following is NOT a constraint of RESTful architecture?

a. Cookie-based authentication
b. Cacheability
c. Statelessness
d. Client-server architecture

A

Cookie-based authentication

18
Q

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

A

The API produces the same result no matter how many times the same request is made

19
Q

The core of the protocol is specified in ______?

a. RFC 7452
b. RFC 7252
c. RFC 7524
d. RFC 7254

A

RFC 7252

20
Q

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

A

You must subscribe to a topic that has been published with the retained message set.

21
Q

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

A

200 OK

22
Q

CoAP is a specialised _________ protocol.

a. Power
b. Web transfer
c. Resource
d. Application

A

Application

23
Q

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

A

QoS 1

24
Q

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

A

Request/response messaging model

25
Q

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

A

Notify clients of a failure in the publisher

26
Q

Which of the following is not a client type in MQTT?

a. Broker
b. Publisher
c. Producer
d. Subscriber

A

Producer

26
Q

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

A

To contain the data being sent by the client

27
Q

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

A

To standardize the way clients interact with the server

28
Q

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.

A

The publisher doesn’t know

29
Q

Which HTTP method should be used to update an existing resource in RESTful web services?

a. PUT
b. GET
c. POST
d. DELETE

A

PUT

30
Q

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

A

Multicast support, lower overhead and simplicity

31
Q

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

A

HTTP status codes

32
Q

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.

A
  1. Uses GET message requests to retrieve subscription.
  2. Uses PUT message requests to create subscription.
33
Q

What does REST stand for?

a. Real-time State Transfer
b. Representational State Transfer
c. Remote Server Transaction
d. Relative State Transmission

A

Representational State Transfer

34
Q

Which of the following HTTP methods is used to retrieve a resource in RESTful architecture?

a. PUT
b. GET
c. POST
d. DELETE

A

GET

35
Q

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

A

Client-server architecture