Question
click below
click below
Question
Normal Size Small Size show me how
3-4 DevNet
Question | Answer |
---|---|
A developer issues the Linux command pip3 freeze in an activated Python 3 virtual environment. What is the function that is provided by the command? | to output a list of installed Python packages |
What are two characteristics of the Git version control system? (Choose two.) | It is a distributed VCS. It is open source |
a simple statement of what a user needs and why | story |
uses standup meetings to review progress | Scrum team |
a time-boxed period where working software is developed | sprint |
a prioritized list of all the features for the software being developed | backing |
What characteristic describes a formal code review? | The entire code base is reviewed in a series of meetings. |
Which fundamental Lean principle forms the basis from which all other Lean principles flow? | eliminate waste |
When a unified diff file is being reviewed, which symbol is used to indicate that a line has been added? | + |
What special characters are used to enclose JSON objects? | curly braces {} |
What are two features of the formal code review? (Choose two.) | It promotes discussion among all of the reviewers. It involves a review of the entire code base in a series of meetings. |
Which statement describes the Waterfall methodology of software development? | Each step in the process must be completed before the next step starts |
What is clean code? | code that is easy to read and understand |
Updates the local copy of the Git repository with the content of the remote Git repository | git pull |
Creates an empty Git repository or makes an existing folder a Git repository | git init |
Updates the remote Git repository with the content changes from the local Git repository | git push |
What is the role of the view component in the Model-View-Controller (MVC) flow? | It accepts selected data and displays the visual representation to the user. |
A developer is constructing some functions in Python. When is a function referred to as a module in Python? | when the function is packaged in a single Python file |
A student is learning Python using the interactive interpreter mode. The student issues these commands: >>> class Uri(): ... def_init__(self, host, prot): ... self.host = host ... self.prot = prot ... self.url = self.prot + "://" + self.host >>> | >>> url2 = Url(‘www.cisco.com’, ‘http’) |
A developer issues a Linux command python3 -m venv devenv . What is the developer trying to achieve? | to create a Python 3 virtual environment named devenv |
When a unified .diff file is being reviewed, which symbol is used to indicate that a line has been added? | + |
Which software development methodology prescribes that developers follow a strict process order by completing one step in the SDLC process before proceeding to the next step. | Waterfall |
Which SDLC development methodology employs many quick iterations known as sprints? | Agile |
Which two programming components are defined as blocks of code that perform tasks when executed? (Choose two.) | functions methods |
A developer wants to find the location of the Python 3 executable file. Which command should the developer use? | which python3 |
Which SDLC phase concludes with functional code that satisfies customer requirements and is ready to be tested? | implementation |
What are the three states of a Git file? (Choose three.) | staged committed modified |
Which term is used to describe the first line of an XML document? | prologue |
How does an application use a module in Python? | through the import statement |
What is the role of the controller component in the Model-View-Controller (MVC) flow? | It takes user input and manipulates it to the proper format for the model |
Which code review method involves the developer going through the code line-by-line with the reviewer, allowing the developer to make changes on the spot? | over-the-shoulder |
Refer to the exhibit. A network administrator is using a Python script to test a REST API request. The traceback message indicates that there is an error in the URI. What is a possible issue? | The destination host address is wrong. |
READ | GET |
CREATE | POST |
DELETE | DELETE |
UPDATE | PUT/PATCH |
What is an architectural constraint to which a true RESTful API web service must adhere? | It operates in a stateless way. |
Refer to the exhibit. A network administrator is using a Python script to send a REST API request. What is the purpose of the line of code resp = requests.get(url, verify = False) ? | It bypasses the certificate validation check. |
A client is sending a REST API request to a web server. The request includes the need for data compression. Which three values are acceptable for the Accept-Encoding request header? (Choose three.) | * br gzip |
What is the meaning of the term flow as it relates to the OAuth 2.0 authorization framework? | It is a process for an API user to obtain an access token from the authorization server. |
What is a characteristic of a RESTful API? | It uses HTTP methods to gather and manipulate data. |
Which characteristic of the SOAP architecture specifies communication between all similar and dissimilar application types? | independence |
In the REST API request URI example , which term describes the component example.com ? | authority |
Which SOAP message root element defines the XML document as a SOAP message? | Envelope |
Which type of credential information is used for the bearer authentication in REST APIs? | a string generated by an authentication server |
What are two purposes for using rate limits on public and unrestricted APIs? (Choose two.) | - to avoid a server overloading from too many requests at the same time - to provide better service and response time to all users |
Which HTTP response status code indicates that the user is not authenticated to access the site? | 401 |
OK (using GET or POST to exchange data with an API successfully) | 200 |
Created (creating resources by using a REST API call successfully) | 201 |
Bad Request (The request from the client is failed due to client-side issue.) | 400 |
Unauthorized (The client is not authenticated to access site or API call.) | 401 |
Forbidden (The access request is not granted based on the supplied credentials.) | 403 |
Not Found (The page requested at HTTP URL location does not exist or is hidden.) | 404 |
Which API architectural style uses an XML-based messaging protocol to communicate between applications? | SOAP |
Simple Object Access Protocol (SOAP) | is a messaging protocol used when applications need to communicate. It is an XML-based protocol that was developed by Microsoft. |
A network engineer is learning about Rest APIs. When executing a particular API, the server responds with curl. How is this information useful? | Curl shows how to access the content displayed in the response body using curl. |
is a tool used on many platforms for getting or sending files using URL syntax. | Clients for URLs (curl or cURL) |
In which situation would a synchronous API be used? | when data is being retrieved from a database |
What is REST? | It is an architecture style for designing web service applications. |
Which HTTP response status code indicates that the request to update the database is completed? | 201 |
REST | is not a protocol or service, but rather a style of software architecture for designing web service applications. |
How many elements does a SOAP message contain? | 4 |
SOAP message | is an XML document that can contain four elements, namely, Envelope, Header, Body, and Fault. |
Refer to the exhibit. A network administrator is using a Python script to test a REST API request. The traceback message indicates there is an error in the URI. What is the error? | The protocol is missing. |
Which type of encoding is used in basic authentication for REST APIs? | Base64 |
What is an architectural constraint to which a true RESTful API web service must adhere? | It runs as client/server model. |
Client/server | The client handles the front end and the server handles the back end. |
Stateless | No client data is stored on the server between requests. The session state is stored on the client. |
Cacheable | Clients can cache responses locally to improve performance. |
What is a reason that a network engineer would use APIs? | to automate configuration or data collection tasks |
What is a webhook for REST APIs? | It is an HTTP callback to a URL to notify the client application that an event has occurred. |
As part of creating an API request using Python, the following commands are entered. What is the purpose of this step? ipaddr = 10.1.50.1 interface = Ethernet1/1 hostname = R1 | to create variables |
A web service uses a rate limit algorithm that puts all incoming REST API requests into a queue in the order in which they arrive. Which rate limit algorithm is used by the web service? | leaky bucket |
What is an application requirement in order to receive a notification from a webhook provider? | The application must always be running to receive HTTP POST requests. |
Which RESTful operation corresponds to the HTTP GET method? | read |