DevNet Associate (DEVASC) v1.0 practice questions
200 free questions with answers and explanations.
- 101.A network security engineer is designing a system to integrate a new application with a Cisco API. The application needs to securely obtain an access token without exposing client credentials in the user agent, and it will be primarily used for server-to-server communication. Which OAuth 2.0 grant type is most appropriate for this scenario?Understanding and Using APIs
- 102.A developer is integrating a new application with an existing Cisco network device API. The API documentation specifies that all requests must include an 'Authorization' header with a 'Bearer' token. Which authentication method is being described?Understanding and Using APIs
- 103.A network automation engineer is building a CI/CD pipeline. They need to ensure that changes to an API client application are compatible with the API's latest specification before deploying. This involves validating that the client sends requests and handles responses according to the API's contract. Which type of testing is best suited for this purpose?Understanding and Using APIs
- 104.A network operations team is integrating a new monitoring tool that needs to receive real-time alerts from a Cisco device's API whenever a specific event (e.g., interface status change) occurs. The monitoring tool does not continuously poll the device. Which API mechanism is best suited for the device's API to proactively notify the monitoring tool?Understanding and Using APIs
- 105.A developer is integrating an application with a Cisco API that uses Basic Authentication. The application needs to send a username and password with each API request. To ensure these credentials are transmitted securely, which underlying HTTP mechanism is crucial for protecting Basic Authentication credentials?Understanding and Using APIs
- 106.A network administrator is configuring a real-time monitoring system. This system needs to be notified immediately whenever a critical event (e.g., interface status change, high CPU utilization) occurs on a Cisco router. The existing API on the router supports a mechanism where the router can proactively send HTTP POST requests to a pre-configured URL whenever such an event happens. What is this mechanism called?Understanding and Using APIs
- 107.A network operations team is developing an automation script to provision VLANs on multiple Cisco switches using a REST API. The script needs to create a new VLAN by sending a POST request to a `/vlan` endpoint with a JSON payload containing the VLAN ID and name. Which `Content-Type` header value should be included in the HTTP request to correctly inform the API about the payload format?Understanding and Using APIs
- 108.A developer is writing a Python application that needs to interact with a secure REST API. The API uses OAuth 2.0 for authorization and requires an access token in the 'Authorization: Bearer' header for every request. The application successfully obtains an access token, but the API still returns a 401 Unauthorized error. Which of the following is the most likely reason for this error, assuming the token itself is valid and not expired?Application Deployment and Security
- 109.A web application is designed to handle user authentication and authorization. After a user successfully logs in, the application needs to issue a token that proves the user's identity and their allowed permissions for subsequent requests without re-authenticating. This token should be digitally signed to prevent tampering. Which standard protocol or token type is most appropriate for this scenario?Application Deployment and Security
- 110.A development team is building a containerized application using Docker. They need to create a Dockerfile that ensures the application has only the necessary permissions and resources, minimizing its attack surface. Which Dockerfile instruction or best practice directly contributes to this security goal?Application Deployment and Security
- 111.A DevOps team is setting up a Kubernetes cluster and needs to implement role-based access control (RBAC) for their developers. They want to define roles that grant specific permissions within a single namespace, such as deploying pods or viewing logs, but not cluster-wide administrative privileges. Which Kubernetes RBAC object should they use to define these namespace-scoped permissions?Application Deployment and Security
- 112.A developer is designing a RESTful API that will be consumed by both internal and external client applications. To protect against common web vulnerabilities, they need to implement measures to prevent attackers from injecting malicious scripts into the application's user interface via input fields. Which security best practice directly addresses this concern?Application Deployment and Security
- 113.A development team is deploying a new microservice that requires a consistent runtime environment across development, testing, and production. They also need to ensure isolation between the application and the host operating system. Which technology is best suited for this requirement?Application Deployment and Security
- 114.A DevOps team is implementing a new CI/CD pipeline for a critical microservice. They need to ensure that every code change undergoes automated testing and static code analysis before being deployed to a staging environment. Which CI/CD practice directly addresses this requirement?Application Deployment and Security
- 115.A security team is auditing an application's data handling practices. The application processes sensitive user data, and regulations require that this data be protected against unauthorized access, even if the underlying storage infrastructure is compromised. Which security best practice specifically addresses the protection of data when it is stored on disk or in a database?Application Deployment and Security
- 116.A company is developing a highly sensitive financial application that will store customer account details. Due to strict regulatory compliance requirements, all data must be encrypted both when stored and when transmitted over the network. Which two cryptographic methods, when combined, would best meet these requirements?Application Deployment and Security
- 117.A developer is building a RESTful API that will be consumed by various client applications. To ensure that only authorized clients can access specific resources, the API needs to implement a robust authorization mechanism. After a client has been authenticated, what is the most appropriate method for the API to determine if the client has the necessary permissions to perform a requested action on a given resource?Application Deployment and Security
- 118.A development team is deploying a new microservice that needs to communicate securely with an existing database. The database credentials, including the username and password, must be protected both during deployment and at runtime. Which of the following is the most secure approach for storing and injecting these credentials into the microservice in a Kubernetes environment?Application Deployment and Security
- 119.A client application needs to interact with a secure backend API that is hosted within a Kubernetes cluster. The API requires mutual TLS (mTLS) for all incoming connections to ensure both the client and server authenticate each other. Which of the following is the correct sequence of TLS handshake steps that establishes this mutual authentication?Application Deployment and Security
- 120.A company is developing a highly sensitive financial application. They need to ensure that data at rest (e.g., in databases, file storage) is protected from unauthorized access, even if the underlying storage is compromised. Which security best practice is specifically designed to address this requirement?Application Deployment and Security
- 121.A development team is designing a new microservice architecture where services need to communicate with each other over HTTP/HTTPS. They want to implement fine-grained access control and enforce policy-based routing between services without modifying the application code. Which architectural pattern or tool is best suited for this requirement?Application Deployment and Security
- 122.A team is developing a microservice that runs in a Docker container and needs to access a database. During development, they frequently rebuild the container image. To optimize rebuild times and reduce the final image size, while also improving security by limiting the attack surface, which Dockerfile feature should be utilized?Application Deployment and Security
- 123.A developer is designing an API that will be accessed by both internal and external clients. To protect against common web vulnerabilities, they decide to implement input validation for all incoming requests. Which security best practice does this directly address?Application Deployment and Security
- 124.A DevOps team is implementing a CI/CD pipeline for a new microservice. They want to ensure that code changes are automatically built, tested, and deployed to a staging environment whenever a developer pushes code to the main branch. Which CI/CD concept best describes this automated process that ensures the software is always in a releasable state?Application Deployment and Security
- 125.A team is deploying a new service to a Kubernetes cluster. This service needs to communicate with another existing service within the same cluster. They want to ensure that all communication between these services is encrypted by default without requiring application-level changes or manual certificate management for each service. Which Kubernetes-native solution or approach best facilitates this requirement?Application Deployment and Security
- 126.A developer is implementing a CI/CD pipeline for a new web application. After successful code commit and unit tests, the next stage involves automatically deploying the application to a staging environment for integration testing. Which CI/CD concept does this scenario best represent?Application Deployment and Security
- 127.A development team is implementing a new microservice that requires access to several external APIs. Each API uses a different authentication method and requires a unique set of credentials (API keys, client secrets). To avoid hardcoding these credentials and manage them effectively across different environments (dev, staging, prod), they decide to use a centralized secrets management solution. Which of the following is the primary benefit of using such a solution over environment variables for sensitive data?Application Deployment and Security
- 128.An organization is migrating its legacy monolithic application to a microservices architecture using Kubernetes. The application needs to securely store sensitive database credentials and API keys. Which Kubernetes object is specifically designed for managing and providing these secrets to pods?Application Deployment and Security
- 129.A developer wants to automate the process of building, testing, and deploying a new web application whenever code changes are pushed to the main branch of a Git repository. The goal is to frequently integrate changes and ensure they are always ready for deployment. Which CI/CD concept best describes this end-to-end automation goal?Application Deployment and Security
- 130.A security team is reviewing an application's authentication mechanism. The application uses JWTs (JSON Web Tokens) for session management. Which component of a JWT is used to verify the token's integrity and ensure it hasn't been tampered with?Application Deployment and Security
- 131.A large enterprise is migrating its legacy applications to a cloud-native platform using Kubernetes. They need to ensure that all network traffic between namespaces and to external services is strictly controlled based on defined policies, such as allowing only specific ports or protocols between certain application tiers. Which Kubernetes resource should be used to implement these network segmentation and access control policies?Application Deployment and Security
- 132.A development team is deploying a new web application to a Kubernetes cluster. They need to ensure that all sensitive configuration data, such as database passwords and API keys, are securely managed and injected into the application containers without exposing them in the Git repository or Docker images. Which Kubernetes resource should they use for this purpose?Application Deployment and Security
- 133.A developer is implementing a new API endpoint that will receive user-submitted data. To prevent common web vulnerabilities, such as Cross-Site Scripting (XSS) and SQL Injection, which security best practice should be applied to all incoming data before it is processed or stored?Application Deployment and Security
- 134.A development team is using Git for version control and a CI/CD pipeline. They have a repository containing application code, configuration files, and sensitive API keys. To prevent accidental exposure of these API keys in the repository or during the build process, which security measure should be implemented?Application Deployment and Security
- 135.A development team is implementing an Infrastructure as Code (IaC) solution for their cloud deployments. They need a tool that can define infrastructure using a declarative language, manage state, and support a wide range of cloud providers. Which tool best fits these requirements?Infrastructure and Automation
- 136.A network operator wants to retrieve specific operational data (e.g., interface statistics) from a Cisco IOS XE device using a programmatic interface. The data needs to be structured and validated against a schema. Which technology, often used with NETCONF or RESTCONF, defines the structure and semantics of configuration and operational data?Infrastructure and Automation
- 137.A network architect is designing a solution for zero-touch provisioning (ZTP) of new branch office routers. The solution needs to dynamically fetch initial configuration files and software images from a central server based on the device's serial number or MAC address. Which protocol is commonly used by network devices to discover the provisioning server and download necessary files during ZTP?Infrastructure and Automation
- 138.A network automation engineer is developing a Python application that interacts with various network devices from different vendors. The application needs to retrieve and configure network settings using a standardized, structured data model. To ensure interoperability and consistency across diverse devices, which data modeling language is best suited for defining the structure and constraints of the network configuration and operational data?Infrastructure and Automation
- 139.A network engineer is tasked with configuring a new set of VLANs across 50 access switches. The engineer wants to ensure consistency and speed by using a configuration management tool that relies on a master-minion architecture for centralized control and state enforcement. Which automation tool is best suited for this requirement?Infrastructure and Automation
- 140.A network automation engineer is building a system to discover new devices, automatically assign them to appropriate configuration groups, and then apply initial baseline configurations based on their role. This entire process needs to be orchestrated and managed from a central platform. Which type of automation solution is best suited to coordinate these multiple, sequential tasks?Infrastructure and Automation
- 141.A developer is integrating a custom application with network devices using RESTCONF. The application needs to retrieve a list of all active interfaces from a device. Which HTTP method is typically used in RESTCONF for retrieving resources?Infrastructure and Automation
- 142.A network engineer wants to automate the process of collecting real-time interface statistics (e.g., bandwidth utilization, packet drops) from a large number of routers and switches. The collected data needs to be continuously streamed to an analytics platform for immediate anomaly detection. Which network telemetry approach is best suited for this requirement?Infrastructure and Automation
- 143.A network operations team needs to collect real-time, high-frequency telemetry data from thousands of network devices for performance monitoring and anomaly detection. The data should be streamed continuously rather than polled periodically. Which protocol is best suited for this requirement, offering efficient, persistent connections and often leveraging Protocol Buffers for data serialization?Infrastructure and Automation
- 144.A network administrator is designing an automated workflow to deploy configuration changes across multiple Cisco IOS XE devices. The solution requires push-based configuration and the ability to define the desired state of devices. Which automation tool, known for its agentless architecture and use of YAML playbooks, is best suited for this task?Infrastructure and Automation
- 145.A network engineer is writing a Python script to automate the deployment of a new BGP configuration on a Cisco IOS XR router. The configuration involves multiple BGP neighbors, address-family configurations, and route-maps. The engineer wants to ensure that the entire configuration is applied as a single transaction, and if any part fails, the entire transaction is rolled back. Which NETCONF capability is essential for this transactional behavior?Infrastructure and Automation
- 146.A network engineer is using the 'pyang' tool to validate a custom YANG module for a new network service. After running the validation, the engineer wants to generate a tree-like representation of the module's data model to easily visualize its hierarchical structure and identify potential issues. Which 'pyang' format option should be used?Infrastructure and Automation
- 147.A network automation engineer is designing a system to automate the provisioning of new virtual machines (VMs) and their network configurations within a private cloud environment. The solution needs to define the desired state of both the VMs and the network infrastructure in a declarative manner, allowing for version control and automated deployment. Which of the following approaches is most suitable for this requirement?Infrastructure and Automation
- 148.A network automation engineer is designing a solution to deploy standardized network configurations to hundreds of devices in a highly dynamic environment. The solution must support idempotent operations, allow for templating of configuration files, and offer a simple, agentless approach for execution. Which tool is most appropriate for this scenario?Infrastructure and Automation
- 149.A network architect is designing an Infrastructure as Code (IaC) solution for a hybrid cloud environment. The solution needs to provision and manage resources consistently across both on-premises virtualized infrastructure (VMware) and public cloud providers (AWS, Azure). Which IaC tool is best known for its multi-cloud and on-premises orchestration capabilities using a declarative approach?Infrastructure and Automation
- 150.A network automation engineer is designing a system to collect real-time performance metrics from thousands of network devices. The solution requires a high-performance, low-latency, and bi-directional streaming mechanism. Which protocol is best suited for this requirement?Infrastructure and Automation