Exam4Training

Juniper JN0-223 Automation and DevOps, Associate (JNCIA-DevOps) Online Training

Question #1

What are two popular methods of data serialization? (Choose two.)

  • A . Python
  • B . JSON
  • C . SLAX
  • D . YAML

Reveal Solution Hide Solution

Correct Answer: BD
BD

Explanation:

Reference: https://docs.python-guide.org/scenarios/serialization/

Question #2

Exhibit.

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

  • A . The Junos configuration database is automatically locked and unlocked.
  • B . The connection to the Junos device is explicitly opened and closed
  • C . The connection to the Junos device is automatically opened and closed
  • D . The Junos configuration database is explicitly locked and unlocked

Reveal Solution Hide Solution

Correct Answer: A,D
Question #3

Which HTTP status code indicates a response to a successful request?

  • A . 500
  • B . 302
  • C . 200
  • D . 400

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

Reference: https://www.juniper.net/documentation/en_US/junos-space­sdk/13.1/apiref/com.juniper.junos_space.sdk.help/html/reference/Commonbehav.html

Question #4

Exhibit.

Referring to the exhibit, what is the function of the register key?

  • A . to set an input value for the juniper_junos_rpc module
  • B . to configure a global setting for the playbook
  • C . to define a variable containing the return value from the module
  • D . to print a result to standard out

Reveal Solution Hide Solution

Correct Answer: C
Question #5

Junos PyEZ is a microframework used to operate the Junos OS using which language?

  • A . Puppet
  • B . Chef
  • C . Python
  • D . Ruby

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation: Explanation

Reference: https://www.juniper.net/documentation/en_US/junos-pyez/topics/concept/junos­pyezoverview.html#:~:text=Junos%20PyEZ%20is%20a%20microframework,operating%20 system%20(Junos%

20OS).

Question #6

Exhibit.

Referring to the exhibit, where would the junos. conf file be found?

  • A . a directory located on R1
  • B . a directory on juniper__}uno3_conf
  • C . a local directory on the Ansible control machine
  • D . a directory on the device list in inventory_hostname

Reveal Solution Hide Solution

Correct Answer: C
Question #7

Exhibit.

You have the configuration shown in the exhibit, but are unable to access the REST API Explorer.

Which configuration is necessary to solve this problem?

  • A . Configure the rest service to be active on port 80.
  • B . Configure an IPv4 address on ge-0/0/0 0.
  • C . Configure a secondary IPv6 address on ge-0/0/0.0.
  • D . Configure a firewall filter to explicitly permit SSH.

Reveal Solution Hide Solution

Correct Answer: C
Question #8

Which Python code block is an example of a context manager?

  • A . while True: device C Device(host-“vmx-1”, user-“lab”, passwd-“lab123”)…
  • B . try: device C Device(host-“vmx-1”, user-“lab”, passwd-“lab123”)… except: print(“Unable to connect to the vMX1”)
  • C . with Device(host=”vmx-1”, user=”lab”, passwd=”lab123”) as device:…
  • D . for host in [“vmx-1”, “vmx-2”]: device C Device(host-host, user-“lab”, passwd-“lab123”)…

Reveal Solution Hide Solution

Correct Answer: C
Question #9

Exhibit.

Referring to the exhibit, which two statements about the script arc correct? (Choose two.)

  • A . The script prints the name of each configured interface.
  • B . The script retrieves the interface configuration in XML
  • C . The script prints interface information for each interface name.
  • D . The script retrieves the interface configuration in JSON.

Reveal Solution Hide Solution

Correct Answer: A,D
Question #10

You are asked to gather interface information from a Junos device. Your environment supports the JSON

format. To determine how interface information is represented, you decide to view all of the configured

interface key-value pairs in the current Junos candidate configuration.

In this scenario, which command will provide the information that you need?

  • A . user@router# show interfaces | find json
  • B . user@router# show interfaces | display json
  • C . user@router# show interfaces | except json
  • D . user@router# show interfaces | match json

Reveal Solution Hide Solution

Correct Answer: B

Question #11

Which feature is used in XML to ensure that all attributes and elements have unique names?

  • A . selectors
  • B . predicate
  • C . namespace
  • D . XPath

