Set1 Flashcards

learning

1
Q

Which library would you leverage to support backup of multiple devices concurrently?

A

Python asyncio library

This library allows for asynchronous programming, enabling multiple tasks to run at the same time.

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

What version of Python should the environment be updated to for the backup tool?

A

Python 3

Updating to Python 3 is necessary for compatibility with modern libraries and features.

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

What optional argument should be added to the script to limit backup jobs?

A

—device

This argument allows users to specify which devices to back up.

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

What should be compared before saving a new backup to disk?

A

The checksum from the last stored backup and the latest one

This ensures data integrity and prevents unnecessary backups.

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

What tool can be used to automatically update the script code to support Python 3 syntax?

A

2to3

This tool is designed to convert Python 2 code to Python 3.

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

What should be done with the network inventory for running instances of the backup script?

A

Split into four pieces

This allows for parallel execution, improving efficiency.

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

What configuration should be checked before executing a backup?

A

Last modified time on the device

Skipping backups if there has been no change saves resources.

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

True or False: The script should run regardless of whether the configuration has changed since the last backup.

A

False

The script should skip backups if there have been no changes.

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