JN0-221 Exam QuestionsBrowse all questions from this exam

JN0-221 Exam - Question 23


Click the Exhibit button.

Referring to the exhibit, which two statements are correct? (Choose two.)

Show Answer
Correct Answer: BD

The retrieved configuration will be from the Junos active configuration because the parameter 'retrieve' is set to 'committed', which refers to the active configuration. The configuration will be retrieved in XML format by default unless another format is specified, and no specific format has been set in this script.

Discussion

6 comments
Sign in to comment
lucabobanOptions: AC
Feb 17, 2021

Correct answer will be: AC active configuration = current committed configuration of a device. Thus, it cant be a candidate configuration.

fakrulalamOptions: AB
Oct 5, 2021

Answer A & B. output will be in JSON retrieve: 'committed' -> active configuration

lucabobanOptions: AB
Feb 17, 2021

Correction - not AC, but AB

Evangelist69Options: BD
Jun 29, 2022

B) retrieve: 'committed' -> active configuration D) i have doubt https://www.juniper.net/documentation/us/en/software/junos-ansible/ansible/topics/topic-map/junos-ansible-configuration-retrieving.html By default, the module returns configuration data as formatted text, which uses newlines, tabs and other white space, braces, and square brackets to indicate the hierarchical relationships between the statements. To specify the format in which to return the configuration data, set the format parameter equal to the desired format. To explicitly request text format, or to request Junos XML elements, Junos OS set commands, or JSON format, set the format value to 'text', 'xml', 'set', or 'json', respectively.

shabbir1282Options: BD
May 17, 2021

By default, the module returns configuration data as formatted text, which uses newlines, tabs and other white space, braces, and square brackets to indicate the hierarchical relationships between the statements. https://www.juniper.net/documentation/en_US/junos-ansible/topics/topic-map/junos-ansible-configuration-retrieving.html text is not in the answer. the next candidate is XML, in pyez default is xml, for json, {'format': 'json'} is used.

penguin02007Options: AB
Nov 14, 2023

Output json from active config.