OpenExamsFREE PRACTICE — ANY EXAM

Free Automation and DevOps, Associate (JN0-224) exam Practice Questions

100 free questions · Answer explanations · No signup required

View examination details, outline and sources

Loading selected examination banks…

Sample Practice Questions

Try these 10 sample questions from the Automation and DevOps, Associate (JN0-224) exam practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.

  1. 1Which Junos automation tool inspects a candidate configuration against custom rules during a commit?

    1. A. An operation script
    2. B. A commit script
    3. C. An event policy
    4. D. An SNMP script

    Answer: B

    Explanation: The overview states, "Commit scripts enforce custom configuration rules." These scripts inspect the candidate configuration during a commit.

    Reference: Junos Automation Scripts Overview — Junos Configuration Automation: Commit Scripts

  2. 2Which XML fragment correctly represents an empty element named disable?

    1. A. An opening tag alone: <disable>
    2. B. A closing tag with a trailing slash: </disable/>
    3. C. A name followed by a self-closing slash: <disable/>
    4. D. A name repeated after an internal slash: <disable/disable>

    Answer: C

    Explanation: The guide permits "a single tag with a forward slash after the tag name." Therefore <disable/> is a valid empty element.

    Reference: NETCONF XML Management Protocol Developer Guide — p. 13, Tag Elements

  3. 3How is hierarchy represented in YAML block-style collections?

    1. A. By matching XML end tags
    2. B. By semicolons after every value
    3. C. By indentation using spaces
    4. D. By parentheses around each level

    Answer: C

    Explanation: The specification states, "In YAML block styles, structure is determined by indentation." Spaces define that indentation; tabs must not be used for it.

    Reference: YAML Ain’t Markup Language, Version 1.2.2 — 6.1 Indentation Spaces

  4. 4Given devices = ['edge', 'core', 'spine'] in Python 3.8, what does devices[0] return?

    1. A. 'spine'
    2. B. 'core'
    3. C. 'edge'
    4. D. An IndexError exception

    Answer: C

    Explanation: The tutorial explains indexing with "squares[0] # indexing returns the item" and returns the first item. Python sequence indexing starts at zero, so devices[0] is edge.

    Reference: Python 3.8 Tutorial: An Informal Introduction to Python — 3.1.3 Lists

  5. 5At which Junos configuration hierarchy is the REST API service configured?

    1. A. [edit system services netconf]
    2. B. [edit system scripts op]
    3. C. [edit system services rest]
    4. D. [edit protocols]

    Answer: C

    Explanation: The guide locates REST API configuration under "[edit system services rest]". The NETCONF hierarchy configures a different management service.

    Reference: Junos OS REST API Guide — p. 2, Understanding the REST API

  6. 6Which script type is intended to provide a custom operational-mode command for network troubleshooting?

    1. A. A commit script
    2. B. An SNMP script
    3. C. An op script
    4. D. An event script

    Answer: C

    Explanation: The op-script capabilities include "Create custom operational mode commands". An op script supplies this operational interface; commit, SNMP, and event scripts have different triggers.

    Reference: Junos Automation Scripts Overview — Junos Operations Automation: Op Scripts

  7. 7Which XML fragment places the attribute name and its value correctly on an interface element?

    1. A. The name-value pair inside the opening tag: <interface name="ge-0/0/0"/>
    2. B. A nested at-sign field: <interface><@name>ge-0/0/0</@name></interface>
    3. C. The name-value pair inside element text: <interface>name="ge-0/0/0"</interface>
    4. D. The property name without a quoted value: <interface name>ge-0/0/0</interface>

    Answer: A

    Explanation: The guide states, "Attributes appear in the opening tag of an element". The name-value pair belongs inside that opening tag with a quoted value.

    Reference: NETCONF XML Management Protocol Developer Guide — p. 14, Attributes

  8. 8Which YAML block-style fragment represents a sequence containing the two device names r1 and r2?

    1. A. - r1 - r2
    2. B. r1: primary r2: secondary
    3. C. devices: r1, r2
    4. D. devices: {r1: null, r2: null}

    Answer: A

    Explanation: The specification says, "Block sequences indicate each entry with a dash and space". The two dash-prefixed entries form a sequence.

    Reference: YAML Ain’t Markup Language, Version 1.2.2 — 2.1 Collections

  9. 9Which Python operation adds 'r3' as a single item at the end of the existing devices list?

    1. A. devices.append('r3')
    2. B. devices.extend('r3')
    3. C. devices.insert(0, 'r3')
    4. D. devices.remove('r3')

    Answer: A

    Explanation: The append description says, "Add an item to the end of the list." extend would add the characters of the string separately; insert(0, ...) adds at the front.

    Reference: Python 3.8 Tutorial: Data Structures — 5.1 More on Lists, list.append

  10. 10Which authentication mechanism does the Junos REST API use for the username and password in its Authorization header?

    1. A. HTTP Basic Authentication
    2. B. HTTP Digest Authentication
    3. C. HTTP Bearer Token Authentication
    4. D. SSH public-key authentication

    Answer: A

    Explanation: The guide states, "The REST API supports HTTP Basic Authentication". Requests include a base64-encoded username and password in the Authorization header.

    Reference: Junos OS REST API Guide — p. 2, Understanding the REST API

Topics in this practice bank

These topics describe the available practice for Automation and DevOps, Associate (JN0-224) exam. Review the examination outline and its sources for scope and allocation details.

  • Junos Automation Stack and DevOps Concepts
    • Automation tools
    • Automation frameworks
    • Automation APIs
    • DevOps culture, practices, and tools
  • NETCONF/XML API
    • XML concepts and syntax
    • XPath concepts and syntax
    • NETCONF concepts
    • XML API concepts and syntax
  • Data Serialization
    • YAML
    • JavaScript Object Notation (JSON)
  • Python/PyEZ
    • Syntax and concepts
    • Junos Snapshot Administrator (JSNAPy)
    • Jinja2
    • Remote Procedure Calls (RPCs)
    • PyEZ exception handling
    • Device status and configuration handling
  • REST API
    • Junos REST API
    • Junos REST API Explorer
    • Client URL (cURL) access for the REST API

How to use these free practice questions

Choose an answer, check the explanation, and review your progress by chapter. Practice questions and explanations are free to access without signing up.

These are independent study questions, not actual examination items. For examination requirements and official information, view Automation and DevOps, Associate (JN0-224) exam details.