Docsity

CISCO CERTIFIED DEVNET ASSOCIATE (200-901 DEVASC): QUESTIONS, Exams of Software Development

Toggle sidebar
bg1
Page 1 of 89
CISCO CERTIFIED DEVNET ASSOCIATE (200-901 DEVASC):
QUESTIONS WITH - VERIFIED ANSWERS AND RATIONALES ||
RECENTLY RELEASED
Computer Networking / Software Development / Programmability / Automation
Exam coverage :-
• Comprehensive understanding of software development and
design principles
• Proficiency in using and consuming REST APIs
• Knowledge of Cisco platforms and development tools
• Familiarity with model‑driven programmability
• Understanding of application deployment and security
• Knowledge of infrastructure automation
• Solid grasp of networking fundamentals
SECTION 1: SOFTWARE DEVELOPMENT AND DESIGN (Questions 1–
25)
1. A development team is transitioning from a traditional sequential
development model to a more iterative approach that emphasizes
continuous feedback, frequent delivery, and responding to change
over following a rigid plan. Which software development
methodology best describes this approach?
A. Waterfall
B. Lean
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59

Partial preview of the text

Download CISCO CERTIFIED DEVNET ASSOCIATE (200-901 DEVASC): QUESTIONS and more Exams Software Development in PDF only on Docsity!

CISCO CERTIFIED DEVNET ASSOCIATE (200-901 DEVASC):

QUESTIONS WITH - VERIFIED ANSWERS AND RATIONALES ||

RECENTLY RELEASED

