Module 3 Flashcards

1
Q

What is the 5 component characteristics?

A

Composable, deployable, documented, independent and standarized

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

A component being composable means?

A

All external interactions must be through public interfaces. It must also provide information about itself, such as methods and attributes

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

A component being deployable means?

A

Has to be self contained, and able to operate as a stand-alone entity. (Generally means it is binary and does not need for it to be compiled)
Being deployed by the service provider

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

How do you make a singleton (design pattern) class?

A

A private constructor in the class. Other classes can’t access the constructor, and should only get that one instance of the class.

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

What does a proxy do?

A

It acts as intermediary between the web application and the remote service.
it will handle requests, limit and availability checks before forwarding them to the real object.

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

What does DOM stand for?

A

Document Object Model

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

What does MQTT stand for?

A

Message queuing telemetry transport

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

MQTT is designed for what kind of devices?

A

Machine-to-machine, IOT

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

In MQTT, what is something published on?

A

A topic. Similiar as a news site. Subscribing to sports, sends current goal scorings

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

MQTT protocal is made for low-bandwith high-latency systems?

A

True. Farms, Oil rigs and other far away systems that only needs information, when something changes

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

In MQTT, what are the three levels of Quality of Service for delivery?

A

0 (At most once), 1(at least once), and 2 (exactly once)

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

In MQTT, 0 level of QoS works how?

A

“At most one delivery” It will TRY to send a message once (new value on sensor e.g)

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

In MQTT, 1st level of QoS works how?

A

“At least once” Broker will send a pull back message once received, as confirmation that it received new information and to not send it again.

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

In MQTT, 2nd level of QoS works how?

A

“Exactly once”. Similar to a handshake, both the broker and the client confirm that each of them received it AND the other parts pull back message and ends the transaction.

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

In MQTT, what are the three types of messages?

A

Publish, Subscribe and Unsubscribe

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