exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 316 discussion

Actual exam question from Cisco's 350-901
Question #: 316
Topic #: 1
[All 350-901 Questions]





Refer to the exhibit. A team of developers uses Git to store the code for a new application. Each team member is developing the code for a specific part of the application. When a developer commits new code to the Git repository, the deployment pipeline fails. What is the cause of the unit test failure?

  • A. The username that was provided for basic authentication is incorrect.
  • B. The assert statement must check for HTTP code 401 instead of HTTP code 200.
  • C. The URL in the URL variable is formatted incorrectly.
  • D. The token that is used during authorization is incorrect.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mullio99
Highly Voted 2 years, 3 months ago
Selected Answer: A
The answer is A. The correct username is "2720000" and not "2710000"
upvoted 12 times
...
samael666
Most Recent 5 months ago
Selected Answer: D
Letter A can't be because the credentials are the same as the function user and the password and putting that will generate a HTT 200 code but happens the opposite, so the token should be changed, normally expired from time to time
upvoted 1 times
...
Amycert
9 months ago
Selected Answer: A
Its A. I wish all questions were this easy.
upvoted 2 times
...
GatorSunshine
2 years, 2 months ago
Selected Answer: D
D is correct answer. 1) A incorrect because username is correct. We are running function test_authentication_success. Username for that function is 2710000 2) B is incorrect because we do want to assert for error code 200, give that the name of this function test_authentication_success. 3) URL variable looks fine and error code that we are getting to assert is 401 which leads me to next one. 4) D is correct because we received HTTP error code 401 to assert, which means authentication error. Provided token is incorrect.
upvoted 1 times
GatorSunshine
2 years, 1 month ago
I take this one back. A is the correct answer.
upvoted 2 times
...
...
Fedesarucho
2 years, 2 months ago
i think the answer is correct. It got a failure in pipeline, if status == 200, so other options dont make sense
upvoted 1 times
Fedesarucho
2 years, 1 month ago
definitly is A, user is wrong, because following method has another user and it doesnt fail
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...