Courseiva

CCNA Automation Questions

53 of 128 questions · Page 2/2 · Automation · Answers revealed

76
MCQmedium

For consistent multi-data-center automation, which tool is best suited to orchestrate both NX-OS and ACI across sites?

A.Cisco NSO
B.Puppet
C.Ansible
D.Chef
AnswerA

NSO is built for service orchestration across multiple domains including NX-OS and ACI.

Why this answer

Cisco NSO (Network Services Orchestrator) is the correct tool because it provides multi-domain, multi-vendor orchestration with native support for both NX-OS and ACI through its Network Element Drivers (NEDs). NSO uses a model-driven approach with YANG data models and NETCONF/RESTCONF protocols to manage configuration consistency across distributed data centers, enabling service-level abstraction and closed-loop automation that other tools lack.

Exam trap

Cisco often tests the distinction between configuration management tools (Puppet, Chef, Ansible) and true orchestration platforms (NSO), trapping candidates who assume any automation tool can handle multi-site consistency without understanding NSO's model-driven, stateful orchestration and NED architecture.

How to eliminate wrong answers

Option B (Puppet) is wrong because it is a configuration management tool that relies on a master-agent model with its own DSL, lacking native support for ACI's APIC REST API or NX-OS's NX-API without extensive custom modules, and it does not provide multi-site orchestration capabilities. Option C (Ansible) is wrong because while it can automate NX-OS and ACI via modules, it is a task-based automation tool without a centralized state database or service orchestration layer, making it unsuitable for consistent multi-data-center orchestration across sites. Option D (Chef) is wrong because it is a configuration management tool using Ruby-based recipes and cookbooks, which requires significant custom development to interface with ACI's REST API and NX-OS, and it lacks the built-in multi-site service orchestration and network abstraction that NSO provides.

77
Multi-Selectmedium

A data center team is implementing configuration automation for a fleet of Nexus 9000 switches. They need a solution that supports idempotent configuration, works well with version control, and does not require an agent on the switches. Which two tools should they consider?

Select 2 answers
A.Puppet
B.Chef
C.Ansible
D.Python with Paramiko
E.Cisco NSO
AnswersC, E

Ansible is agentless, uses SSH/NX-API, and its playbooks are idempotent and version-controllable.

Why this answer

C is correct because Ansible is an agentless automation tool that uses SSH to push declarative configurations to Nexus 9000 switches. It supports idempotent playbooks, meaning the same playbook can be run multiple times without changing the state if the desired configuration is already in place, and its YAML-based playbooks integrate seamlessly with version control systems like Git.

Exam trap

Cisco often tests the distinction between agent-based (Puppet, Chef) and agentless (Ansible, NSO) automation tools, and the trap here is that candidates may overlook the 'no agent' requirement and select Puppet or Chef because they are familiar configuration management tools, or they may dismiss NSO because it is less commonly used in smaller environments.

78
MCQhard

An engineer receives an error 'XML namespace mismatch' when using NETCONF to configure a Nexus switch. The YANG model used is from the Cisco NX-OS openconfig model. What is the most likely cause?

A.The namespace in the XML payload does not match the YANG model
B.The switch is running in VM mode
C.The YANG model is not supported on this switch version
D.The NETCONF session is not authenticated
AnswerA

Directly causes the namespace mismatch error.

Why this answer

The 'XML namespace mismatch' error occurs when the namespace URI declared in the XML payload does not match the namespace defined in the YANG module. NETCONF uses the namespace to identify the correct YANG model for parsing the configuration data. If the namespace in the XML does not exactly match the one in the Cisco NX-OS openconfig YANG model, the switch rejects the operation with this specific error.

Exam trap

Cisco often tests the distinction between namespace mismatch errors and other NETCONF failures (like unsupported model or authentication), so candidates mistakenly choose 'unsupported model' when the error message explicitly points to a namespace issue.

How to eliminate wrong answers

Option B is wrong because VM mode (virtual machine mode) does not affect XML namespace validation; it is a licensing or operational mode that does not change NETCONF protocol behavior. Option C is wrong because if the YANG model were unsupported, the error would typically be 'data model not supported' or 'capability not advertised', not a namespace mismatch. Option D is wrong because an unauthenticated NETCONF session would fail at the session establishment phase (e.g., 'authentication failed' or 'session rejected'), not during payload processing with a namespace-specific error.

79
Multi-Selecteasy

Which two statements about the NX-API REST interface on Nexus switches are true? (Choose two.)

Select 2 answers
A.It supports JSON and XML encoding.
B.It uses YANG models exclusively.
C.It only supports read-only operations.
D.It requires enabling 'feature nxapi' on the switch.
E.It uses SSH for transport.
AnswersA, D

Both formats are supported.

Why this answer

NX-API REST supports JSON and XML and uses HTTPS for secure communication.

80
MCQmedium

In ACI automation, the APIC REST API interacts with the Management Information Tree (MIT). Which of the following represents a typical hierarchical object path in the MIT?

A./api/node/class/topSystem.json
B./api/mo/sys/intf.json
C./api/mo/uni/fabric/protpol.json
D./api/mo/uni/tn-{tenant}/ap-{app}/epg-{epg}.json
AnswerD

Correct: This represents the MIT path for an EPG under an application profile under a tenant.

Why this answer

The MIT follows a hierarchy: Tenant > Application Profile (AP) > Endpoint Group (EPG).

81
Multi-Selectmedium

Which THREE are correct about using Ansible with Cisco NX-OS? (Choose three.)

Select 3 answers
A.Ansible requires an agent installed on the Nexus switch.
B.The cisco.nxos collection includes the nxos_vlan module.
C.Playbooks are written in YAML format.
D.Ansible uses a proprietary protocol to communicate with Nexus switches.
E.The nxos_config module is used to manage configuration on NX-OS.
AnswersB, C, E

Correct. nxos_vlan is part of cisco.nxos.

Why this answer

The cisco.nxos collection includes modules like nxos_vlan, nxos_interface, nxos_bgp, and nxos_config. Playbooks are written in YAML. Ansible uses SSH (or NX-API) to connect, not a dedicated agent. 'nxos_facts' is a module for gathering facts.