Reveal Solution Hide Solution

Correct Answer: C
Question #12

In Phython, my_list = [ 1, 2, 3] is an example of which type of operation?

  • A . Assignment
  • B . Membership
  • C . bitwise
  • D . comparison

Reveal Solution Hide Solution

Correct Answer: A
Question #13

Which XML feature is used to ensure that elements defined in multiple schemas would be used in the same document without conflicts?

  • A . Attributes
  • B . Predicates
  • C . Selectors
  • D . Namespaces

Reveal Solution Hide Solution

Correct Answer: D
Question #14

Given the <name> username </name> XML code, what is the information between the opening and closing tags called?

  • A . name node
  • B . data node
  • C . text node
  • D . element node

Reveal Solution Hide Solution

Correct Answer:


Explanation: Explanation

Reference: https://www.juniper.net/documentation/en_US/junos/topics/concept/junos­script-automation-xmloverview.html

Question #15

Which statement is correct about YAML?

  • A . YAML strings must have quotation marks.
  • B . YAML is not case-sensitive.
  • C . YAML files must start
  • D . YAML uses spaces for indentation

Reveal Solution Hide Solution

Correct Answer: D
Question #16

Which two statements about Junos PyEZ RPC(s) are correct? (Choose two.)

  • A . PyEZ RPCs return XML data
  • B . PyEZ RPCs can be used to view only the interface configuration
  • C . PyEZ RPCs can be used to view the active device configuration
  • D . PyEZ RPCs return CSV data

Reveal Solution Hide Solution

Correct Answer: AC
Question #17

While conducting an automation test, you must issue a command using the curl tool to request the text

formatted output from the show interfaces ge-0/0/0 terse command.D18912E1457D5D1DDCBD40AB3BF70D5D

In this scenario, which command would you use?

  • A . curl Cu “lab:lab123” “http://10.210.10.155:3000/rpc/get­interfaceinformation&format=text&interface-name=ge-0/0/0&terse=”
  • B . curl Cu “lab:lab123” “http://10.210.10.155:3000/rpc/get-interfaceinformation@interface­name=ge-0/0/0?terse=”
  • C . curl Cu “lab:lab123” “http://10.210.10.155:3000/rpc/get­interfaceinformation@format=text&interface-name=ge-0/0/0?terse=”
  • D . curl Cu “lab:lab123” “http://10.210.10.155:3000/rpc/get­interfaceinformation@format=text?interface-name=ge-0/0/0&terse=”

Reveal Solution Hide Solution

Correct Answer: D
Question #18

What will determine which data serialization format is used for interfacing with a system?

  • A . the system’s API
  • B . the operating system
  • C . programming language version
  • D . IDE specifications

Reveal Solution Hide Solution

Correct Answer: A
Question #19

Ansible playbooks are written in which format?

  • A . YAML
  • B . Python
  • C . XML
  • D . JSON

Reveal Solution Hide Solution

Correct Answer: A
Question #20

Which two statements are correct about Junose PyEZ Tables and Views? (Choose two.)

  • A . PyEZ Tables and Views are defined using CSV.
  • B . The Juniper_Junos_config module enables the use of PyEZ Tables and Views.
  • C . The juniper_junos_table module enables the use of PyEZ Tables and Views.
  • D . PyEZ Tables and Views are defined using YAML.

Reveal Solution Hide Solution

Correct Answer: B,D

Question #21

Exhibit

Referring to the exhibit, what is the output from the print(x) line?

  • A . [‘b’, ‘c’]
  • B . [‘b’, ‘c’, ‘d’]
  • C . [‘a’, ‘b’, ‘c’]
  • D . [‘a’, ‘b’]

Reveal Solution Hide Solution

Correct Answer: C
Question #22

Which type of data is contained in the key of the JSON object shown in the exhibit?

  • A . string
  • B . name
  • C . integer
  • D . interface

Reveal Solution Hide Solution

Correct Answer: A
Question #23

