Curated

Automation and Programmability (6.1–6.7)

0 votes

Questions30

  1. Question 1

    Automation and Programmability

    A network team wants a tool that studies months of interface utilization data and warns them of likely link congestion before it happens. Which type of AI does this describe?

    Show the answer

    Correct answerD. Predictive AI

    AWhy not this: SDN separates control and data planes; it is an architecture, not a forecasting technique.

    BWhy not this: Rule-based automation follows fixed, pre-written conditions and does not learn patterns from data.

    CWhy not this: Generative AI produces new content such as text or code, not forecasts from utilization trends.

    DWhy this is right: Predictive AI learns from historical telemetry to forecast future events like congestion.

    Predictive AI uses machine learning on historical data to forecast future events, such as congestion. Generative AI creates new content such as text or configurations and does not forecast outcomes from telemetry trends.

    Open this question
  2. Question 2

    Automation and Programmability

    An engineer asks an AI assistant to produce a draft VLAN configuration for a new access switch from a plain-English description. Which characteristic makes this generative AI rather than predictive AI?

    Show the answer

    Correct answerB. It creates new content from a prompt

    AWhy not this: Classifying traffic as normal or anomalous is a predictive or machine learning detection task.

    BWhy this is right: Generating new output, such as a draft configuration, from a prompt defines generative AI.

    CWhy not this: Fixed-threshold route changes are static rule-based automation, not AI of either kind.

    DWhy not this: Forecasting failures from historical data is predictive AI, not content generation.

    Generative AI produces new content, such as configuration text, in response to a prompt. Predictive AI instead analyzes past data to forecast or classify outcomes, such as failures or anomalies.

    Open this question
  3. Question 3

    Automation and Programmability

    A team replaces per-device CLI edits with a central controller that pushes one template to every branch switch. Which outcome of this change is the most direct benefit for network management?

    Show the answer

    Correct answerA. Consistent configuration across devices

    AWhy this is right: A single template applied centrally gives every device the same intended configuration and reduces drift.

    BWhy not this: Automation does not remove change control; it still needs review, testing and approval.

    CWhy not this: Port density is a hardware property and is unaffected by how configuration is pushed.

    DWhy not this: Automation changes how configuration is applied, not how long physical cabling takes.

    Pushing one template from a central point applies the same intended configuration everywhere, which reduces drift and human error. Removing change approval is wrong: automation speeds up deployment but does not replace governance or testing.

    Open this question
  4. Question 4

    Automation and Programmability

    An engineer must change an NTP server on 400 devices. Which benefit of automation does a script or controller workflow provide here compared with manual CLI changes?

    Show the answer

    Correct answerB. It reduces human error and completes the change faster

    AWhy not this: Automation still needs a defined intended configuration to push, such as the NTP server address.

    BWhy this is right: Repeatable scripted changes avoid per-device typing mistakes and finish far faster than manual edits.

    CWhy not this: Changing a setting by script does not change the control plane architecture; that is SDN design.

    DWhy not this: Automation makes later changes easier but cannot ensure no future change is ever needed.

    Automated workflows apply the same change repeatedly and quickly, lowering typing errors and time spent. They do not remove the need to define the intended state, and they do not alter the device control plane architecture.

    Open this question
  5. Question 5

    Automation and Programmability

    A company replaces per-device CLI configuration with a controller that pushes policy to all switches from one dashboard. Which plane's decision-making is now centralized?

    Show the answer

    Correct answerC. Control plane

    AWhy not this: Forwarding stays in each device's hardware; devices still move traffic on their own after being programmed.

    BWhy not this: The management plane covers access and monitoring, not the path decisions that the controller takes over here.

    CWhy this is right: Path and policy decisions move to the central controller, which programs the devices through its southbound interface.

    DWhy not this: Forwarding plane is another name for the data plane, which each switch still performs locally.

    In controller-based networking, control-plane logic moves from each device to a central controller, which programs the devices. The data plane still forwards frames and packets on each device, so it stays distributed.

    Open this question
  6. Question 6

    Automation and Programmability

    Which statement describes a traditional network, compared with a controller-based network?

    Show the answer

    Correct answerD. Each device is configured and managed individually

    AWhy not this: Northbound APIs connect applications to a controller, so they belong to controller-based networking.

    BWhy not this: Defining policy once in a dashboard is a controller-based trait, not a traditional one.

    CWhy not this: Central configuration push is how a controller-based network works, not a traditional one.

    DWhy this is right: Traditional devices each run their own control plane and are configured device by device, usually via CLI.

    In a traditional network, each device has its own control plane and is configured one by one, typically by CLI. Central policy pushed from a controller is the controller-based model.

    Open this question
  7. Question 7

    Automation and Programmability

    Which data encoding formats are commonly used in the body of REST API requests and responses?

    Show the answer

    Correct answerB. JSON and XML

    AWhy not this: SNMP and Syslog are management protocols, not data encoding formats.

    BWhy this is right: JSON and XML are the standard encodings for REST API request and response bodies.

    CWhy not this: HTML is a web page markup, and SMTP is an email transfer protocol, not an encoding.

    DWhy not this: YAML is used for automation files, and CSV is not a standard REST body encoding.

    REST APIs commonly carry data encoded as JSON or XML. SNMP and Syslog are management protocols, not data encodings for REST bodies.

    Open this question
  8. Question 8

    Automation and Programmability

    An engineer wants to change the description of an existing interface through a REST API without creating a new resource. Which CRUD operation and matching HTTP verb apply?

    Show the answer

    Correct answerB. Update, using PUT or PATCH

    AWhy not this: Create with POST adds a new resource, but the interface already exists.

    BWhy this is right: Update modifies an existing resource, and PUT or PATCH are the verbs used for it.

    CWhy not this: Read with GET only retrieves data and changes nothing on the device.

    DWhy not this: Delete with DELETE removes the resource instead of altering its description.

    Modifying an existing resource is the Update operation, which maps to PUT (replace) or PATCH (partial change). Create maps to POST and adds a new resource, which is not the goal here.

    Open this question
  9. Question 9

    Automation and Programmability

    A team must provision new cloud virtual networks and subnets from a declarative definition file, with the tool tracking the resulting infrastructure in a state file. Which tool fits BEST?

    Show the answer

    Correct answerC. Terraform

    AWhy not this: Chef is agent-based, uses Ruby recipes, and pulls configuration; it is not a state-file provisioning tool.

    BWhy not this: Ansible pushes playbook tasks over SSH and keeps no state file of provisioned resources.

    CWhy this is right: Terraform provisions infrastructure from declarative files and tracks the created resources in a state file.

    DWhy not this: Puppet is agent-based and pull-model, aimed at enforcing device configuration, not provisioning cloud networks.

    Terraform is a declarative infrastructure-provisioning tool that records the resources it creates in a state file and reconciles them with the definition. Ansible is agentless and push-based, built for configuration tasks through playbooks, and does not keep a state file of provisioned infrastructure.

    Open this question
  10. Question 10

    Automation and Programmability

    An engineer must push the same VLAN configuration to 50 switches over SSH without installing any software on them. Which capability makes Ansible suitable?

    Show the answer

    Correct answerB. It is agentless and runs playbooks from a control node

    AWhy not this: Needing an agent on each device describes Puppet and Chef, not Ansible.

    BWhy this is right: Ansible runs YAML playbooks from a control node and connects over SSH, so devices need no extra software.

    CWhy not this: A scheduled pull from a master server is the Puppet and Chef model; Ansible pushes from the control node.

    DWhy not this: Tracking resource state in a state file to plan changes is a Terraform feature, not Ansible's.

    Ansible is agentless: a control node runs YAML playbooks and connects to devices over SSH, so nothing is installed on the switches. Agent-based pull models describe Puppet and Chef, which would require software on each device.

    Open this question
  11. Question 11

    Automation and Programmability

    Which three statements about JSON syntax are correct? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersC. An array is enclosed in square brackets.E. An object is enclosed in curly braces.F. Keys are strings enclosed in double quotes.

    AWhy not this: JSON strings must use double quotes; single quotes make the document invalid.

    BWhy not this: JSON defines no comment syntax; a hash character is not valid in the document.

    CWhy this is right: Square brackets wrap an ordered list of values, which is a JSON array.

    DWhy not this: Pairs are separated by commas; a semicolon is not valid JSON punctuation.

    EWhy this is right: Curly braces wrap an unordered set of key-value pairs, which is a JSON object.

    FWhy this is right: JSON requires every key to be a string in double quotes, such as "hostname".

    JSON keys are double-quoted strings, objects use curly braces, and arrays use square brackets. Pairs are separated by commas, not semicolons, and JSON has no comment syntax.

    Open this question
  12. Question 12

    Automation and Programmability

    In the JSON pair "hostname":"R1", what is "hostname"?

    Show the answer

    Correct answerD. Key

    AWhy not this: An object is a set of pairs inside curly braces, not a single name.

    BWhy not this: An array is an ordered list of values in square brackets, not a name.

    CWhy not this: The value is "R1", which follows the colon and holds the data.

    DWhy this is right: The quoted string before the colon names the data, so it is the key.

    The text before the colon in a JSON pair is the key, and the text after it is the value. Here "R1" is the value, not the key.

    Open this question
  13. Question 13

    Automation and Programmability

    A JSON document is {"interfaces":[{"name":"Gi0/1","enabled":true,"ips":["10.0.0.1","10.0.1.1"]}]}. Which path, using dot and zero-based index notation, returns 10.0.1.1?

    Show the answer

    Correct answerC. interfaces[0].ips[1]

    AWhy not this: Index 1 in interfaces does not exist, because the array has only one object at index 0.

    BWhy not this: Skips the array index; interfaces is an array, so an element must be chosen before reading ips.

    CWhy this is right: Selects the first object in the interfaces array, then the second element of its ips array, which is 10.0.1.1.

    DWhy not this: Assumes indexes start at 1; ips has only indexes 0 and 1, so index 2 is out of range.

    The interfaces value is an array holding one object at index 0, and that object's ips key holds an array whose second element is index 1. Counting from one, as in interfaces[0].ips[2], points past the end of the two-element list.

    Open this question
  14. Question 14

    Automation and Programmability

    Which two functions does a centralized controller take over from each device when the control plane is separated from the data plane? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersD. Exchanging routing updates with neighborsF. Running the SPF calculation to select best paths

    AWhy not this: Decrementing TTL is done to each packet in transit, so it is a data plane action that stays on the device.

    BWhy not this: Rewriting the Layer 2 header happens as each packet is forwarded, so it is data plane work.

    CWhy not this: A FIB lookup applies decisions already made to each packet, so it remains a data plane action.

    DWhy this is right: Exchanging routing updates builds the network's view of reachability, which is a control plane function.

    EWhy not this: Dropping packets that match an ACL deny entry is per-packet handling, so it is data plane work.

    FWhy this is right: Computing best paths decides where traffic should go, which is a control plane function.

    Exchanging routing information and calculating best paths are control plane functions that decide where traffic should go, so a controller centralizes them. Per-packet actions such as FIB lookups, TTL changes and ACL drops remain on the device's data plane.

    Open this question
  15. Question 15

    Automation and Programmability

    A controller programs flow entries into a switch. The switch then matches each arriving frame against those entries and sends it out the chosen port. Which plane performs this switch activity?

    Show the answer

    Correct answerD. Data plane

    AWhy not this: The control plane decides the entries. Here the controller does that, and the switch only applies them.

    BWhy not this: The management plane covers device configuration and monitoring access, not per-frame forwarding.

    CWhy not this: The application plane holds the software that requests services from the controller, not the forwarding hardware.

    DWhy this is right: Forwarding frames according to installed entries is the data plane's job, and it stays on the switch.

    Matching traffic against already-installed entries and forwarding it is data plane work. The controller's decision about what those entries should contain is the control plane, which is the part that was moved off the switch.

    Open this question
  16. Question 16

    Automation and Programmability

    Which type of API do applications use to request network services from an SDN controller?

    Show the answer

    Correct answerD. Northbound API

    AWhy not this: Westbound APIs are for communication between controllers, not for applications.

    BWhy not this: Eastbound APIs are for communication with peers or other systems on the side, not for applications.

    CWhy not this: Southbound APIs connect the controller to the network devices, not to applications.

    DWhy this is right: Northbound APIs connect applications to the controller, and they are usually REST-based.

    A northbound API sits between the controller and the applications above it, typically as a REST API. A southbound API faces the network devices below the controller instead.

    Open this question
  17. Question 17

    Automation and Programmability

    A script retrieves the device inventory by sending REST calls to a controller, which polls the switches using SNMP. The team will replace SNMP with NETCONF on the controller. What is the effect on the script?

    Show the answer

    Correct answerA. None, because SNMP and NETCONF are southbound and the script uses a northbound API

    AWhy this is right: Device-facing protocols are southbound and the script calls the northbound REST API, so the swap does not affect it.

    BWhy not this: NETCONF is a device-facing protocol. It does not take the place of the REST API that applications call.

    CWhy not this: The REST interface faces applications and is independent of which protocol the controller uses toward devices.

    DWhy not this: Applications talk to the controller, not to devices, so they do not need to use the device protocol.

    The controller talks to devices over southbound protocols such as SNMP or NETCONF, and it exposes a separate northbound REST API to applications. Changing the southbound protocol is hidden from the script, so the script keeps working unchanged.

    Open this question
  18. Question 18

    Automation and Programmability

    An automated change passes syntax checks but removes management access when applied simultaneously to every branch router. Which change to the automation process would BEST limit the impact of a similar logical error?

    Show the answer

    Correct answerC. Deploy in stages with reachability checks between groups

    AWhy not this: Syntax checks identify malformed configuration, not necessarily valid changes that disrupt management access.

    BWhy not this: Greater parallelism spreads a faulty change faster rather than limiting the number of affected devices.

    CWhy this is right: Checking reachability between deployment groups allows the workflow to stop before the error affects the remaining routers.

    DWhy not this: Connection retries may handle transient failures but do not contain the spread of a faulty configuration.

    Staged deployment with operational checks limits how widely a faulty change spreads before execution stops. Syntax validation alone cannot detect a valid configuration that breaks management access.

    Open this question
  19. Question 19

    Automation and Programmability

    A network team replaces daily manual interface-counter checks with automated collection and alerts when error rates exceed a threshold. Which management improvement does this MOST directly provide?

    Show the answer

    Correct answerA. Earlier identification of developing interface problems

    AWhy this is right: Regular automated checks can flag rising errors sooner than a once-daily manual review.

    BWhy not this: Monitoring reports interface conditions; it does not increase interface bandwidth.

    CWhy not this: Collecting counters and generating alerts does not repair cables, transceivers, or other physical faults.

    DWhy not this: A threshold violation indicates a symptom that may require further investigation to determine its cause.

    Automated monitoring can detect threshold violations between manual checks, helping the team identify problems sooner. An alert identifies a symptom; it does not by itself establish the root cause.

    Open this question
  20. Question 20

    Automation and Programmability

    An enterprise wants controller-based networking with unified policy, continued controller availability after one server fails, and packet forwarding that does not pass through a controller. Which design BEST meets these requirements?

    Show the answer

    Correct answerB. A controller cluster providing one logical service, with forwarding on network devices

    AWhy not this: Sending forwarded traffic through the cluster violates the requirement to keep forwarding on network devices.

    BWhy this is right: A cluster supports controller redundancy and unified policy while keeping packet forwarding on network devices.

    CWhy not this: Redundant network links do not preserve controller availability when the sole controller server fails.

    DWhy not this: Separate policy authorities do not provide the required unified policy service.

    A controller cluster can provide a logically centralized service with server redundancy while network devices perform packet forwarding. Redundant links to a single controller protect connectivity, not availability after that server fails.

    Open this question
  21. Question 21

    Automation and Programmability

    A team uses scripts to apply device-specific configurations across a traditional network and is evaluating a controller-based alternative. Which capabilities distinguish a controller-based approach from simply automating the same device-by-device workflow? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersC. Maintain a network-wide model of topology and stateF. Translate network-level policy into device-specific settings

    AWhy not this: Configuration templates are also commonly used by scripts managing traditional networks.

    BWhy not this: Scheduled backups are a management capability available without controller-based networking.

    CWhy this is right: A network-wide model allows the controller to coordinate decisions beyond individual device configurations.

    DWhy not this: Traditional management tools can collect interface counters using protocols such as SNMP.

    EWhy not this: Traditional automation can also use encrypted management sessions, such as SSH.

    FWhy this is right: Policy abstraction lets administrators express network-level requirements rather than specify each device's configuration.

    A controller can use a network-wide model to translate network-level policy into device-specific settings. Templates, encrypted sessions, backups, and counter collection can also be used in traditional device-by-device automation.

    Open this question
  22. Question 22

    Automation and Programmability

    A network team has unlabeled telemetry from branches with different normal traffic patterns and wants to flag unusual behavior without defining fixed thresholds. Which approach best meets this need?

    Show the answer

    Correct answerB. Unsupervised learning using learned traffic baselines

    AWhy not this: Supervised learning needs labeled examples to learn the relationship between telemetry and incident categories.

    BWhy this is right: Unsupervised learning can learn normal patterns from unlabeled telemetry and identify unusual deviations.

    CWhy not this: Reinforcement learning learns actions through rewards rather than simply detecting unusual telemetry patterns.

    DWhy not this: Preset limits require explicit thresholds rather than learning each branch's normal traffic patterns.

    Unsupervised learning can discover patterns in unlabeled telemetry and flag deviations from learned baselines. Supervised learning requires labeled examples, which the team does not have.

    Open this question
  23. Question 23

    Automation and Programmability

    A generative AI assistant attributes an outage to a failed power supply, but the supplied logs contain no power-related events. What should the engineer do before accepting that explanation?

    Show the answer

    Correct answerA. Verify the cause against independent device telemetry

    AWhy this is right: Independent device telemetry can confirm or contradict the assistant's proposed cause.

    BWhy not this: Confident wording does not establish that an AI-generated claim is factually supported.

    CWhy not this: Repeated responses can reproduce the same unsupported claim rather than validate it.

    DWhy not this: A longer explanation can expand an unsupported claim without supplying independent evidence.

    Generative AI can produce plausible but unsupported claims, known as hallucinations, so the proposed cause needs independent verification. Repeated or confident responses do not establish that the cause is supported by device evidence.

    Open this question
  24. Question 24

    Automation and Programmability

    What does logically centralized control mean in an SDN architecture?

    Show the answer

    Correct answerD. Control decisions use a network-wide view.

    AWhy not this: Independent device-level decisions describe distributed control rather than logically centralized control.

    BWhy not this: Logical centralization can be implemented by multiple physical controllers.

    CWhy not this: Forwarding user traffic remains a data plane responsibility, not a controller responsibility.

    DWhy this is right: A logically centralized control plane coordinates decisions using a network-wide view.

    Logically centralized control provides a network-wide view for coordinated decisions. It does not require one physical server; multiple controllers can implement a logically centralized control plane.

    Open this question
  25. Question 25

    Automation and Programmability

    An engineer finds REST-based interfaces on both a controller and managed devices. What information is needed to classify an interaction as northbound or southbound?

    Show the answer

    Correct answerB. Which roles the communicating endpoints perform

    AWhy not this: JSON and XML are data encodings and do not determine architectural direction.

    BWhy this is right: The application, controller, and device roles establish the interface's architectural relationship.

    CWhy not this: Connection initiation does not establish whether an interface is northbound or southbound.

    DWhy not this: HTTP versus HTTPS indicates transport security, not the interface's architectural role.

    Northbound and southbound describe an interface's architectural relationship: application-to-controller or controller-to-device. REST, encoding, transport security, and connection initiation do not independently establish that relationship.

    Open this question
  26. Question 26

    Automation and Programmability

    Which southbound protocol is specifically designed for a controller to manage switch match-action flow tables?

    Show the answer

    Correct answerD. OpenFlow

    AWhy not this: RESTCONF provides REST-based access to YANG-modeled data rather than the specialized flow-table interface.

    BWhy not this: NETCONF provides structured device configuration operations, not the specialized OpenFlow flow-table interface.

    CWhy not this: SNMP primarily supports monitoring and management through managed objects.

    DWhy this is right: OpenFlow lets a controller manage flow entries containing match conditions and forwarding actions.

    OpenFlow defines controller interaction with switch flow tables, including match conditions and actions. NETCONF manages device configuration through structured operations rather than defining the OpenFlow flow-table interface.

    Open this question
  27. Question 27

    Automation and Programmability

    A switch loses its controller connection but retains installed forwarding entries. A new flow requires a controller decision; what behavior demonstrates control and data plane separation?

    Show the answer

    Correct answerB. Existing flows continue; the new flow cannot be programmed.

    AWhy not this: Retained entries can support existing flows, and controller loss does not imply local path calculation.

    BWhy this is right: Existing forwarding state remains usable, but the required controller decision is unavailable.

    CWhy not this: The controller is unavailable and does not ordinarily forward user packets.

    DWhy not this: Continued forwarding does not mean the switch takes over centralized control decisions.

    Retained forwarding entries allow existing flows to continue without controller involvement. A new flow requiring a controller decision cannot be programmed while disconnected; the switch does not automatically take over the controller's role.

    Open this question
  28. Question 28

    Automation and Programmability

    An Ansible playbook must restore missing NTP settings while leaving compliant settings unchanged during repeated production runs. Which approach BEST meets this requirement?

    Show the answer

    Correct answerD. Use idempotent modules to enforce desired settings.

    AWhy not this: Inventory groups organize targets and variables; they do not determine whether configuration changes are necessary.

    BWhy not this: Handlers run when notified by changed tasks; they do not themselves ensure that configuration tasks are idempotent.

    CWhy not this: Check mode previews supported changes without applying them, so it cannot restore missing settings.

    DWhy this is right: Idempotent modules enforce the desired configuration without changing settings that already match.

    Idempotent modules compare existing settings with the desired configuration and change only what is needed, so repeated runs converge without unnecessary changes. Check mode previews supported changes but does not apply the missing settings.

    Open this question
  29. Question 29

    Automation and Programmability

    A REST API uses HTTP Basic authentication over unencrypted HTTP. Which change protects the credentials from being read by someone capturing network traffic?

    Show the answer

    Correct answerC. Use HTTPS for API requests

    AWhy not this: Basic authentication already uses Base64 encoding, which can be reversed without a secret key.

    BWhy not this: A JSON body remains readable in captured traffic when HTTP is unencrypted.

    CWhy this is right: HTTPS encrypts the HTTP exchange with TLS, protecting credentials in transit.

    DWhy not this: Changing the header does not encrypt its contents; credentials remain readable over HTTP.

    HTTPS uses TLS to encrypt API traffic, protecting Basic authentication credentials in transit. Base64 encoding is reversible and provides no confidentiality.

    Open this question
  30. Question 30

    Automation and Programmability

    Which HTTP verb normally retrieves a resource from a REST API without modifying it?

    Show the answer

    Correct answerA. GET

    AWhy this is right: GET requests a representation of a resource without modifying it.

    BWhy not this: POST typically submits data for processing or creates a resource.

    CWhy not this: DELETE requests removal of a resource.

    DWhy not this: PATCH requests a partial modification of a resource.

    GET retrieves a representation of a resource without requesting a change to it. POST typically submits data for processing or creates a resource rather than retrieving one.

    Open this question