82
Matchingmedium

Match each Cisco ACI component to its role.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Central controller for policy management

Leaf-to-leaf connectivity and fabric backplane

Top-of-rack switch connecting servers to fabric

Endpoint group for policy application

Bridge domain for Layer 2 forwarding context

Why these pairings

Correct matches: APIC is the central policy controller; Spine switches connect leaves; Leaf switches connect endpoints. Common confusions include mistaking APIC as a forwarding switch and associating EPG with spine switches.

83
MCQmedium

A DevOps team wants to version control network device configurations. Which tool is best suited for tracking changes and collaborating on configuration files?

A.Python virtual environment
B.Ansible Tower
C.Cisco Prime Infrastructure
D.Git
AnswerD

Git provides distributed version control.

Why this answer

Git is the industry standard for version control, enabling history, branching, and collaboration.

84
Multi-Selectmedium

Which TWO of the following are components of the Cisco ACI Management Information Tree (MIT)? (Choose two.)

Select 2 answers
A.l3extOut
B.fvAp
C.fvTenant
D.vlan
E.interface
AnswersB, C

Correct. Application Profile is a MIT object under tenant.

Why this answer

The MIT includes objects like tenants, application profiles (AP), EPGs, and bridge domains (BD). VRF is also part of MIT. 'fvTenant', 'fvAp', 'fvAEPg', 'fvBD' are object classes. 'l3extOut' is for L3 out, not part of the core MIT hierarchy for tenant networking.

85
MCQmedium

In the context of Ansible automation for Cisco Nexus switches, which module can be used to manage VLAN configurations?

A.nxos_interface
B.nxos_vlan
C.nxos_bgp
D.nxos_config
AnswerB

Correct: nxos_vlan is designed for VLAN management.

Why this answer

The cisco.nxos collection includes the nxos_vlan module specifically for managing VLANs on NX-OS devices.

86
Drag & Dropmedium

Arrange the steps to recover a lost admin password on a Cisco Nexus switch.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

Password recovery involves boot interruption, register change, boot, password reset, and save.

87
MCQeasy

A DevOps team is implementing CI/CD for network configuration changes on Nexus switches. Which tool is most suitable for version control of network configuration files?

A.Git
B.Jenkins
C.Ansible
D.Docker
AnswerA

Git provides version control for configuration files.

Why this answer

Git is a distributed version control system widely used for managing infrastructure as code, including network configurations. Ansible is for automation, Jenkins for CI/CD pipelines, and Docker for containers.

88
Multi-Selecteasy

Which TWO methods are supported for authenticating to the APIC REST API?

Select 2 answers
A.SAML authentication
B.Certificate-based authentication
C.Local AAA user (username/password)
D.RADIUS/TACACS+ authentication
E.LDAP authentication
AnswersB, C

X.509 certificates can be used for API authentication.

Why this answer

The APIC REST API supports certificate-based authentication (option B) and local AAA user authentication with a username and password (option C). Certificate-based authentication uses X.509 certificates for secure, non-interactive API access, while local AAA authentication relies on credentials stored directly on the APIC. Both methods are explicitly documented as valid for REST API calls.

Exam trap

Cisco often tests the distinction between authentication methods supported for the REST API versus those supported for management access (SSH, web GUI), leading candidates to incorrectly select RADIUS/TACACS+ or LDAP as valid REST API options.

89
MCQhard

An organization wants to adopt Infrastructure as Code (IaC) principles for their data center network. Which practice best aligns with IaC for network configuration?

A.Using spreadsheets to track changes
B.Manually configuring devices via CLI
C.Using a web GUI for each device
D.Storing configuration files in Git and applying them with automation tools
AnswerD

This is a core IaC practice.

Why this answer

IaC involves managing and provisioning network infrastructure through machine-readable definition files, rather than manual processes. Storing configurations in version control (like Git) and using automated tools is key.

90
Multi-Selectmedium

Which TWO of the following are characteristics of the NETCONF protocol? (Choose two.)

Select 2 answers
A.Operates over SSH or TLS.
B.Supports JSON encoding as well as XML.
C.Uses XML for data representation.
D.Uws a single RPC for all operations.
E.Uses RESTful HTTP methods.
AnswersA, C

Correct: NETCONF typically uses SSH (RFC 6242) or TLS.

Why this answer

NETCONF uses XML for data encoding and provides operations like get, edit-config, etc., based on YANG models.

91
MCQhard

In an ACI environment, an automation script uses the acitoolkit Python library to create a new EPG. The script connects to the APIC using login credentials. After creating the EPG, what must be called to commit the changes?

A.session.save()
B.session.push_to_apic()
C.session.commit()
D.session.apply()
AnswerB

Correct method to push changes.

Why this answer

acitoolkit uses a Session object; after making changes, the session's push_to_apic method must be called to commit.

92
MCQmedium

Which API uses RESTful principles and supports both XML and JSON encoding for network configuration, as defined in RFC 8040?

A.OpenConfig
B.RESTCONF
C.NETCONF
D.NX-API CLI
AnswerB

RESTCONF is RESTful and supports both XML and JSON.

Why this answer

RESTCONF (RFC 8040) is a REST-based protocol using HTTP methods and supports XML/JSON.

93
MCQmedium

Which Python library is part of the ACI SDK and provides a high-level object-oriented interface for interacting with the APIC?

A.pyats
B.cisco_nxapi
C.acitoolkit
D.Cobra SDK
AnswerD

Correct: Cobra SDK is the official Python SDK for ACI.

Why this answer

The Cobra SDK provides an object-oriented Python interface for ACI automation, wrapping the APIC REST API.

94
Multi-Selecthard

Which TWO are best practices when automating ACI fabric configuration using Ansible?

Select 2 answers
A.Set validate_certs: no to avoid certificate errors
B.Use the cisco.aci collection
C.Store credentials in plain text in playbooks
D.Use state: query for idempotent checks
E.Use delegate_to: localhost for all tasks
AnswersB, D

The official collection provides idempotent modules for ACI.

Why this answer

