Home / Cisco DevNet Professional DEVCOR 350-901 / Mock exam
Cisco DevNet Professional DEVCOR 350-901 Exam-style mock test

Cisco DevNet Professional DEVCOR 350-901 Practice Exams|Practice test

Full explanations Exam format Pass line 65%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Software Development and Design: APIs, Patterns, Version Control
A developer at a B2B SaaS company is adding a new billing-calculation module and is asked to follow test-driven development. Which sequence of steps best describes how the developer should proceed?
✓Write a failing test for the behavior, write just enough code to pass it, then refactor the code while keeping the test green
Correct. TDD follows the red-green-refactor cycle: write a failing test first, add minimal code to make it pass, then refactor safely.
・Implement the full module, deploy it to staging, and write integration tests only after QA reports the first production defect in the release
Incorrect. Writing tests only after a production defect appears is reactive debugging, not test-driven development.
・Write all unit tests after the module is feature-complete and merged so the test suite documents the finished billing behavior
Incorrect. Writing tests after the module is complete is test-after development, which is the opposite of driving design with tests.
・Design the data model, build the UI, and skip unit tests because integration tests already cover the module
Incorrect. Skipping unit tests in favor of integration tests abandons the fast feedback loop that TDD provides.
Explanation
Test-driven development is defined by the red-green-refactor loop where a failing test is written before the implementation code.
Example2 · Using APIs: REST, Webhooks, Pagination, and Rate Limiting
At the B2B SaaS company LedgerFlow, a developer is building an integration that reads a specific invoice record from the billing REST API without altering any server state. The resource is identified by /v2/invoices/{id}. Which HTTP method should the client use for this operation?
✓GET, because it is the safe, idempotent method defined for retrieving a representation of an existing resource
Correct. GET is the safe and idempotent method used to retrieve a resource representation without changing server state.
・POST
Incorrect. POST creates subordinate resources or triggers processing and is neither safe nor idempotent for reads.
・PUT, because it idempotently replaces the full representation of the target invoice resource on the server
Incorrect. PUT replaces the entire resource representation, which mutates server state rather than reading it.
・PATCH, because it sends a partial modification to the existing invoice resource identified in the URI
Incorrect. PATCH applies a partial update to the resource, so it modifies state instead of retrieving it.
Explanation
Reading a resource without side effects is the defining use case for the GET method, which is both safe and idempotent.
Example3 · Cisco Platforms: DNA Center, Meraki, Webex, and Nexus APIs
A developer at a B2B SaaS company is building a script that pulls the full device inventory from Cisco DNA Center to feed an internal asset dashboard. Before any inventory call succeeds, what must the script obtain and include on each subsequent request?
・A static API key that is generated once in the DNA Center GUI and never expires for the service account
Incorrect. DNA Center does not use a permanent static API key for inventory access; a time-limited token is required instead.
✓An X-Auth-Token acquired by POSTing credentials to the authentication endpoint, sent as a header on later calls
Correct. The client POSTs basic-auth credentials to /dna/system/api/v1/auth/token to receive an X-Auth-Token, which is then sent as a header on each inventory request.
・A session cookie returned by the login web page and replayed on each GET to the inventory endpoint
Incorrect. The platform's REST API is driven by the X-Auth-Token header, not by replaying a browser login cookie against the inventory endpoint.
・A signed OAuth 2.0 bearer token issued by the Webex identity broker and shared across both platforms
Incorrect. Webex and DNA Center maintain separate auth models, so a Webex OAuth token cannot authenticate DNA Center inventory calls.
Explanation
Cisco DNA Center uses a token-based flow: POST credentials to the auth endpoint, receive an X-Auth-Token, and pass it as a header on every subsequent API request such as the device inventory GET.
Example4 · Application Deployment, CI/CD, and Security (OAuth, Secrets)
A healthcare services firm builds a patient portal that must call a third-party scheduling API on behalf of individual patients, with each patient granting consent in their browser. Which OAuth2 grant type fits this interactive, user-consent scenario?
✓Authorization code grant, where the patient is redirected to the authorization server to approve access and the app exchanges the returned code for a token
Correct. The authorization code grant redirects the user to approve access and exchanges the code for a token, which is the standard flow for interactive user consent.
・Client credentials grant
Incorrect. Client credentials is for machine-to-machine access with no user context, so it cannot capture per-patient consent.
・Resource owner password credentials grant, where the portal collects the patient's username and password and submits them directly to the token endpoint for exchange
Incorrect. The password grant requires the app to handle the user's raw credentials and is deprecated for third-party delegated access.
・Implicit grant with a static shared API key embedded in the single-page application bundle and refreshed nightly by a batch job
Incorrect. The implicit grant is deprecated and a static embedded key is not a user-consent flow at all.
Explanation
Interactive delegated access where a user consents in the browser is the textbook use case for the authorization code grant.
Example5 · Infrastructure Automation: NETCONF, RESTCONF, and YANG
A healthcare services firm's automation team must push configuration to IOS XE devices and have each change validated against the full running datastore before it is committed, with the ability to roll back if any device in the batch rejects the change. Which programmability interface and feature best satisfies this requirement?
・RESTCONF, because each HTTP PATCH is independently acknowledged by the device
Incorrect. RESTCONF acknowledges each request but does not provide a stateful candidate-commit workflow with transactional rollback across the operation.
✓NETCONF with the candidate datastore and a confirmed commit workflow
Correct. NETCONF supports a candidate datastore where changes are staged and validated, then applied with a confirmed commit that can be automatically rolled back if not confirmed.
・gRPC telemetry streaming subscribed to the configuration change events
Incorrect. gRPC telemetry streams operational data outward and is not a mechanism for applying or rolling back configuration.
・SNMP SET operations issued sequentially with success polling between each device
Incorrect. SNMP SET has no transactional commit or rollback model and is not model-driven programmability.
Explanation
NETCONF's candidate datastore plus confirmed commit provides the staged validation and automatic rollback behavior the team needs.
Example6 · Software Development and Design: APIs, Patterns, Version Control
A healthcare services firm is designing a REST API that exposes patient appointment records. The team wants each client request to carry all information needed to process it, so that any of several stateless application servers behind a load balancer can handle any request without session affinity. Which REST constraint most directly drives this design decision?
・Layered system, because intermediaries such as the load balancer must not alter the message payload in transit
Incorrect. The layered system constraint allows intermediaries but is not what removes the need for session affinity across the server pool.
✓Statelessness, so that no client context is stored on the server between requests
Correct. Statelessness requires each request to be self-contained, so any server can process it without stored session context, which is exactly what enables load balancing without affinity.
・Cacheability, because responses must be explicitly labeled as cacheable or non-cacheable to improve efficiency
Incorrect. Cacheability concerns labeling responses for reuse and does not address which server can handle a given request.
・Uniform interface, which requires that resources be identified and manipulated through consistent, standardized representations and methods
Incorrect. The uniform interface standardizes how resources are addressed and acted upon, but it does not eliminate server-side session state.
Explanation
Statelessness means the server keeps no per-client session, so self-contained requests can be routed to any stateless server, enabling horizontal scaling behind a load balancer.
Example7 · Software Development and Design: APIs, Patterns, Version Control
The retail brand UrbanThread is refactoring a monolithic inventory service whose UI, business logic, and database access are tightly intertwined in single modules. A developer argues for splitting it into loosely coupled modules with well-defined interfaces. What is the primary maintainability benefit the team should expect from this change?
✓Individual modules can be modified, tested, and deployed with minimal impact on the other modules in the system
Correct. Loose coupling and well-defined interfaces let teams change one module without rippling effects through the rest, improving testability and independent deployment.
・The compiled binary will shrink significantly because duplicated code is removed
Incorrect. Loose coupling is about dependency boundaries and interfaces, not guaranteed binary-size reduction; separating modules can even add overhead.
・Network latency between service components will drop automatically
Incorrect. Decoupling addresses code dependencies, not network transport timing, which depends on infrastructure.
・Database queries will run faster
Incorrect. Query speed is governed by indexes, schema, and the engine, not by how application modules are coupled.
Explanation
A modular, loosely coupled design isolates change: each module exposes a stable interface so it can be maintained and tested independently.
Example8 · Software Development and Design: APIs, Patterns, Version Control
UrbanThread's checkout service must guarantee that exactly one configuration manager object exists across the entire process, shared by every thread that reads feature flags. Which design pattern should the developer apply?
・Factory pattern, because it centralizes construction of related configuration objects on demand
Incorrect. The Factory pattern creates instances but does not restrict the system to a single shared instance.
・Observer pattern, which lets subscribers react to configuration changes over time
Incorrect. Observer handles event notification to many subscribers, not single-instance enforcement.
✓Singleton pattern
Correct. The Singleton pattern ensures a class has only one instance and provides a global access point to it, matching the one-shared-config requirement.
・Adapter pattern, so an incompatible configuration interface can be wrapped for existing clients
Incorrect. Adapter reconciles incompatible interfaces; it says nothing about instance count.
Explanation
A single shared, globally accessible instance is the textbook use case for the Singleton pattern.
Example9 · Software Development and Design: APIs, Patterns, Version Control
UrbanThread's order dashboard must automatically refresh several independent widgets (stock level, shipping ETA, and fraud score) whenever the underlying order object changes state. The team wants each widget to subscribe and be notified without the order object knowing widget internals. Which pattern fits?
✓Observer pattern
Correct. The Observer pattern defines a one-to-many dependency so dependents are notified automatically when the subject's state changes, with loose coupling between them.
・Singleton pattern, so only one order object exists
Incorrect. Singleton limits instance count and does not provide change notification.
・Strategy pattern, to swap interchangeable refresh algorithms at runtime for each widget
Incorrect. Strategy encapsulates interchangeable algorithms, not subscription-based state notification.
・Decorator pattern, which dynamically layers additional responsibilities onto the order object
Incorrect. Decorator adds behavior to an object but does not broadcast state changes to subscribers.
Explanation
Automatic notification of many dependents on a subject's state change is the defining use of the Observer pattern.
Example10 · Software Development and Design: APIs, Patterns, Version Control
A developer at a financial services firm builds a REST API that lets a client fully overwrite an existing payment-template resource. The client always sends the complete resource representation and expects repeating the same request to leave the resource in the same state. Which HTTP method should the endpoint handle?
・POST, because it creates a brand new subordinate resource each time the client submits the complete representation
Incorrect. POST is not idempotent and typically creates a new resource, so repeating it would not leave the template in the same state.
・PATCH, because it merges only the changed attributes into the existing resource without resending everything
Incorrect. PATCH applies a partial update, but the client is sending the complete representation and wants a full overwrite.
✓PUT
Correct. PUT replaces the entire resource with the supplied representation and is idempotent, so repeating it yields the same state.
・DELETE, because it removes the targeted resource identified by the request URI before any update
Incorrect. DELETE removes the resource rather than overwriting it with a new representation.
Explanation
A full, idempotent replacement of an existing resource using the complete representation is the defining use case for PUT.
Example11 · Software Development and Design: APIs, Patterns, Version Control
A trading-platform API returns a 429 status code to a client that is polling an account-balance endpoint in a tight loop. What does this status code tell the developer?
・The server encountered an unexpected internal error while processing the balance lookup and could not complete it
Incorrect. An unexpected server-side failure is reported with 500, not 429.
✓The client has exceeded the allowed request rate and must slow down
Correct. HTTP 429 Too Many Requests indicates the client has sent too many requests in a given period and is being rate limited.
・The requested account-balance resource no longer exists at the given URI
Incorrect. A missing resource at the URI is reported with 404, not 429.
・The client's bearer token was rejected because it is missing or invalid
Incorrect. A missing or invalid token produces 401 Unauthorized, not 429.
Explanation
Status 429 Too Many Requests signals rate limiting, telling the client to back off and retry later.
Example12 · Software Development and Design: APIs, Patterns, Version Control
A manufacturing distributor's integration polls a supplier inventory REST API that returns HTTP 429 with a Retry-After header when the client sends too many requests. The sync job must finish all pages reliably. What should the client do when it receives the 429 response?
・Reduce the page size to one record per request and immediately resend the request without any delay
Incorrect. Shrinking the page size does not address the rate limit, and resending with no delay keeps triggering 429 responses.
✓Wait the number of seconds given in the Retry-After header, then retry the same request
Correct. The Retry-After header tells the client how long to pause; honoring it before retrying is the intended backoff behavior for 429.
・Treat 429 as a fatal error, abort the sync job, and alert an operator to restart it manually later
Incorrect. A 429 is a throttling signal, not a fatal error, so aborting the whole job wastes progress and requires needless manual recovery.
・Open additional parallel connections to distribute the remaining page requests across more sockets
Incorrect. Adding parallel connections increases the request rate and makes the rate limiting worse rather than resolving it.
Explanation
HTTP 429 Too Many Requests indicates rate limiting; the Retry-After header specifies the wait time, so the client should pause that long and retry.
Example13 · Software Development and Design: APIs, Patterns, Version Control
A developer at the distributor is designing a REST API that lets warehouse apps retrieve a specific purchase order without changing any server state. Which HTTP method correctly expresses this read-only, repeatable operation?
・POST, because it is the standard method used to request and return structured JSON resource data to clients
Incorrect. POST is used to create resources or trigger non-idempotent actions and is not the correct method for a safe read.
✓GET, because it retrieves a resource without side effects and is safe and idempotent
Correct. GET retrieves a resource, is defined as a safe and idempotent method, and does not modify server state.
・DELETE, because it is idempotent and therefore appropriate for any operation that must be safely repeatable
Incorrect. DELETE removes a resource; although idempotent, it is not safe and does not retrieve data.
・PATCH, because it supports returning a partial representation of the requested resource to the caller
Incorrect. PATCH applies a partial update and changes server state, so it is not a read-only operation.
Explanation
GET is the safe, idempotent method for retrieving resources without side effects, matching a read-only purchase order lookup.
Example14 · Software Development and Design: APIs, Patterns, Version Control
A developer at a telecom operator is writing a client to poll a Cisco DNA Center inventory endpoint. The API requires a short-lived token obtained from an authentication endpoint before any inventory call succeeds. Which approach correctly supplies credentials on the inventory request?
・Place the username and password in the query string of the inventory request so the platform re-authenticates each call
Incorrect. Putting raw credentials in the query string exposes them in logs and proxies and is not how the token-based DNA Center flow works.
✓Send the token from the authentication endpoint in an X-Auth-Token header on the inventory request
Correct. DNA Center returns a token from the auth endpoint that must be sent in the X-Auth-Token header on subsequent API calls.
・Encode the username and password as Basic auth on every inventory request and skip the token endpoint
Incorrect. The platform requires the token obtained from the dedicated authentication endpoint, not per-call Basic auth on inventory.
・Store the password in a cookie and rely on the browser session to attach it automatically to the inventory request
Incorrect. A programmatic client does not rely on browser cookie sessions, and the password should never be stored in a cookie.
Explanation
Cisco DNA Center uses a token-based model: authenticate once to obtain a token, then pass it in the X-Auth-Token header on each API request.
Example15 · Software Development and Design: APIs, Patterns, Version Control
During a design review for the telecom operator's provisioning API, an architect insists that no client session context be stored on the server between requests, so that any node behind the load balancer can serve any request. Which REST constraint does this requirement describe?
・Layered system, because intermediaries are placed between the client and the origin server
Incorrect. Layered system concerns intermediaries and tiers, not whether session state is retained between requests.
✓Statelessness, where each request carries all information needed to be understood
Correct. Statelessness requires each request to be self-contained so no client session is stored server-side, enabling any node to serve it.
・Cacheability, which labels responses as cacheable so clients may reuse prior responses later
Incorrect. Cacheability addresses reuse of responses, not the absence of server-side session state.
・Uniform interface, standardizing how resources are identified and manipulated through representations
Incorrect. Uniform interface standardizes resource interaction and does not describe the absence of stored session context.
Explanation
Statelessness means the server keeps no client context between requests, which is exactly what allows load-balanced nodes to serve any request independently.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)