Which two statements about DevOps are correct? (Choose two.)

  • A . DevOps is a methodology that allows for frequent, quick modifications
  • B . DevOps is a methodology that ensures that collaboration does not occur across organizational boundaries
  • C . DevOps is a methodology used to develop software or systems
  • D . DevOps is a methodology that is limited to small codebase development

Reveal Solution Hide Solution

Correct Answer: A,C
A,C

Explanation:

Reference: https://www.juniper.net/us/en/products-services/what-is/devnetops/

Question #24

Exhibit.

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

  • A . The connection to the Junos device is explicitly opened and closed.
  • B . The connection to the Junos device is automatically opened and closed.
  • C . The Junos configuration database is explicitly locked and unlocked.
  • D . The Junos configuration database is automatically locked and unlocked.

Reveal Solution Hide Solution

Correct Answer: B,D
Question #25

Which development model is the classic approach to software development?

  • A . Waterfall
  • B . Scrum
  • C . Kanban
  • D . Lean

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation: https://searchsoftwarequality.techtarget.com/definition/waterfall-model

Question #26

What are two components of the Waterfall model of software development? (Choose two.)

  • A . a large volume of code changes between releases
  • B . a small volume of code changes between releases
  • C . a short interval of time between releases
  • D . a long interval of time between releases

Reveal Solution Hide Solution

Correct Answer: A,D
Question #27

Referring to the exhibit.

which two statements are correct? (Choose two.)

  • A . The retrieved configuration will be from the Junos candidate configuration.
  • B . The configuration will be retrieved in JSON format.
  • C . The configuration will be retrieved in XML format.
  • D . The retrieved configuration will be from the Junos active configuration.

Reveal Solution Hide Solution

Correct Answer: A,B
Question #28

Exhibit.

Referring to the exhibit, which XPath statement would retrieve the commit-user attribute in the candidate configuration?

  • A . configuration/@ junos: commit-user
  • B . configuration:@ junos: commit-user
  • C . configuration/junos: commit-user
  • D . configuration/commit-user

Reveal Solution Hide Solution

Correct Answer: B
Question #29

Which two statements about Ansible are correct? (Choose two.)

  • A . Ansible can use a single playbook to configure devices from multiple vendors.
  • B . Ansible modules must be written in Go.
  • C . Ansible is an open source project.
  • D . Ansible requires a license to unlock full functionality.

Reveal Solution Hide Solution

Correct Answer: A,C
Question #30

What are two examples of XPath axes? (Choose two.)

  • A . grandchild
  • B . sibling
  • C . parent
  • D . grandparent

Reveal Solution Hide Solution

Correct Answer: B,C
B,C

Explanation: Explanation

Reference: https://www.juniper.net/documentation/en_US/junos/topics/concept/junos­script-automation-xpathoverview.html

Question #31

Which Python operator tests two variables to see if they contain the same value?

  • A . !=
  • B . != =
  • C . = =
  • D . =

Reveal Solution Hide Solution

Correct Answer: C
Question #32

Exhibit.

Referring to the exhibit, which statement is correct?

  • A . The RPC execution output is saved to a file on the Ansible control machine
  • B . The RPC execution output is not saved
  • C . The RPC execution output is saved to a file on R1
  • D . The RPC execution output is saved to memory on R1

Reveal Solution Hide Solution

Correct Answer:  A
Question #33

Which two programing languages would be used for on-box scripting with Junos devices? (Choose two.)

  • A . Python
  • B . Puppet
  • C . Ansible
  • D . XSLT

Reveal Solution Hide Solution

Correct Answer: A,D
Question #34

Why is a REST API considered stateless?

  • A . The client requests to the server do not include state information.
  • B . The REST API is an international API.
  • C . No client context is stored on the server between requests.
  • D . The state of the server is not important when making requests.

Reveal Solution Hide Solution

Correct Answer: C
Question #35

You are asked to write an automation script using Python. When you execute the script, you notice that your

code sends an RpcTimeoutError error.

In this scenario, what would be the reason for this error?

  • A . The Python script was not able to connect to the Juniper device
  • B . The Juniper device rejects the connection
  • C . The Juniper device took too long to reply to the RPC call
  • D . The RPC syntax is incorrect

Reveal Solution Hide Solution

Correct Answer: C
Exit mobile version