The cisco.aci collection is the official Ansible collection for automating Cisco ACI fabric configuration. It provides modules that abstract the ACI REST API, ensuring idempotent and reliable configuration management. Using this collection is a best practice because it is maintained by Cisco and follows Ansible's recommended approach for interacting with ACI.

Exam trap

Cisco often tests the misconception that disabling certificate validation (validate_certs: no) is acceptable for lab environments, but the exam expects adherence to security best practices regardless of environment.

95
MCQmedium

A network engineer is automating a repetitive configuration task on a Nexus 9000 switch using Python scripts with NX-API. The script sends a CLI command via POST request but receives HTTP 400 status with error 'Invalid request payload'. What is the most likely cause?

A.The JSON payload does not include the required 'ins_api' wrapper with version and type fields.
B.The switch is running an unsupported NX-OS version.
C.The script is using HTTP instead of HTTPS.
D.The CLI command syntax is incorrect with too many spaces.
AnswerA

The NX-API requires a specific JSON format with 'ins_api' envelope containing attributes like version, type, chunk, sid, and input.

Why this answer

The NX-API on Nexus switches requires a JSON payload wrapped in an 'ins_api' object that includes fields such as 'version', 'type', 'chunk', 'sid', and 'input'. Omitting this wrapper or any required field results in HTTP 400 'Invalid request payload'. Option A correctly points out that the payload lacks the required 'ins_api' wrapper.

96
MCQeasy

A large financial institution has recently migrated its data center network to a new Cisco ACI fabric. The operations team is tasked with automating the provisioning of new application tenants, including EPGs, contracts, and bridge domains, using the APIC REST API. They have developed a comprehensive set of Python scripts that successfully performed these actions in their lab environment. However, when deploying the scripts to production, they receive an 'SSL: CERTIFICATE_VERIFY_FAILED' error from the requests library. The production APIC cluster uses a self-signed certificate for HTTPS, and the corporate security policy strictly prohibits the use of HTTP or disabling certificate verification. Additionally, the policy does not allow replacing the self-signed certificate with a CA-signed one without a lengthy approval process that could delay the automation project. The team needs an immediate solution that maintains security best practices. What should the team do?

A.Use HTTP instead of HTTPS for the API calls.
B.Add the self-signed certificate to the Python trust store by using the cert file in the verify parameter.
C.Disable SSL certificate verification in the Python requests by setting verify=False.
D.Request an exception to the security policy to allow a CA-signed certificate.
AnswerB

This enables verification against the specific certificate, maintaining security without policy changes.

Why this answer

The Python requests library allows you to pass a self-signed certificate file via the `verify` parameter, which adds that certificate to the trusted store for that session. This satisfies the security policy by maintaining HTTPS encryption and certificate verification without disabling SSL checks or requiring a CA-signed certificate. The team can export the APIC's self-signed certificate (e.g., from the APIC GUI or CLI) and use it in their scripts as `requests.get(url, verify='/path/to/cert.pem')`.

Exam trap

Cisco often tests the misconception that disabling SSL verification (`verify=False`) is an acceptable workaround for self-signed certificates, but the trap is that the security policy explicitly prohibits disabling verification, and the correct solution is to trust the specific certificate via the `verify` parameter.

How to eliminate wrong answers

Option A is wrong because using HTTP instead of HTTPS violates the corporate security policy that strictly prohibits HTTP, and it exposes API credentials and data in plaintext, which is a severe security risk. Option C is wrong because setting `verify=False` disables SSL certificate verification entirely, which violates the security policy's requirement to maintain certificate verification and opens the connection to man-in-the-middle attacks. Option D is wrong because requesting an exception for a CA-signed certificate would require a lengthy approval process that delays the project, and the question explicitly states the team needs an immediate solution.

97
MCQmedium

An engineer wants to automate the configuration of BGP on a Nexus switch using Ansible. Which module from the cisco.nxos collection is appropriate?

A.nxos_interface
B.nxos_config
C.nxos_bgp
D.nxos_vlan
AnswerC

Correct module for BGP.

Why this answer

The nxos_bgp module is designed to manage BGP configuration on NX-OS devices.

98
MCQmedium

A large enterprise data center uses Cisco UCS Manager to manage hundreds of blade servers. The automation team has been using Python SDK scripts to provision service profiles. Recently, after a UCS Manager firmware upgrade, several scripts that previously worked are now failing with 'AttributeError: 'ServiceProfile' object has no attribute 'set_vnic_order''. The team confirms that the UCS Manager version changed from 4.0 to 4.2. Which course of action should the engineer take to resolve the issue?

A.Use the UCS Manager XML API directly without the SDK
B.Downgrade UCS Manager back to version 4.0 to restore compatibility
C.Replace Python scripts with Ansible modules that use the UCS API
D.Update the Python SDK to the version that supports UCS Manager 4.2 and modify scripts accordingly
AnswerD

Permanent fix; SDK update restores API compatibility.

Why this answer

The Python SDK for UCS Manager is version-specific; upgrading UCS Manager from 4.0 to 4.2 introduces API changes that can deprecate or remove methods like `set_vnic_order`. Updating the SDK to a version compatible with UCS Manager 4.2 ensures the Python scripts use the correct API calls, and modifying the scripts to align with any new method signatures or attributes resolves the AttributeError.

Exam trap

Cisco often tests the misconception that direct API usage (Option A) or alternative tools (Option C) bypass version compatibility issues, when in fact all API layers require version alignment.

How to eliminate wrong answers

Option A is wrong because using the UCS Manager XML API directly without the SDK would require rewriting all scripts from scratch, which is more labor-intensive and error-prone than updating the SDK; the XML API also undergoes version changes, so it would not inherently avoid compatibility issues. Option B is wrong because downgrading UCS Manager is a backward step that loses new features, security patches, and bug fixes, and it is not a sustainable solution for an enterprise environment. Option C is wrong because replacing Python scripts with Ansible modules is unnecessary and introduces a new toolchain; Ansible modules also rely on the UCS API and would require similar version compatibility updates.

99
Multi-Selecthard

Which THREE of the following are components of an Ansible playbook for automating Cisco Nexus configuration? (Choose three.)

