JNCIA-DevOps: Juniper Networks Certified Associate – Automation (2023) — Question 5

Which two PyEZ object methods are included by default when using a Python context manager? (Choose two.)

Answer options

Correct answer: A, C

Explanation

The correct methods included by default when using a Python context manager are lock() and unlock(), which manage the locking mechanism. Additionally, load() and commit() are also part of the default methods, as they are crucial for handling configurations, while the other options do not pertain to the context manager functionality.