Computer Networking / Software Development / Programmability / Automation Exam coverage :-

  • Comprehensive understanding of software development and design principles
  • Proficiency in using and consuming REST APIs
  • Knowledge of Cisco platforms and development tools
  • Familiarity with model‑driven programmability
  • Understanding of application deployment and security
  • Knowledge of infrastructure automation
  • Solid grasp of networking fundamentals SECTION 1: SOFTWARE DEVELOPMENT AND DESIGN (Questions 1–
  1. A development team is transitioning from a traditional sequential development model to a more iterative approach that emphasizes continuous feedback, frequent delivery, and responding to change over following a rigid plan. Which software development methodology best describes this approach? A. Waterfall B. Lean

C. Agile ✔

D. Spiral

Rationale : Agile is an iterative approach to software development

that values individuals and interactions, working software, customer collaboration, and responding to change. It contrasts with Waterfall's sequential, plan-driven approach.

  1. Which of the following data formats uses key‑value pairs enclosed in curly braces and is commonly used in REST API payloads? A. XML B. YAML

C. JSON ✔

D. HTML

Rationale : JSON (JavaScript Object Notation) uses key‑value pairs

enclosed in curly braces {} and is the most common data format for REST API payloads. XML uses angle brackets, and YAML uses indentation.

and finally refactor the code. This approach ensures that code is testable from the start.

  1. A development team is following the Waterfall methodology. Which of the following is a characteristic of this approach? A. Continuous delivery of small increments

B. Sequential phases with defined deliverables ✔

C. Adaptive planning and evolutionary development D. Frequent customer collaboration

Rationale : Waterfall is a sequential software development

methodology where each phase (requirements, design, implementation, testing, deployment, maintenance) must be completed before the next begins.

  1. Which of the following Git commands is used to create a local copy of a remote repository? A. git init B. git pull C. git remote

D. git clone ✔

Rationale : git clone creates a local copy of a remote repository,

including all of its files, branches, and history. git init creates a new local repository, and git pull fetches changes from a remote repository.

  1. A developer has made changes to multiple files and wants to save them to the local repository with a descriptive message. Which Git command should be used? A. git push - m "message" B. git add.

C. git commit - m "message" ✔

D. git merge - m "message"

Rationale : git commit - m "message" saves staged changes to the

local repository with a descriptive message. git add stages changes, and git push uploads commits to a remote repository.

  1. Two developers have modified the same line of code in different branches. When they attempt to merge, Git reports a conflict. Which Git operation is most appropriate to resolve this conflict?

Rationale : MVC is a design pattern that separates an application

into three main components: the Model (data and business logic), the View (user interface and presentation), and the Controller (handles user input and updates the Model and View).

  1. A developer is organizing code into reusable units that can be imported into other parts of the application. Which Python construct is most appropriate for this purpose?

A. Modules ✔

B. Classes C. Functions D. Decorators

Rationale : Modules are files containing Python code that can be

imported and reused in other Python scripts. They are a fundamental way to organize code into reusable, maintainable units.

  1. Which of the following data formats uses indentation to represent hierarchical data and is often used for configuration files? A. JSON

B. XML

C. YAML ✔

D. CSV

Rationale : YAML (YAML Ain't Markup Language) uses indentation

to represent hierarchical data structures. It is commonly used for configuration files due to its readability.

  1. A developer is comparing the differences between two versions of a file before committing changes. Which Git command should be used? A. git status

B. git diff ✔

C. git log D. git show

Rationale : git diff shows the differences between various states in

Git, such as changes in the working directory compared to the staging area, or differences between two commits.

Rationale : git pull is a convenience command that fetches

changes from a remote repository and merges them into the current local branch. It is equivalent to git fetch followed by git merge.

  1. A developer wants to organize code into a class that represents a blueprint for creating objects with specific attributes and methods. Which concept is being used?

A. Object‑oriented programming (OOP) with classes ✔

B. Functional programming C. Procedural programming D. Aspect‑oriented programming

Rationale : Object‑oriented programming uses classes as

blueprints for creating objects. Classes encapsulate data (attributes) and behavior (methods) into a single unit.

  1. The Observer design pattern is best described as: A. A pattern that ensures a class has only one instance

B. A pattern where an object (subject) maintains a list of dependents

(observers) and notifies them of state changes ✔

C. A pattern that separates the construction of a complex object from its representation D. A pattern that provides a simplified interface to a complex subsystem

Rationale : The Observer pattern defines a one‑to‑many

dependency where the subject notifies all registered observers automatically when its state changes. This promotes loose coupling.

  1. Which of the following is a benefit of organizing code into functions? A. It makes code harder to read B. It promotes code reuse, improves readability, and simplifies

testing ✔

C. It increases code duplication D. It eliminates the need for comments

C. Using only classes and objects without functions D. Writing code without any dependencies

Rationale : Modular design involves dividing a software system into

separate, independent modules, each responsible for a specific functionality. This improves maintainability, reusability, and testability.

  1. A developer is writing a Python script and needs to include a block of code that should only execute if a certain condition is true. Which control structure should be used?

A. if statement ✔

B. for loop C. while loop D. try/except block

Rationale : The if statement executes a block of code only if a

specified condition evaluates to True. It is the fundamental conditional control structure in Python.

  1. According to the DevNet Associate exam blueprint, what is the approximate weight of the "Software Development and Design" domain? A. 10%

B. 15% ✔

C. 20%

D. 25%

Rationale : The Software Development and Design domain

accounts for 15% of the 200-901 DEVASC exam.

  1. The Lean software development methodology emphasizes which of the following principles? A. Comprehensive documentation and rigid planning

B. Eliminating waste, amplifying learning, and delivering fast ✔

C. Sequential phases with defined deliverables D. Extensive upfront design

Rationale : Lean software development, based on lean

manufacturing principles, emphasizes eliminating waste, amplifying

C. git checkout ✔

D. git branch - d

Rationale : git checkout places the working

directory in a detached HEAD state at the specified commit. The developer can inspect and test the code. To return, they can git checkout back to a branch.

  1. According to the DevNet Associate exam blueprint (v1.1), candidates should be familiar with which new topics? A. RESTCONF/NETCONF, YANG models, code review, unified diffs,

and API call diagrams ✔

B. Only legacy networking protocols C. Only Cisco proprietary technologies D. Only Python programming basics

Rationale : The v1.1 update includes new topics such as

RESTCONF/NETCONF, YANG models, code review, unified diffs, and API call diagrams. SECTION 2: UNDERSTANDING AND USING APIS (Questions 26–50)

  1. A developer is making a REST API call to create a new resource. Which HTTP method should be used? A. GET

B. POST ✔

C. PUT

D. DELETE

Rationale : The POST method is used to create a new resource in

REST APIs. PUT is used to update or replace an entire resource, PATCH for partial updates, and DELETE for removal.

  1. A REST API request returns a 200 OK status code. What does this indicate? A. The request was malformed B. The request succeeded and the response contains the requested

data ✔

C. The resource was created successfully D. The client is not authorized

C. The server encountered an internal error D. The request format is incorrect

Rationale : HTTP 401 Unauthorized indicates that the request lacks

valid authentication credentials. 403 Forbidden indicates that the client is authenticated but lacks permission.

  1. Which of the following is a common authentication mechanism used with REST APIs? A. OAuth 1.0a

B. API keys ✔

C. Kerberos D. NTLM

Rationale : API keys are a common authentication mechanism for

REST APIs, where a unique key is passed in the request (often as a header or query parameter). Basic authentication, custom tokens, and OAuth 2.0 are also common.

  1. A developer needs to make an HTTP request from a Python script. Which library is most commonly used?

A. urllib B. http.client

C. requests ✔

D. socket

Rationale : The requests library is the most popular Python library

for making HTTP requests. It provides a simple, intuitive API for sending HTTP/1.1 requests and handling responses.

  1. Which of the following best describes a webhook? A. A synchronous request‑response pattern B. An event‑driven pattern where one application sends real‑time

data to another application via HTTP callbacks ✔

C. A method for batch processing data D. A protocol for streaming video

Rationale : A webhook is a user‑defined HTTP callback that is

triggered by an event. When the event occurs, the source site makes an HTTP request to the URL configured for the webhook, enabling real‑time data transfer.