Select 3 answers
A.roles
B.variables
C.hosts
D.modules
E.tasks
AnswersC, D, E

Correct: 'hosts' defines the target devices.

Why this answer

An Ansible playbook consists of hosts (target devices), tasks (what to do), and modules (the actual operations). Variables can be used but are not mandatory components.

100
MCQhard

Which of the following is a YANG data model developed by the OpenConfig working group to provide vendor-neutral configuration for network interfaces?

A.openconfig-interfaces
B.ietf-interfaces
C.nacm
D.Cisco-NX-OS-device
AnswerA

OpenConfig's interface model is vendor-neutral.

Why this answer

OpenConfig defines standard YANG models for various network functions, including interfaces.

101
MCQmedium

A DevOps team is implementing CI/CD for network configuration using Git. They want to ensure that any changes to the YANG-based configuration are automatically validated before merging. Which tool is used for network automation with YANG models and supports NETCONF/RESTCONF?

A.Terraform with terraform-provider-aci
B.Python with cisco_nxapi library
C.Terraform with netconf-client provider
D.Ansible with cisco.nxos collection
AnswerC

Terraform can use NETCONF/RESTCONF providers to manage network devices declaratively.

Why this answer

Terraform can use RESTCONF/NETCONF providers, but Ansible with cisco.nxos collection also supports YANG; however, Terraform is declarative and fits CI/CD pipelines well.

102
MCQhard

An organization is deploying Ansible for network automation across multiple Nexus 9000 leaf switches. They need to ensure that configuration tasks are idempotent and only apply changes when necessary. Which best practice should be followed when using the cisco.nxos.nxos_config module?

A.Write idempotent playbooks by checking 'show running-config' before each task.
B.Use the 'replace' option with a provided configuration file to enforce desired state.
C.Set 'always_run' parameter to 'yes' to force execution.
D.Use the 'backup' option to always restore previous configuration.
AnswerB

The 'replace' option in the nxos_config module compares the running config with the provided config and applies only necessary changes, ensuring idempotency.

Why this answer

The 'replace' option in the cisco.nxos.nxos_config module allows you to provide a configuration file that defines the desired state, and the module will only apply changes if the current configuration does not match, ensuring idempotency. This is a best practice for network automation with Ansible on Nexus switches.

103
Multi-Selectmedium

Which two features allow running Python scripts directly on a Cisco Nexus switch? (Choose two.)

Select 2 answers
A.EEM with Python applets
B.NX-API REST
C.Guest shell
D.Ansible
E.Terraform
AnswersA, C

EEM can execute Python scripts on events.

Why this answer

Guest shell provides a Linux environment; EEM can trigger Python applets on events.

104
Multi-Selecteasy

Which TWO statements are true regarding the differences between REST API (NX-API) and NETCONF for automating Nexus switches?

Select 2 answers
A.NETCONF can only be used for configuration, not for operational state
B.NX-API uses HTTP/HTTPS as the transport protocol
C.NETCONF primarily uses JSON for data encoding
D.NETCONF provides a standardized data model (YANG) for configuration
E.Both use SSH as their default transport
AnswersB, D

NX-API is a REST-based interface over HTTP/HTTPS.

Why this answer

NX-API (REST API) uses HTTP or HTTPS as its transport protocol, allowing RESTful operations (GET, POST, PUT, DELETE) over standard web ports. This is in contrast to NETCONF, which uses SSH as its transport (RFC 6241). Therefore, option B is correct.

Exam trap

Cisco often tests the misconception that NETCONF only handles configuration (ignoring its <get> operation for operational state) and that NX-API uses SSH, when in fact NX-API uses HTTP/HTTPS and NETCONF uses SSH.

105
Multi-Selectmedium

Which TWO are benefits of using the Cisco NX-API for network automation compared to traditional SSH-based scripting?

Select 2 answers
A.Enables batching multiple CLI commands in a single HTTP request
B.Returns structured data (JSON/XML) that is version-independent
C.Supports direct configuration of IPSec and SSL VPNs
D.Eliminates the need for any authentication
E.Allows for real-time streaming of syslog messages
AnswersA, B

The NX-API supports the 'chunk' parameter to batch commands, reducing round-trips.

Why this answer

The Cisco NX-API allows batching multiple CLI commands into a single HTTP request, which reduces the number of round trips and improves automation efficiency. This is a key advantage over traditional SSH-based scripting, where each command typically requires a separate connection or session.

Exam trap

Cisco often tests the distinction between NX-API's structured output and SSH's text-based output, and the trap here is that candidates may confuse NX-API's command batching with real-time streaming features like telemetry or syslog, which are separate technologies.

106
MCQmedium

An engineer is automating ACI configuration using Terraform. Which provider and resource should be used to create an Application Profile under a Tenant?

A.provider = cisco.aci and resource = aci_application_profile
B.provider = cisco.aci and resource = aci_tenant
C.provider = cisco.aci and resource = aci_epg
D.provider = cisco.nxos and resource = nxos_vlan
AnswerA

Correct. terraform-provider-aci uses the aci_application_profile resource.

Why this answer

terraform-provider-aci is the correct provider for ACI automation. The resource for an application profile in ACI is 'aci_application_profile' which is part of the provider. 'aci_tenant' is for tenants, 'aci_epg' for EPGs, and 'aci_bridge_domain' for bridge domains.

107
MCQmedium

An engineer is writing an Ansible playbook to configure a Nexus switch. The playbook uses the cisco.nxos.nxos_config module. Which Ansible concept is used to ensure the playbook is idempotent?

A.Idempotency is achieved by using the 'force' parameter.
B.Using 'gather_facts: no' makes the playbook idempotent.
C.Idempotency is guaranteed by default in Ansible.
D.The 'check_mode: yes' flag ensures the playbook only shows changes without applying them.
AnswerD

Check mode is used for idempotency testing.

Why this answer

The 'check_mode' (or '--check') flag in Ansible allows dry-run to verify idempotency.

108
Multi-Selectmedium

Which two of the following are valid methods to automate Nexus switch configuration using Python? (Choose two.)

