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.
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
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
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
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
...
...
This section is not available anymore. Please use the main Exam Page.200-901 Exam Questions
Log in to ExamTopics
Sign in:
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.
[Removed]
Highly Voted 3 years, 11 months agoVan_Rossum
Most Recent 2 years, 5 months agoAngryeyebrows
2 years, 11 months agoChibiOokami
2 years, 2 months agoYo_Mero
7 months, 3 weeks agomacxsz
3 years agomacxsz
3 years agoanagy11
3 years, 3 months agoherrmann69
1 year, 4 months agoanagy11
3 years, 3 months agodesignated
3 years, 4 months agoAydin
3 years, 9 months agoSSJune
3 years, 11 months ago[Removed]
3 years, 3 months agoNullNull88
3 years, 8 months agowhiney
3 years, 12 months agokhuiper
3 years, 11 months ago