exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 84 discussion

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

Refer to the exhibit.

The documentation outlines how to use credentials for the AMP API. Which script successfully performs an API call using basic authentication?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: B

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
[Removed]
Highly Voted 3 years, 11 months ago
from the next link. Should be option B. auth=(amp_client_id, amp_api_key)) it uses amp_api_key https://community.cisco.com/t5/endpoint-security/api-query-with-an-exact-match/td-p/4105767
upvoted 12 times
...
Van_Rossum
Most Recent 2 years, 5 months ago
The confusion is caused by this line:"...your api_key was 'atest' ". That value looks more like a password than an API key.
upvoted 1 times
...
Angryeyebrows
2 years, 11 months ago
Is itBasic Authentication if its using an APi key? That's what i dont understand about this question.
upvoted 1 times
ChibiOokami
2 years, 2 months ago
yes, basic is a kind of encryptation for authenticacion along with bearer and digest, which are the most common for cisco https://developer.mozilla.org/es/docs/Web/HTTP/Authentication
upvoted 1 times
Yo_Mero
7 months, 3 weeks ago
Basic authentication with Base64 is encoding and not encryption
upvoted 1 times
...
...
...
macxsz
3 years ago
B is the correct. Check the https example. First client ID then token
upvoted 3 times
macxsz
3 years ago
I mean first the client ID and then the key
upvoted 2 times
...
...
anagy11
3 years, 3 months ago
B is the correct, although no HTTPBasicAuth as been defined for the auth type. Because of this, I think there's no absolute correct answer.
upvoted 4 times
herrmann69
1 year, 4 months ago
Using auth=(x,y) is the shorthand for auth=HTTPBasicAuth(x,y) https://requests.readthedocs.io/en/latest/user/authentication/
upvoted 1 times
...
...
anagy11
3 years, 3 months ago
B is the correct
upvoted 2 times
...
designated
3 years, 4 months ago
The answer is B. https://api-docs.amp.cisco.com/api_resources?api_host=api.amp.cisco.com&api_version=v1 All API requests must use HTTP Basic Auth. Generating Client ID and API Key: Log in to your AMP for Endpoints Console. Go to Accounts > API Credentials. Click New API Credential to generate an API Key and Client ID. Once you have the API client ID and API key, you can make the API calls as follows: https://<your_client_id>:<your_api_key>@<api_endpoint>/<api_version>/<resource> Alternatively you can use Basic HTTP Authentication. Base 64 encode the string ":", and send that prefixed with the string "Basic" as the authorization header. For instance, if your client_id was 1234, and your api_key was "atest", then it would be base64 encoded to "MTIzNDphdGVzdA==", and your header would be: Authorization: Basic MTIzNDphdGVzdA== B is the only one that is using basic auth(amp_client_id, amp_api_key) on the header
upvoted 1 times
...
Aydin
3 years, 9 months ago
should be B
upvoted 2 times
...
SSJune
3 years, 11 months ago
Which is the right answer?
upvoted 2 times
[Removed]
3 years, 3 months ago
B is the one
upvoted 2 times
...
NullNull88
3 years, 8 months ago
they don't know
upvoted 1 times
...
...
whiney
3 years, 12 months ago
D might be the correct choice here: https://developer.cisco.com/docs/pyats/#!introduction/cisco-pyats-network-test--automation-solution
upvoted 2 times
khuiper
3 years, 11 months ago
Option D has a wrong parameter called amp_login_password where have to be amp_api_key according to URL to make API calls: "https://<your_client_id>:<your_api_key>@<api_endpoint>. Correct answer is B
upvoted 4 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 ...