Select 2 answers
A.Using NETCONF with Python
B.Using Ansible with Python modules
C.Writing Python scripts for EEM applets
D.Using the cisco_nxapi Python library
E.Running Python scripts in Guest Shell on the switch
AnswersD, E

cisco_nxapi provides Python bindings for NX-API.

Why this answer

cisco_nxapi is a Python library for Nexus API. Guest Shell allows running Python scripts on-box. EEM uses Tcl, not Python natively.

NETCONF uses Python via ncclient, but not natively on Nexus. Ansible is not Python library.

109
Multi-Selecthard

Which THREE statements are true regarding YANG models in the context of data center automation? (Choose three.)

Select 3 answers
A.YANG is a data modeling language used to define configuration and state data.
B.YANG is a communication protocol like NETCONF.
C.RESTCONF supports both JSON and XML encoding.
D.NETCONF uses XML encoding for YANG-modeled data.
E.OpenConfig YANG models are Cisco-proprietary.
AnswersA, C, D

Correct. YANG models define data.

Why this answer

YANG models define data structures for network configuration and state. NETCONF uses XML-based encoding, while RESTCONF uses JSON or XML. OpenConfig provides vendor-neutral YANG models.

YANG is a data modeling language, not a protocol.

110
MCQmedium

Refer to the exhibit. An NX-API request returns this JSON error. What is the most likely cause?

A.The API version in the request is mismatched
B.Invalid credentials
C.The command is not allowed via NX-API
D.The switch is in maintenance mode
AnswerC

Some commands are restricted in NX-API. The error 'Invalid command' suggests a disallowed command.

Why this answer

The JSON error indicates that the NX-API request was rejected because the command is not permitted through the NX-API interface. NX-API enforces a strict allowlist of commands; any command not explicitly allowed (e.g., certain show commands or configuration commands that could destabilize the switch) will return this error. This is a security and stability feature of the NX-API RESTful interface.

Exam trap

Cisco often tests the misconception that any CLI command can be executed via NX-API, but in reality, NX-API has a restricted command set, and candidates may incorrectly attribute the error to credentials or API version mismatches.

How to eliminate wrong answers

Option A is wrong because an API version mismatch would typically return a different error, such as 'API version not supported' or a 400 Bad Request, not a generic JSON error about command permission. Option B is wrong because invalid credentials would result in an HTTP 401 Unauthorized response or an authentication failure message, not a command-level error. Option D is wrong because maintenance mode affects the switch's operational state and would generate a different error (e.g., 'switch is in maintenance mode'), not a command-specific rejection.

111
MCQeasy

What is a key advantage of using structured data (e.g., JSON or XML) from Cisco NX-API responses compared to traditional CLI scraping (e.g., using regular expressions)?

A.It automatically commits changes to running-config.
B.It provides machine-readable output that is less prone to parsing errors due to display changes.
C.It requires no software libraries to parse.
D.It eliminates the need for any authentication.
AnswerB

Structured data is consistent across versions, while CLI output can change with cosmetic updates.

Why this answer

Cisco NX-API returns structured data formats like JSON or XML, which are inherently machine-readable and consistent regardless of CLI display changes or software version updates. This eliminates the fragility of traditional CLI scraping with regular expressions, where output formatting changes (e.g., column widths, spacing, or label text) can break parsing logic. Structured data ensures reliable, predictable automation workflows.

Exam trap

Cisco often tests the misconception that structured data eliminates the need for parsing libraries or authentication, but the key advantage is purely about reliability and consistency of machine-readable output versus fragile CLI scraping.

How to eliminate wrong answers

