0.4 Introduction to Canisters Flashcards

1
Q

What are backend canisters?

A

Canisters that have no contact with the user. They contain dapp functionalities

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

What are custom canisters?

A

Canisters that don’t fit into either front end or backend. they can be a mixture of front end and backend or may be used for specific individual functionalities within the dapp

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

What is a canister with no controller?

A

An immutable smart contract (value can’t be reassigned)

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

What are the different types of canister?

A

user, organization other canisters

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

How many actors can one canister have?

A

1

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

What are the two types of canister messaging

A

requests and replies

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

What is trapping?

A

When a canister doesn’t reply to a request

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

What are update calls used for?

A

to modify canister state

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

What are query calls used for?

A

To read data from the canister. they can not modify canister state

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

What are the 8 roles of a controller?

A

Ensure that the canister contains enough cycles

Deploy and maintain cycles

Deploy the mainnet

Start/stop canisters

Change canister parameters

Add/remove additional controllers

Delete canisters

Update canister code

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

How is canister code updated?

A

by controllers submitting a new Wasm module to replace the old one

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

Where should data you want to persist be stored in a canister if you are going to upgrade it? Why?

A

In the stable memory because Wasm memory is cleared when the canister is upgraded

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

What happens if a canister runs out of cycles?

A

The canister is uninstalled and deleted.
There is a freezing threshold to prevent this

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