Curated

Automation and Artificial Intelligence (6.1–6.7)

0 votes

Questions45

  1. Question 1

    Automation and Artificial Intelligence

    A script runs the code below. What does it print? devices = {"R1": "10.0.0.1", "R2": "10.0.0.2"} for name in devices: print(name)

    Show the answer

    Correct answerD. R1 and R2, each on its own line

    AWhy not this: Key-value pairs need devices.items() and unpacking; plain iteration gives keys only.

    BWhy not this: The addresses are values; they print only if the loop uses devices.values().

    CWhy not this: Dictionaries are iterable in Python; they do not raise an error in a for loop.

    DWhy this is right: Looping over a dictionary yields its keys, so only the device names are printed.

    Iterating over a Python dictionary with a for loop yields its keys, so name takes the values R1 and R2 and each is printed. Printing the IP addresses would require devices.values(), and printing pairs would require devices.items().

    Open this question
  2. Question 2

    Automation and Artificial Intelligence

    An engineer writes a JSON body for a RESTCONF request to set an interface description and state. Which version is valid JSON?

    Show the answer

    Correct answerD. {"name": "GigabitEthernet1", "enabled": true, "description": "Uplink"}

    AWhy not this: Single quotes are valid in Python but JSON strings and keys must use double quotes.

    BWhy not this: Capitalized True is a Python literal; JSON booleans must be lowercase true or false.

    CWhy not this: A trailing comma after the last pair is not allowed in JSON and causes a parse error.

    DWhy this is right: Double-quoted keys and strings, lowercase true, and no trailing comma make this valid JSON.

    JSON requires double-quoted strings and keys, lowercase true/false literals, and no trailing comma. Only the version that meets all three rules is valid. Single quotes look valid because Python dictionaries accept them, but JSON does not.

    Open this question
  3. Question 3

    Automation and Artificial Intelligence

    What is the primary purpose of a data modeling language such as YANG in network automation?

    Show the answer

    Correct answerA. To define the structure and semantics of configuration and state data in a standard way

    AWhy this is right: YANG models describe the hierarchy, data types and constraints of configuration and state data in a vendor-neutral way.

    BWhy not this: YANG does not provide a user interface; it defines data models that tools and APIs consume.

    CWhy not this: Secure transport is the job of protocols such as NETCONF over SSH or RESTCONF over HTTPS, not the modeling language.

    DWhy not this: Encoding is done by formats such as XML or JSON; YANG defines the model, not the serialization.

    YANG is a data modeling language that describes the structure, types and constraints of configuration and operational data. Transport is handled by protocols such as NETCONF or RESTCONF, not by YANG itself.

    Open this question
  4. Question 4

    Automation and Artificial Intelligence

    A team manages routers from several vendors and wants one automation script to configure interfaces on all of them. Which benefit of YANG models makes this feasible?

    Show the answer

    Correct answerB. Standardized, vendor-neutral models give one consistent data structure for the same feature

    AWhy not this: YANG only describes data; moving it to the device is done by NETCONF or RESTCONF, not by the model.

    BWhy this is right: Vendor-neutral models define the same hierarchy and types for a feature, so one script can target many platforms.

    CWhy not this: YANG is a model, not a translator; it does not turn payloads into CLI syntax, which would bypass the model.

    DWhy not this: Models define data types and constraints so the data can be validated; they do not remove validation.

    Common YANG models, such as the IETF and OpenConfig interface models, define the same structure for a feature across vendors, so one script works on all of them. YANG does not transport data; NETCONF or RESTCONF does that.

    Open this question
  5. Question 5

    Automation and Artificial Intelligence

    A script must authenticate to Cisco Catalyst Center before it calls Intent API endpoints. Which approach does Catalyst Center use to issue the token for later requests?

    Show the answer

    Correct answerD. An HTTP POST with Basic authentication to the /dna/system/api/v1/auth/token endpoint, which returns a token used in the X-Auth-Token header

    AWhy not this: This session-cookie login via j_security_check is the SD-WAN Manager method, not Catalyst Center.

    BWhy not this: Catalyst Center does not use a PUT login with a static API key as a Bearer token.

    CWhy not this: The /dataservice token endpoint is SD-WAN Manager's XSRF token call, made after cookie login.

    DWhy this is right: this is the Catalyst Center token request, and the returned token is sent in X-Auth-Token.

    Catalyst Center issues a token in response to a POST with Basic authentication to /dna/system/api/v1/auth/token. The token goes in the X-Auth-Token header of later Intent API calls. The j_security_check and XSRF token flow belongs to SD-WAN Manager, not Catalyst Center.

    Open this question
  6. Question 6

    Automation and Artificial Intelligence

    A script calls a Catalyst Center Intent API to start a task and receives HTTP 202 with a payload containing a taskId and a url. What should the script do next?

    Show the answer

    Correct answerC. Query the task URL until the task completes, then read its result.

    AWhy not this: 202 is a success-class code, not an authentication failure that needs a new token.

    BWhy not this: 202 only confirms acceptance; the task may still fail or be running.

    CWhy this is right: 202 Accepted means the work is asynchronous, so poll the task URL for final status.

    DWhy not this: A wrong method gives 405 Method Not Allowed, not 202.

    A 202 means Catalyst Center accepted the request for asynchronous processing. The taskId and url in the payload are used to poll the task API for its final status and result. Treating 202 as completion is wrong, because the work may not have finished.

    Open this question
  7. Question 7

    Automation and Artificial Intelligence

    An engineer tests RESTCONF against a Catalyst 9300 with a JSON-encoded client. Which four conclusions about the responses are valid? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. A 201 Created on a POST means the new resource was created in the configuration datastore.C. A 401 Unauthorized means the credentials were missing or not accepted.D. A 409 Conflict on a POST can mean the target resource already exists.E. A 204 No Content on a PUT or DELETE means the request succeeded and the body is intentionally empty.

    AWhy this is right: 201 Created is the RESTCONF success code when a POST creates a new data resource.

    BWhy not this: 200 OK on a GET returns the requested data in the body immediately; nothing is queued.

    CWhy this is right: 401 Unauthorized indicates authentication failed or was absent, not a data problem.

    DWhy this is right: 409 Conflict is returned when a create collides with existing data or the datastore state.

    EWhy this is right: 204 No Content signals success with no response body, common for PUT and DELETE.

    FWhy not this: Malformed request content returns 400 Bad Request; 500 reports an error on the server side.

    RESTCONF returns 201 for a created resource, 204 for success with no body, 409 for conflicts such as duplicate data, and 401 for failed authentication. 200 on a GET means the data is already in the payload, not queued for later. Malformed JSON from the client returns 400 Bad Request, not 500.

    Open this question
  8. Question 8

    Automation and Artificial Intelligence

    An engineer must automate configuration of switches that cannot run third-party software. Which tool characteristic best fits this constraint?

    Show the answer

    Correct answerD. Agentless, pushing configuration over SSH or NETCONF

    AWhy not this: A client on every switch is an agent installation, which these switches cannot support.

    BWhy not this: Agentless tools such as Ansible need no master server or per-node certificate enrollment; that describes agent-based tools.

    CWhy not this: A polling daemon is an agent that must be installed and run on the switch, which is not possible here.

    DWhy this is right: Agentless tools push over existing management protocols, so no software is needed on the switch.

    An agentless tool such as Ansible connects from a control node over SSH or NETCONF and pushes configuration, so the switch needs no extra software. Agent-based tools like Puppet and Chef need a client on each device, which these switches cannot run.

    Open this question
  9. Question 9

    Automation and Artificial Intelligence

    Which orchestration tool requires a software agent to be installed on each managed device?

    Show the answer

    Correct answerD. Puppet

    AWhy not this: Ansible is agentless; it connects over SSH or an API and needs no installed software.

    BWhy not this: Cisco DNA Center is a controller that manages devices over SSH, SNMP and NETCONF, not a per-node agent tool.

    CWhy not this: Terraform is agentless; it calls provider APIs and installs nothing on managed devices.

    DWhy this is right: Puppet runs an agent on each node that pulls its catalog from the Puppet master.

    Puppet uses an agent on each managed node that checks in with the Puppet master to pull its configuration. Ansible is agentless and pushes tasks over SSH or APIs, so nothing has to be installed on the device.

    Open this question
  10. Question 10

    Automation and Artificial Intelligence

    An engineer needs an EEM applet to save the output of show tech-support to flash at 02:00 on weekdays only. Which event line triggers the applet?

    Show the answer

    Correct answerD. event timer cron name NIGHTLY cron-entry "0 2 * * 1-5"

    AWhy not this: A watchdog timer fires every fixed interval from when it starts, so it cannot be tied to 02:00 or weekdays.

    BWhy not this: A countdown timer fires once after the delay and then stops, so it does not recur each weekday.

    CWhy not this: This syslog detector fires when a configuration message is logged, not at a scheduled time.

    DWhy this is right: A cron entry sets the minute, hour and day-of-week, so it fires at 02:00 Monday through Friday.

    The cron timer event detector uses a cron-entry with minute, hour, day-of-month, month and day-of-week fields, so "0 2 * * 1-5" fires at 02:00 Monday to Friday. A watchdog timer repeats at a fixed interval and cannot target a time of day or specific weekdays.

    Open this question
  11. Question 11

    Automation and Artificial Intelligence

    A JSON file must store the literal path C:\temp\new without introducing tabs or newlines. Which document preserves that exact value when parsed?

    Show the answer

    Correct answerC. {"path":"C:\\temp\\new"}

    AWhy not this: The escape sequences decode to a tab and a newline rather than literal backslashes.

    BWhy not this: Forward slashes remain forward slashes, so the parsed value differs from the required path.

    CWhy this is right: Each escaped backslash decodes to one literal backslash, preserving the exact path.

    DWhy not this: Each group of four backslashes decodes to two, producing extra backslashes in the path.

    A literal backslash is encoded as \\ within a JSON string. The sequences \t and \n instead decode to a tab and a newline, so a document can be valid JSON yet store the wrong path.

    Open this question
  12. Question 12

    Automation and Artificial Intelligence

    An inventory file must contain an "interfaces" array whose elements are objects with a "name" member. Which JSON document meets this requirement?

    Show the answer

    Correct answerB. {"interfaces":[{"name":"GigabitEthernet1"}]}

    AWhy not this: The array contains a string rather than an object with a name member.

    BWhy this is right: The interfaces value is an array containing an object with a name member.

    CWhy not this: The interfaces value is an object, not an array.

    DWhy not this: The array contains another array rather than an object with a name member.

    An array of objects uses square brackets around elements enclosed in braces. An array of strings provides interface names but does not give each element a named member.

    Open this question
  13. Question 13

    Automation and Artificial Intelligence

    Which JSON value represents an explicitly absent value rather than a string or an object?

    Show the answer

    Correct answerB. null

    AWhy not this: Braces represent an empty object, not an absent value.

    BWhy this is right: The unquoted literal null represents an explicitly absent value.

    CWhy not this: Empty quotation marks represent a string with zero characters.

    DWhy not this: Quotation marks make this a string containing the text null.

    The JSON literal null explicitly represents an absent value. Quoting "null" makes it a string containing four characters, not the null literal.

    Open this question
  14. Question 14

    Automation and Artificial Intelligence

    What does this Python code print? interfaces = ["Gi0/0", "Gi0/1", "Gi0/2"] print(interfaces[1])

    Show the answer

    Correct answerA. Gi0/1

    AWhy this is right: Index 1 retrieves the second element of the list, Gi0/1.

    BWhy not this: Index 1 is valid because the list contains three elements.

    CWhy not this: Gi0/2 is at index 2, not index 1.

    DWhy not this: Gi0/0 is at index 0; treating index 1 as the first element assumes one-based indexing.

    Python lists use zero-based indexing, so index 1 retrieves the second element, Gi0/1. Gi0/0 is at index 0, not index 1.

    Open this question
  15. Question 15

    Automation and Artificial Intelligence

    A script copies a nested device list, then modifies the copy. What does it print? devices = [["R1"], ["R2"]] selected = devices[:] selected[0].append("up") selected.append(["R3"]) print(len(devices), devices[0])

    Show the answer

    Correct answerA. 2 ['R1', 'up']

    AWhy this is right: The original outer list keeps two elements, and its shared first inner list now contains 'R1' and 'up'.

    BWhy not this: The outer append affects only selected, while the nested append affects the shared first inner list.

    CWhy not this: The nested lists remain shared, so appending 'up' is visible through devices.

    DWhy not this: The outer lists are separate, so adding a device to selected does not increase the length of devices.

    The slice creates a shallow copy: the outer lists are separate, but their nested lists are shared. Appending 'up' changes the shared nested list; appending ['R3'] changes only selected. A deep copy would also separate the nested lists.

    Open this question
  16. Question 16

    Automation and Artificial Intelligence

    A script derives the next port number from an interface name. What does it print? interface = "Gi1/0/7" port = interface.split("/")[-1] print(int(port) + 1)

    Show the answer

    Correct answerD. 8

    AWhy not this: The int() conversion makes the addition numeric rather than string concatenation.

    BWhy not this: The extracted value is 7, but the print expression adds 1 after converting it to an integer.

    CWhy not this: The numeric string converts successfully, so adding the integer 1 does not cause a type error.

    DWhy this is right: The last split component is '7'; converting it to an integer and adding 1 produces 8.

    Splitting on '/' and selecting index -1 extracts the string '7'; int() converts it to an integer, so adding 1 produces 8. The result is not 71 because the operation is numeric addition, not string concatenation.

    Open this question
  17. Question 17

    Automation and Artificial Intelligence

    An automation application submits an interface MTU outside the range defined in the device's YANG model. What does the model enable the device to do?

    Show the answer

    Correct answerC. Validate the value against schema constraints

    AWhy not this: Submitting configuration data does not revise the YANG schema that defines valid data.

    BWhy not this: A range restriction is a schema constraint, not a parameter negotiated with the application.

    CWhy this is right: A YANG range restriction defines permitted values that can be checked during validation.

    DWhy not this: A range restriction identifies valid values; it does not specify automatic rounding or correction.

    YANG range constraints allow submitted values to be validated against the schema. Validation does not mean converting an invalid value to the nearest permitted value.

    Open this question
  18. Question 18

    Automation and Artificial Intelligence

    A team is assessing whether YANG can describe a management interface beyond its configuration data. Which additional elements can YANG model? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Notifications and their associated dataC. Operational state exposed by the deviceE. Remote procedure calls and their parameters

    AWhy this is right: YANG can define the structure and content of event notifications.

    BWhy not this: Retransmission behavior belongs to the transport protocol rather than the data model.

    CWhy this is right: YANG can describe operational data such as interface counters and observed status.

    DWhy not this: YANG may describe security settings, but it does not perform session encryption negotiation.

    EWhy this is right: YANG can define remote procedure calls, including their input and output parameters.

    YANG can model operational state, remote procedure calls, and notifications as well as configuration data. Session encryption and transport retransmission are protocol responsibilities, not behaviors implemented by a YANG model.

    Open this question
  19. Question 19

    Automation and Artificial Intelligence

    Two management clients use the same YANG-modeled interface data, but one exchanges XML and the other JSON. What explains how both can follow the same model?

    Show the answer

    Correct answerC. YANG defines structure separately from data encoding.

    AWhy not this: YANG defines a model; it does not itself translate messages between encodings.

    BWhy not this: Different encodings can represent the same modeled data without replacing its schema.

    CWhy this is right: The model defines data semantics and constraints independently of the representation used to exchange it.

    DWhy not this: The model defines field meaning; the transport carries the encoded data.

    YANG defines the data's structure, types, and constraints independently of its XML or JSON representation. YANG is not a message translator; encoding rules map modeled data into a particular representation.

    Open this question
  20. Question 20

    Automation and Artificial Intelligence

    Which YANG node represents a single value, such as an interface description?

    Show the answer

    Correct answerB. Leaf

    AWhy not this: A container organizes child nodes rather than directly holding a scalar value.

    BWhy this is right: A leaf holds one value of a defined data type.

    CWhy not this: A list represents multiple entries, each of which can contain child nodes.

    DWhy not this: A leaf-list holds multiple values of the same data type.

    A leaf represents a single value with a defined data type. A leaf-list represents a collection of values rather than one scalar value.

    Open this question
  21. Question 21

    Automation and Artificial Intelligence

    A model author needs the same set of address-related nodes in several parts of a YANG model. Which construct defines the reusable set?

    Show the answer

    Correct answerD. A grouping

    AWhy not this: A typedef defines a reusable data type rather than a reusable set of schema nodes.

    BWhy not this: A deviation describes how an implementation differs from a model rather than defining reusable nodes.

    CWhy not this: An augment adds schema nodes at a specified location rather than defining a reusable set.

    DWhy this is right: A grouping defines reusable schema nodes that a uses statement can incorporate elsewhere.

    A grouping defines reusable schema nodes that can be incorporated with a uses statement. A typedef defines a reusable data type, not a set of nodes.

    Open this question
  22. Question 22

    Automation and Artificial Intelligence

    A Catalyst Center API request starts an asynchronous change and returns a taskId. A dependent change must run only after successful completion, and repeated submissions could create conflicts. What should the client do?

    Show the answer

    Correct answerA. Poll the task and check completion and error status before proceeding

    AWhy this is right: Tracking the task establishes whether processing completed successfully before dependent work begins.

    BWhy not this: HTTP success for an asynchronous request does not establish that the requested change completed successfully.

    CWhy not this: Resubmitting a change can create duplicate work or conflicts rather than track the existing operation.

    DWhy not this: Device reachability does not establish that the requested change completed successfully.

    An asynchronous response confirms acceptance, not successful completion. The client should track the returned task and check its outcome before starting dependent work; initial HTTP success alone is insufficient.

    Open this question
  23. Question 23

    Automation and Artificial Intelligence

    An SD-WAN Manager application must graph tunnel loss over the previous 24 hours rather than display only current device state. Which API resource category should it use?

    Show the answer

    Correct answerD. Statistics APIs for historical measurements

    AWhy not this: Real-time monitoring retrieves live operational information, not the requested historical series.

    BWhy not this: Audit records describe administrative activity rather than tunnel performance over time.

    CWhy not this: Device-template APIs manage configuration rather than retrieve historical tunnel measurements.

    DWhy this is right: Statistics APIs expose historical measurements that can be selected for the required time range.

    Statistics APIs provide historical operational measurements suitable for a time-series graph. Real-time monitoring APIs retrieve live device information rather than the stored history needed here.

    Open this question
  24. Question 24

    Automation and Artificial Intelligence

    An operations platform must receive selected Catalyst Center assurance events as they occur, without repeatedly querying for changes. Which integration approach best meets this requirement?

    Show the answer

    Correct answerD. Create an event subscription with a webhook destination

    AWhy not this: Command Runner executes supported diagnostic commands rather than subscribing to Catalyst Center events.

    BWhy not this: Direct device telemetry does not deliver Catalyst Center's selected assurance events.

    CWhy not this: Scheduled health requests use polling, which conflicts with the requirement to avoid repeated queries.

    DWhy this is right: A webhook event subscription provides event-driven delivery to the external platform.

    Catalyst Center event subscriptions can deliver selected events to a webhook destination. Polling device health retrieves snapshots and requires repeated queries rather than event-driven delivery.

    Open this question
  25. Question 25

    Automation and Artificial Intelligence

    Which base path commonly identifies Cisco SD-WAN Manager REST API resources?

    Show the answer

    Correct answerC. /dataservice

    AWhy not this: This path is associated with Cisco APIC authentication rather than SD-WAN Manager.

    BWhy not this: This path identifies RESTCONF data resources rather than the SD-WAN Manager REST API.

    CWhy this is right: SD-WAN Manager REST API resources commonly use the /dataservice base path.

    DWhy not this: This path belongs to the Catalyst Center Intent API.

    SD-WAN Manager exposes its REST API resources under /dataservice. The /dna/intent/api/v1 path identifies Catalyst Center Intent API resources instead.

    Open this question
  26. Question 26

    Automation and Artificial Intelligence

    An SD-WAN Manager client has authenticated through j_security_check and received a session cookie. With CSRF protection enabled, what additional value must it include when sending a configuration POST?

    Show the answer

    Correct answerC. An X-XSRF-TOKEN obtained from the SD-WAN Manager token endpoint

    AWhy not this: X-Auth-Token is associated with Catalyst Center authentication, not this SD-WAN Manager session workflow.

    BWhy not this: Device credentials in a Basic header do not provide the required CSRF token.

    CWhy this is right: The X-XSRF-TOKEN header supplies the CSRF token required alongside the session cookie.

    DWhy not this: A WAN edge certificate is not exchanged for the bearer token described here.

    SD-WAN Manager uses an XSRF token alongside its authenticated session cookie for protected requests. Catalyst Center's X-Auth-Token belongs to a different authentication workflow.

    Open this question
  27. Question 27

    Automation and Artificial Intelligence

    A Catalyst Center task-status GET returns HTTP 200 with {"response":{"isError":true,"endTime":1730000000000,"failureReason":"Device unreachable"}}. What should the client conclude?

    Show the answer

    Correct answerB. The status lookup succeeded, but the task failed.

    AWhy not this: The presence of endTime and isError indicates an ended, failed task rather than a pending task.

    BWhy this is right: The HTTP status describes the lookup, while isError identifies failure of the underlying task.

    CWhy not this: The payload explicitly reports task failure, not a successful task followed by a separate verification failure.

    DWhy not this: The lookup returned successfully; device unreachability is reported as the task's failure reason.

    HTTP 200 confirms successful retrieval of the task status; isError and failureReason identify the task failure. It does not mean the underlying task succeeded, and endTime indicates the task has ended.

    Open this question
  28. Question 28

    Automation and Artificial Intelligence

    A Catalyst Center network-device GET returns HTTP 200, and one device in response has "reachabilityStatus":"Unreachable". What does this result mean?

    Show the answer

    Correct answerC. The retrieval succeeded; the device is reported unreachable.

    AWhy not this: The payload reports device reachability, not rejection of the client's API credentials.

    BWhy not this: An individual device's reachability state does not negate the successful inventory response.

    CWhy this is right: HTTP 200 describes request success, and reachabilityStatus describes the device's reported state.

    DWhy not this: The device appears in the returned inventory; Unreachable does not mean deleted.

    HTTP 200 indicates successful inventory retrieval, while reachabilityStatus describes the reported state of an individual device. An unreachable device can remain in inventory; its status does not make the API request a failure.

    Open this question
  29. Question 29

    Automation and Artificial Intelligence

    A RESTCONF edit returns HTTP 409 with {"ietf-restconf:errors":{"error":[{"error-type":"application","error-tag":"in-use","error-path":"/ietf-interfaces:interfaces/interface[name='GigabitEthernet1']","error-message":"Interface is in use"}]}}. Which interpretations are supported? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. The error-message provides human-readable failure details.C. The request encountered a conflict involving resource use.D. The error-path identifies the data location associated with the error.

    AWhy not this: The error response reports failure rather than successful completion of the requested edit.

    BWhy this is right: The error-message supplies a human-readable explanation of the reported condition.

    CWhy this is right: HTTP 409 indicates conflict, and in-use identifies resource use as the reported condition.

    DWhy this is right: The error-path points to the data node associated with the reported error.

    EWhy not this: An application error-type identifies the error layer; it does not indicate failed HTTP authentication.

    HTTP 409 and in-use indicate a resource-use conflict; error-path locates the affected data, and error-message explains the failure. The application error-type classifies the error layer, not an authentication failure.

    Open this question
  30. Question 30

    Automation and Artificial Intelligence

    A RESTCONF client reads a resource with ETag "r17", then sends an update with If-Match: "r17" after another client changes the resource. The server returns HTTP 412; what is the BEST interpretation?

    Show the answer

    Correct answerC. The update failed because its resource version was stale.

    AWhy not this: HTTP 412 reports a failed precondition, not successful completion without content.

    BWhy not this: An unsupported request media type is indicated by HTTP 415, not this failed conditional update.

    CWhy this is right: Another change invalidated the supplied ETag, so the If-Match precondition failed.

    DWhy not this: The decisive detail is the changed resource version, not evidence that the resource is missing.

    HTTP 412 Precondition Failed means the If-Match condition was not satisfied: the resource no longer matched the supplied ETag. A missing resource is associated with HTTP 404, not the stale-version condition described here.

    Open this question
  31. Question 31

    Automation and Artificial Intelligence

    Which event statement allows an EEM applet to be invoked manually using event manager run?

    Show the answer

    Correct answerD. event none

    AWhy not this: A watchdog timer supplies a periodic trigger rather than the manual-invocation registration.

    BWhy not this: A syslog detector invokes the applet when a message matches its pattern.

    CWhy not this: A CLI detector invokes the applet when an entered command matches its pattern.

    DWhy this is right: The none event detector supports explicit applet invocation with event manager run.

    The event none statement registers an applet for explicit execution with event manager run. A watchdog timer instead invokes an applet at a configured interval.

    Open this question
  32. Question 32

    Automation and Artificial Intelligence

    An EEM applet contains actions labeled 1.0, 2.0, and 10.0, intended to run in that sequence, but action 10.0 runs before 2.0. Which change preserves the intended sequence?

    Show the answer

    Correct answerA. Replace the labels with 01.0, 02.0, and 10.0

    AWhy this is right: Zero-padding makes lexicographic sorting match the intended sequence.

    BWhy not this: Maximum runtime controls how long the applet may run, not action ordering.

    CWhy not this: Execution order follows sorted action labels, not the order in which configuration lines are entered.

    DWhy not this: A wait delays execution but does not change the sorting of existing action labels.

    EEM sorts action labels lexicographically, so 10.0 sorts before 2.0. Consistent zero-padding produces the intended order; rearranging configuration lines does not change label-based execution.

    Open this question
  33. Question 33

    Automation and Artificial Intelligence

    A watchdog-triggered EEM applet runs every 300 seconds, but its diagnostic collection is terminated at the default 20-second runtime limit. Collection needs 45 seconds; which change permits completion without changing the collection frequency?

    Show the answer

    Correct answerD. Set maxrun to 90 seconds on the event statement

    AWhy not this: A shorter watchdog interval increases trigger frequency without extending the execution limit.

    BWhy not this: The watchdog time value controls the trigger interval, not the allowed execution duration.

    CWhy not this: A wait consumes runtime and does not extend the applet's execution limit.

    DWhy this is right: A 90-second maxrun permits the 45-second collection without changing the trigger interval.

    The maxrun parameter controls the applet's maximum execution time. Increasing it permits the 45-second collection while preserving the 300-second interval; changing watchdog time changes trigger frequency instead.

    Open this question
  34. Question 34

    Automation and Artificial Intelligence

    A timer-triggered EEM applet reaches privileged EXEC mode, but its collection commands fail AAA authorization because no username is associated with its CLI session. A dedicated account already has the required permissions; which change uses that account while retaining command authorization?

    Show the answer

    Correct answerA. Configure event manager session cli username with the dedicated account

    AWhy this is right: This associates the EEM CLI session with the account whose commands AAA can authorize.

    BWhy not this: The applet already reaches privileged EXEC mode; enable does not supply the missing authorization identity.

    CWhy not this: Changing an unrelated account does not associate the EEM session with the authorized identity.

    DWhy not this: Authorization bypass avoids AAA command checks rather than retaining them.

    The event manager session cli username command associates EEM CLI sessions with the specified username for AAA authorization. Authorization bypass avoids those checks, violating the requirement to retain command authorization.

    Open this question
  35. Question 35

    Automation and Artificial Intelligence

    An engineer wants an EEM applet to collect diagnostics whenever a local syslog message contains LINEPROTO-5-UPDOWN. Which event statement should the engineer configure?

    Show the answer

    Correct answerA. event syslog pattern "LINEPROTO-5-UPDOWN"

    AWhy this is right: The syslog detector triggers the applet when a local message matches the specified pattern.

    BWhy not this: The CLI detector matches entered commands rather than locally generated syslog messages.

    CWhy not this: A watchdog timer triggers periodically rather than in response to a matching message.

    DWhy not this: An event-none applet requires explicit invocation rather than a matching syslog message.

    The syslog event detector matches messages generated on the device against the configured pattern. The CLI event detector matches commands entered through the CLI, not syslog messages.

    Open this question
  36. Question 36

    Automation and Artificial Intelligence

    An engineer replaces an agent-based platform with Ansible using network_cli over SSH to manage Cisco IOS XE switches. Which requirements must the new design satisfy? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. The controller must authenticate with sufficient device privileges.B. The controller must reach the switches' SSH service.

    AWhy this is right: Agentless access still requires valid authentication and authorization for the requested operations.

    BWhy this is right: The controller initiates SSH sessions, so network paths and access controls must permit that traffic.

    CWhy not this: Polling is associated with pull designs; network_cli sessions are initiated by the controller.

    DWhy not this: Network CLI tasks do not require a Python runtime on the managed IOS XE switch.

    Ansible network_cli uses controller-initiated SSH sessions and requires authentication with privileges sufficient for the requested tasks. Unlike many server modules, network_cli management of IOS XE does not require Python on the managed switch.

    Open this question
  37. Question 37

    Automation and Artificial Intelligence

    A team is comparing agent-based and agentless orchestration for thousands of servers. Which ongoing responsibility is specifically added by deploying persistent management agents?

    Show the answer

    Correct answerB. Patching management software on managed servers

    AWhy not this: Both approaches require configuration definitions to be maintained as requirements change.

    BWhy this is right: Installed agents must be maintained and patched on the managed servers.

    CWhy not this: Change review applies to both approaches, regardless of whether persistent agents are used.

    DWhy not this: Both approaches require protection of the controller and its administrative access.

    Persistent agents add a software lifecycle on managed servers, including updates and security patches. Maintaining configuration definitions is necessary in both agent-based and agentless orchestration.

    Open this question
  38. Question 38

    Automation and Artificial Intelligence

    In a typical agentless Ansible deployment, which component reads the playbook and initiates management tasks?

    Show the answer

    Correct answerA. The Ansible control node

    AWhy this is right: The control node runs Ansible, reads the playbook, and initiates tasks against managed nodes.

    BWhy not this: A typical agentless Ansible deployment does not use a persistent configuration agent to interpret playbooks.

    CWhy not this: The SSH service accepts remote connections rather than reading and coordinating playbooks.

    DWhy not this: The device scheduler does not coordinate a typical controller-driven Ansible playbook run.

    The Ansible control node reads playbooks and initiates management tasks. A managed node's SSH service provides remote access; it does not interpret the playbook or coordinate the automation.

    Open this question
  39. Question 39

    Automation and Artificial Intelligence

    Managed servers can initiate connections to a management server, but firewall policy blocks management-server-initiated sessions. Which design supports configuration updates without changing that policy?

    Show the answer

    Correct answerD. Agent-based pull orchestration

    AWhy not this: HTTPS push still requires a controller-initiated connection, which the firewall blocks.

    BWhy not this: Controller-initiated execution requires an inbound connection even when an agent is present.

    CWhy not this: SSH push requires the management server to initiate a connection to each managed server.

    DWhy this is right: A pull agent initiates the connection from the managed server to retrieve configuration updates.

    Agent-based pull orchestration lets managed servers initiate connections to retrieve their desired configuration. Agentless push over HTTPS still requires controller-initiated connections, so changing the transport does not resolve the firewall restriction.

    Open this question
  40. Question 40

    Automation and Artificial Intelligence

    A script processes interface counters until it encounters zero, skipping invalid values. What does it print? ```python total = 0 attempts = 0 for raw in ["2", "bad", "0", "4"]: try: value = int(raw) if value == 0: break except ValueError: continue else: total += value finally: attempts += 1 print(total, attempts) ```

    Show the answer

    Correct answerD. 2 3

    AWhy not this: The finally block also runs when the handled ValueError leads to continue, so attempts reaches 3.

    BWhy not this: The loop stops at zero, so there is no fourth execution of finally.

    CWhy not this: The zero triggers break, so the final value is never processed or added.

    DWhy this is right: Only 2 is added, and finally runs for all three attempted values, including those that trigger continue and break.

    Only 2 reaches the else block. The finally block runs for the successful conversion, the handled exception, and the break, so attempts reaches 3. Counting every input overlooks that break prevents processing "4".

    Open this question
  41. Question 41

    Automation and Artificial Intelligence

    A script calculates available ports using a function with a default argument. What does it print? ```python def available(total, reserved=2): return total - reserved print(available(10) * 2) ```

    Show the answer

    Correct answerA. 16

    AWhy this is right: The default reserved value is 2, so the expression evaluates to (10 - 2) * 2.

    BWhy not this: The function subtracts reserved from total rather than adding it.

    CWhy not this: The function subtracts its default reserved value before returning; it does not return 10.

    DWhy not this: The function returns 8, but that return value is multiplied by 2 before printing.

    The omitted reserved argument takes its default value of 2, so available(10) returns 8; multiplication then produces 16. A result of 20 would ignore the subtraction performed inside the function.

    Open this question
  42. Question 42

    Automation and Artificial Intelligence

    A script calls a function to normalize an interface status but does not assign its return value. What does it print? ```python status = "down" def normalize(status): status = status.upper() return status normalize(status) print(status) ```

    Show the answer

    Correct answerD. down

    AWhy not this: upper() produces a new string, and assigning it to the local parameter does not update the outer variable.

    BWhy not this: The function returns a string, and ignoring that return value does not replace the outer variable with None.

    CWhy not this: The parameter already has a value when the function starts, so reading it before the local assignment is valid.

    DWhy this is right: The function only rebinds its local parameter; the outer status remains unchanged.

    The assignment inside normalize rebinds its local parameter to a new string. The caller ignores the returned string, leaving the outer status equal to "down". Returning a value does not automatically assign it to the caller's variable.

    Open this question
  43. Question 43

    Automation and Artificial Intelligence

    A parser accepts any standalone JSON value, without requiring an object at the document root. Which files can it parse successfully? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. "ready"B. [1, "up", {}]D. {}

    AWhy this is right: A string is a valid standalone JSON value; an object wrapper is not required.

    BWhy this is right: JSON arrays may mix numbers, strings, and objects.

    CWhy not this: JSON has no set literal; an object requires named members rather than bare values.

    DWhy this is right: An object may contain zero members and serve as the document root.

    EWhy not this: JavaScript defines undefined, but JSON does not include it among its value types.

    A JSON document may contain a string, an empty object, or an array with mixed value types at its root. Brace-enclosed values without member names resemble a set, not a JSON object; undefined is not a JSON value.

    Open this question
  44. Question 44

    Automation and Artificial Intelligence

    A telemetry file must encode a threshold of 0.25 as a JSON number. Which member uses valid JSON number syntax?

    Show the answer

    Correct answerC. "threshold": 2.5e-1

    AWhy not this: JSON does not permit extra leading zeros in the integer part.

    BWhy not this: JSON requires an integer part before the decimal point.

    CWhy this is right: Exponent notation is valid JSON number syntax, and this value equals 0.25.

    DWhy not this: JSON permits a leading minus sign, but not a leading plus sign.

    JSON permits an exponent, so 2.5e-1 represents 0.25. A fractional number requires an integer part; JSON also prohibits a leading plus sign and extra leading zeros.

    Open this question
  45. Question 45

    Automation and Artificial Intelligence

    An inventory requires a devices object keyed by device ID, with each device containing a ports object keyed by port name. Each port must hold a rates array of numbers in receive-then-transmit order; which document records receive 10 and transmit 20 for R1 port Gi1?

    Show the answer

    Correct answerD. {"devices":{"R1":{"ports":{"Gi1":{"rates":[10,20]}}}}}

    AWhy not this: The ports member contains an array rather than an object keyed by port name.

    BWhy not this: The devices member contains an array rather than an object keyed by device ID.

    CWhy not this: The rates array reverses the required receive-then-transmit order.

    DWhy this is right: Both keyed collections are objects, and the numeric rates appear in receive-then-transmit order.

    Nested objects provide the required device and port keys, while the rates array preserves receive-then-transmit order. An array containing a device object is valid JSON but does not satisfy the required devices object structure.

    Open this question