Option A is wrong because NX-API responses do not automatically commit changes; configuration changes require explicit API calls (e.g., using the 'configure' or 'cli' method) and a separate commit action if in candidate mode. Option C is wrong because parsing JSON or XML typically requires software libraries (e.g., Python's json or xml.etree.ElementTree) to deserialize the data into usable objects. Option D is wrong because NX-API still requires authentication (e.g., HTTP basic, cookie-based, or token-based) to access the API endpoint.

112
Multi-Selecthard

A data center engineer is implementing model-driven telemetry using Cisco NX-OS. Which three components are required in the telemetry configuration? (Choose three.)

Select 3 answers
A.A HTTPS certificate for authentication
B.An SNMP community string
C.A sensor path to specify the data to stream
D.A subscription to a YANG data model
E.A destination profile with collector IP and port
AnswersC, D, E

Specifies which data to collect.

Why this answer

A sensor path defines the specific YANG data model paths or operational data that the device will stream to the collector. In model-driven telemetry on Cisco NX-OS, the sensor path is the fundamental component that tells the device exactly which data to monitor and stream, such as 'Cisco-NX-OS-device:System/clock-items' or interface statistics paths.

Exam trap

The trap here is that candidates confuse model-driven telemetry with SNMP or traditional monitoring, mistakenly thinking SNMP community strings or HTTPS certificates are core components, when in fact the three required components are the sensor path, subscription, and destination profile.

113
MCQmedium

A company wants to automate backup of running-configurations for 200 Nexus switches. Which solution provides the best combination of reliability and version history?

A.Manual backup via CLI
B.Custom Python script using TFTP
C.Ansible playbook with the nxos_config backup option
D.A cron job that SCPs config to a server
AnswerC

Idempotent, stores backups with timestamps, supports diffs.

Why this answer

An Ansible playbook with the nxos_config backup option is the best solution because it provides idempotent, version-controlled backups of running-configurations across 200 Nexus switches. The nxos_config module automatically creates a timestamped backup file on the Ansible control node, ensuring both reliability through automated, consistent execution and a built-in version history via the backup files. This approach scales efficiently without requiring manual intervention or fragile scripting.

Exam trap

Cisco often tests the misconception that any automated backup method is sufficient, but the trap here is that only Ansible's nxos_config backup option combines reliability, scalability, and built-in version history without requiring custom scripting or insecure protocols like TFTP.

How to eliminate wrong answers

Option A is wrong because manual backup via CLI is not scalable for 200 switches, lacks version history, and is prone to human error. Option B is wrong because a custom Python script using TFTP is unreliable due to TFTP's lack of authentication and encryption, and it does not inherently provide version history or idempotency. Option D is wrong because a cron job that SCPs config to a server offers no built-in version history or rollback capability, and it requires custom scripting to manage backups reliably across many devices.

114
MCQeasy

A data center has 100 Nexus switches in a fabric managed by Cisco Nexus Dashboard Orchestrator (NDO). The network team needs to automate the creation of a new network template that includes multiple VLANs and VRF configurations. They want to ensure that the template is applied consistently across all leaf switches without manual intervention. The engineer writes a Python script using the NDO REST API to create the template and deploy it. However, the deployment fails with an error 'Template validation failed: overlapping IP subnets'. Upon reviewing the template, the engineer notices that two VLANs have overlapping subnet definitions. Which action should the engineer take to resolve this issue efficiently?

A.Use the NDO GUI to edit the template and then re-run the script
B.Manually correct the overlapping subnets in the template and re-run the deployment script
C.Create separate templates for each VLAN to avoid overlaps
D.Modify the Python script to ignore validation errors and force the deployment
AnswerB

Directly fixes the root cause; then automation can proceed.

Why this answer

The root cause of the deployment failure is overlapping IP subnets in the template definition. Manually correcting the overlapping subnets in the template and re-running the deployment script directly resolves the validation error without introducing unnecessary complexity or risk. This approach ensures the template is valid before deployment, maintaining consistency across all leaf switches.

Exam trap

Cisco often tests the candidate's ability to distinguish between fixing the root cause (overlapping subnets) versus workarounds that bypass validation or increase complexity, testing whether you understand that automation must still adhere to network design rules.

How to eliminate wrong answers

Option A is wrong because using the NDO GUI to edit the template is not efficient; it introduces manual steps that defeat the automation goal and does not leverage the script for consistent deployment. Option C is wrong because creating separate templates for each VLAN does not address the overlapping subnet issue; it adds administrative overhead and may still result in overlaps if not carefully managed. Option D is wrong because modifying the Python script to ignore validation errors would force deployment of an invalid configuration, potentially causing IP conflicts and network outages across the fabric.

115
MCQeasy

An organization adopts Infrastructure as Code (IaC) for network automation. Which tool is commonly used to manage ACI fabric configuration declaratively?

A.Terraform
B.Python acitoolkit
C.NX-API CLI
D.Ansible
AnswerA

Terraform natively supports declarative configuration.

Why this answer

Terraform with the terraform-provider-aci allows declarative management of ACI objects.

116
Multi-Selecteasy

An engineer needs to collect streaming telemetry from a Nexus 9000 switch. Which two protocols can be used to transmit telemetry data to a collector? (Choose two.)

Select 2 answers
A.NETCONF
B.gNMI
C.HTTP
D.SNMP traps
E.gRPC
AnswersB, E

gNMI is designed for telemetry and management.

Why this answer

gNMI (gRPC Network Management Interface) and gRPC are both correct because they are the primary protocols used for streaming telemetry on Nexus 9000 switches. gNMI defines a standard model-driven telemetry subscription mechanism over gRPC, while gRPC provides the underlying high-performance transport for streaming telemetry data to collectors.

Exam trap

Cisco often tests the distinction between configuration protocols (NETCONF) and streaming telemetry protocols (gNMI/gRPC), and candidates mistakenly choose NETCONF because it supports YANG-push notifications, but the question specifically asks for 'streaming telemetry' which requires the persistent, high-frequency channel provided by gRPC/gNMI.

117
MCQeasy

A network engineer wants to use Terraform to automate the creation of an Application Profile in ACI. Which provider should be used?

A.terraform-provider-aci
B.terraform-provider-apic
C.terraform-provider-nxos
D.terraform-provider-nexus
AnswerA

This provider is specifically for ACI automation.

Why this answer

The terraform-provider-aci is the official Terraform provider for Cisco ACI. terraform-provider-nxos is for Nexus switches. The other options are not valid.

118
MCQhard

A Nexus switch configured with 'feature nxapi' and 'nxapi https port 443' fails to respond to REST API calls from a monitoring system. The engineer can ping the management IP. Which troubleshooting step should be taken first?

A.Check if the monitoring system is using the correct HTTP method
B.Review the switch's ACL for the management VRF
C.Verify that the NX-API process is running with 'show nxapi'
D.Confirm that the SSL certificate is trusted
AnswerC

Quick check of API status.

Why this answer

The first step when NX-API is configured but not responding is to verify that the NX-API process is actually running. The 'feature nxapi' command enables the feature, but the NX-API service may not have started due to a configuration error, resource issue, or process crash. The 'show nxapi' command displays the operational status of the NX-API service, including whether it is listening on the configured port (443 in this case).

Since the engineer can ping the management IP, basic network connectivity exists, so the issue is likely at the application layer.

Exam trap

Cisco often tests the distinction between enabling a feature with a command and the actual process running; candidates assume that 'feature nxapi' guarantees the service is operational, but the trap is that the process may not start automatically, and 'show nxapi' is the correct verification step.

How to eliminate wrong answers

Option A is wrong because the HTTP method (GET, POST, etc.) is a client-side concern; if the NX-API service is not running, no HTTP method will work, so checking the method is premature. Option B is wrong because ACLs for the management VRF would block pings as well, but the engineer can ping the management IP, indicating that Layer 3 connectivity is intact and no ACL is blocking traffic at that level. Option D is wrong because SSL certificate trust is only relevant after the HTTPS connection is established; if the NX-API process is not running, the server never presents a certificate, so trust is not the issue.

119
MCQmedium

An engineer wants to run a Python script on a Nexus switch without copying it to the bootflash. The script interacts with the switch's CLI and file system. Which feature allows this?

A.OnEX
B.NX-API REST
C.Guest shell
D.EEM with Python applets
AnswerC

Guest shell provides bash environment for Python scripts.

Why this answer

Guest shell provides a Linux environment on Nexus where Python scripts can run directly.

120
Multi-Selectmedium

A network automation engineer is writing an Ansible playbook to configure Nexus switches. Which three modules are available to manage NX-OS configuration? (Choose three.)

Select 3 answers
A.eos_config
B.nxos_config
C.nxos_interface
D.nxos_vlan
E.ios_config
AnswersB, C, D

Manages NX-OS configuration.

Why this answer

The `nxos_config` module is the primary Ansible module for managing NX-OS device configurations, allowing you to apply, replace, or merge configuration snippets directly onto Nexus switches. It is part of the `cisco.nxos` collection and is specifically designed for NX-OS, unlike `ios_config` which targets Cisco IOS/IOS-XE devices.

Exam trap

Cisco often tests the distinction between platform-specific Ansible modules (e.g., `nxos_*` vs `ios_*` vs `eos_*`), and the trap here is that candidates may confuse `ios_config` as being compatible with NX-OS due to a superficial similarity in CLI syntax, ignoring the underlying platform-specific module requirements.

121
MCQeasy

An engineer wants to automate the configuration of VLANs on a Nexus switch using Ansible. Which module from the cisco.nxos collection should be used?

A.nxos_config
B.nxos_vlan
C.nxos_bgp
D.nxos_interface
AnswerB

Correct module for VLAN management.

Why this answer

The nxos_vlan module is specifically designed to manage VLANs on Cisco NX-OS devices.

122
MCQhard

An Ansible playbook using the cisco.nxos.nxos_config module fails with the error: 'Unsupported parameters for (cisco.nxos.nxos_config) module: connection type setting'. What is the most likely cause?

A.The SSH key authentication is misconfigured.
B.The playbook includes an invalid parameter 'connection: network_cli' inside the task block.
C.The module is not installed correctly.
D.The playbook is targeting a device running an unsupported NX-OS version.
AnswerB

The 'connection' parameter is a play-level attribute, not a task parameter for nxos_config.

Why this answer

The error 'Unsupported parameters for (cisco.nxos.nxos_config) module: connection type setting' occurs because the `connection: network_cli` parameter is being passed inside the task block of the playbook. The `cisco.nxos.nxos_config` module does not accept a `connection` parameter at the task level; connection settings must be defined at the play or inventory level. This is a common syntax error when using Ansible network modules.

Exam trap

Cisco often tests the distinction between play-level and task-level parameters, specifically that `connection` is not a valid parameter for network modules at the task level, leading candidates to incorrectly attribute the error to module installation or device compatibility.

How to eliminate wrong answers

Option A is wrong because SSH key authentication misconfiguration would typically cause an authentication or permission denied error, not an 'unsupported parameters' error related to connection type. Option B is wrong because it is actually the correct answer; the error is caused by an invalid parameter inside the task block. Option C is wrong because if the module were not installed correctly, the error would be 'module not found' or 'could not locate module', not an unsupported parameters error.

Option D is wrong because an unsupported NX-OS version would result in a module execution failure or a device-specific error, not a parameter validation error from the Ansible controller.

123
MCQhard

Refer to the exhibit. An engineer is using an Ansible playbook to configure a Nexus switch. The playbook task uses the nxos_config module to set an MTU value on an interface. What is the most likely issue?

A.Add the 'provider' parameter with connection details.
B.Correct the spelling of the MTU parameter to 'mtu_size'.
C.Use the nxos_mtu module instead of nxos_config to configure MTU.
D.Verify that the switch supports MTU configuration via Ansible.
AnswerC

The nxos_config module does not support MTU; the nxos_mtu module is designed for this purpose.

Why this answer

The nxos_config module is a generic module for applying arbitrary configuration commands, but it does not validate or handle the specific semantics of MTU configuration. The nxos_mtu module is purpose-built to manage MTU settings on Nexus interfaces, ensuring correct syntax and idempotent behavior. Therefore, using nxos_mtu is the appropriate approach for this task.

Exam trap

Cisco often tests the distinction between generic configuration modules (nxos_config) and specialized modules (nxos_mtu, nxos_vlan, etc.), trapping candidates who assume any configuration can be done with nxos_config alone.

How to eliminate wrong answers

Option A is wrong because the 'provider' parameter is deprecated in modern Ansible versions; connection details are now handled via the 'connection: local' or 'ansible_connection' variable, not a separate provider parameter. Option B is wrong because the correct parameter name for MTU in the nxos_config module is 'mtu', not 'mtu_size', and the issue is not a spelling error but a module mismatch. Option D is wrong because Nexus switches universally support MTU configuration via Ansible; the issue is the module choice, not hardware or software compatibility.

124
MCQmedium

Refer to the exhibit. An automation script is used to configure a new VLAN 40 on Eth1/2 trunk. The script sends the following NX-API command: 'switchport trunk allowed vlan add 40'. After execution, the engineer runs 'show running-config interface eth1/2' and sees that the trunk allowed VLAN list shows '10,20,30'. The automation script logs indicate success for adding VLAN 40, but the running config does not show the change. What is the most likely issue?

A.The command syntax is incorrect; 'add' is not a valid keyword.
B.The engineer is viewing a different switch or the configuration was reverted by another process.
C.The script actually removed the existing VLANs and replaced them with only VLAN 40.
D.The NX-API command was sent to the wrong interface.
AnswerB

If the script succeeded but the running config on the inspected device lacks the change, the most likely cause is that the engineer is viewing a different switch or the configuration was reverted after the script completed.

Why this answer

The running config output shows that VLAN 40 is not included in the allowed list (10,20,30), indicating the command did not take effect on this device. The script logs showing success suggest the command was executed successfully on some device, but likely not the one the engineer is viewing. This could be due to a configuration rollback or the engineer viewing a different switch.

Therefore, option B is correct.

Exam trap

Cisco often tests the candidate's ability to distinguish between a command that fails silently versus a command that succeeds but the result is not visible due to environmental factors (e.g., wrong device, configuration rollback), rather than a syntax or interface error.

How to eliminate wrong answers

Option A is wrong because 'switchport trunk allowed vlan add 40' is valid NX-OS syntax; the 'add' keyword is used to append VLANs to the existing allowed list. Option C is wrong because if the script had replaced the list with only VLAN 40, the running config would show '40' alone, not '10,20,30,40'. Option D is wrong because the running config shows the change on Eth1/2, confirming the command was sent to the correct interface.

125
Multi-Selecthard

Which three of the following are characteristics of the ACI Management Information Tree (MIT)? (Choose three.)

Select 3 answers
A.It is a hierarchical tree structure
B.The APIC REST API interacts with the MIT using JSON or XML
C.It can be accessed via SNMP
D.It is a flat database without hierarchy
E.Objects are identified by a distinguished name (DN)
AnswersA, B, E

The MIT is organized as a tree.

Why this answer

The MIT is a hierarchical tree with objects like Tenant, AP, EPG, BD. Each object has a distinguished name (DN). The APIC REST API uses JSON/XML.

SNMP is not used for ACI management. The MIT is not flat; it is hierarchical.

126
MCQmedium

Refer to the exhibit. An engineer configured NX-API on a Nexus 9000 switch. The REST API client receives 'SSL_ERROR_BAD_CERT_DOMAIN'. What is the most likely cause?

A.HTTP is enabled which conflicts with HTTPS
B.The key file is missing
C.The certificate file is corrupted
D.The certificate does not match the switch's hostname
AnswerD

SSL_ERROR_BAD_CERT_DOMAIN specifically indicates domain mismatch.

Why this answer

The SSL_ERROR_BAD_CERT_DOMAIN error indicates that the certificate presented by the Nexus 9000 switch does not match the hostname used in the REST API client's request. When NX-API uses HTTPS, the client validates the server's certificate against the requested domain; a mismatch triggers this error. This is a common TLS/SSL certificate validation issue, not a problem with HTTP conflicts, missing keys, or corrupted files.

Exam trap

Cisco often tests the distinction between certificate validation errors (domain mismatch, expiry, untrusted CA) and other TLS/SSL failures (missing key, corrupted file), expecting candidates to recognize that 'SSL_ERROR_BAD_CERT_DOMAIN' specifically points to a hostname mismatch rather than a general certificate problem.

How to eliminate wrong answers

Option A is wrong because enabling HTTP alongside HTTPS does not cause SSL certificate domain validation errors; the error is specific to TLS handshake and certificate trust, not protocol conflicts. Option B is wrong because a missing key file would prevent the switch from establishing any HTTPS connection (e.g., 'no key' or 'unable to load private key' errors), not a domain mismatch error. Option C is wrong because a corrupted certificate file would typically cause a 'bad certificate' or 'certificate verify failed' error during the TLS handshake, not a domain mismatch error which is a hostname validation failure.

127
MCQhard

A large enterprise runs a multi-site Cisco ACI fabric with APICs in a cluster. The automation team uses Python scripts with the Cobra SDK to create and manage tenant policies. Recently, after upgrading the APIC firmware from version 4.2(3) to 5.2(1), a script that previously worked now fails with an 'Unauthorized' error when calling the APIC REST API. The script uses a service account with a locally stored password. The automation engineer verifies that the account credentials are correct and that the account is not locked. The script was not modified during the upgrade. Which action should the engineer take to resolve the issue?

A.Change the authentication method in the script from password-based to certificate-based authentication.
B.Upgrade the Python requests library to version 2.25.0 or later that supports TLS 1.3.
C.Regenerate the API key for the service account and update the script with the new key.
D.Disable TLS 1.3 on the APIC by setting the 'ssl-protocols' parameter to TLSv1.2 only.
AnswerB

Upgrading the library ensures TLS 1.3 compatibility, preserving security.

Why this answer

APIC firmware 5.2(1) enforces TLS 1.3 by default, and older Python requests libraries (pre-2.25.0) do not support TLS 1.3, causing the handshake to fail with an 'Unauthorized' error despite valid credentials. Upgrading the requests library to version 2.25.0 or later adds TLS 1.3 support, allowing the script to authenticate successfully.

Exam trap

The trap here is that candidates assume the 'Unauthorized' error is due to invalid credentials or authentication method, when in fact it is caused by a TLS protocol version mismatch between the client library and the upgraded APIC.

How to eliminate wrong answers

Option A is wrong because changing from password-based to certificate-based authentication is unnecessary; the credentials are valid and the issue is a TLS version mismatch, not an authentication method problem. Option C is wrong because the service account uses a password, not an API key, and regenerating a non-existent key would not resolve the TLS 1.3 handshake failure. Option D is wrong because disabling TLS 1.3 on the APIC is a workaround that reduces security and is not the recommended fix; the proper solution is to update the client library to support the newer protocol.

128
MCQeasy

A data center automation script uses Python's requests library to call the NX-API for a Nexus 9000 switch. The script works but returns HTTP 400. Which is a likely cause?

A.The request payload is malformed
B.The switch has no management IP
C.The script uses HTTP instead of HTTPS
D.The API is not enabled
AnswerA

400 Bad Request is client error.

Why this answer

HTTP 400 indicates a bad request, which in the context of NX-API typically means the JSON or XML payload sent to the switch does not conform to the expected schema. Common issues include missing required fields (e.g., 'ins_api' version, 'type', 'chunk', 'sid', 'input', 'outputformat'), incorrect JSON syntax, or invalid values for parameters like 'version' or 'type'. The requests library successfully delivered the HTTP request, but the NX-API rejected it due to malformed content.

Exam trap

Cisco often tests the distinction between HTTP status codes (400 vs. 404 vs. connection errors) to see if candidates understand that a 400 specifically points to payload issues, not network or configuration problems.

How to eliminate wrong answers

Option B is wrong because if the switch had no management IP, the script would fail with a connection error (e.g., 'No route to host' or timeout), not an HTTP 400 response. Option C is wrong because using HTTP instead of HTTPS would result in a different error, such as a redirect (301/302) or a connection refused if HTTPS is enforced, but the NX-API can accept HTTP requests if configured; HTTP 400 is unrelated to protocol choice. Option D is wrong because if the API were not enabled, the switch would return an HTTP 404 (Not Found) or a connection reset, not a 400 Bad Request.

← PreviousPage 2 of 2 · 128 questions total

Ready to test yourself?

Try a timed practice session using only Automation questions.