ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 55 - 300-910 discussion

Report
Export

Refer to the exhibit.

The snippet contains the JSON string that will be sent to the Prometheus AlertManager to silence an alert. AlertManager accepts only the content type of application 'json'' Which Python code correctly sends an API call to perform action?

A.

respone= request.post(url. json=json_data)

Answers
A.

respone= request.post(url. json=json_data)

B.

respone= request.post(url. json=json.loads(json_data)

Answers
B.

respone= request.post(url. json=json.loads(json_data)

C.

respone= request.post(url. data=json_data)

Answers
C.

respone= request.post(url. data=json_data)

D.

respone= request.post(url, data=json=(json_data)

Answers
D.

respone= request.post(url, data=json=(json_data)

Suggested answer: C
asked 10/10/2024
Ishan Patel
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first