DP-420 Exam QuestionsBrowse all questions from this exam

DP-420 Exam - Question 116


HOTSPOT -

You have an Azure Cosmos DB Core (SQL) API account used by an application named App1.

You open the Insights pane for the account and see the following chart.

Exam DP-420 Question 116

Use the drop-down menus to select the answer choice that answers each question based on the information presented in the graphic.

NOTE: Each correct selection is worth one point.

Hot Area:

Exam DP-420 Question 116
Show Answer
Correct Answer:
Exam DP-420 Question 116

Box 1: incorrect connection URLs

400 Bad Request: Returned when there is an error in the request URI, headers, or body. The response body will contain an error message explaining what the specific problem is.

The HyperText Transfer Protocol (HTTP) 400 Bad Request response status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error (for example, malformed request syntax, invalid request message framing, or deceptive request routing).

Box 2: 6 thousand -

201 Created: Success on PUT or POST. Object created or updated successfully.

Note:

200 OK: Success on GET, PUT, or POST. Returned for a successful response.

404 Not Found: Returned when a resource does not exist on the server. If you are managing or querying an index, check the syntax and verify the index name is specified correctly.

Reference:

https://docs.microsoft.com/en-us/rest/api/searchservice/http-status-codes

Discussion

5 comments
Sign in to comment
lakime
Nov 10, 2022

404 Not Found: Returned when a resource does not exist on the server. If you are managing or querying an index, check the syntax and verify the index name is specified correctly. - so first answer should be D 201 Created: Success on PUT or POST. Object created or updated successfully. So second is correct

essdeecee
Mar 16, 2023

404 | Not Found | The document is no longer a resource, that is, the document was deleted. https://docs.microsoft.com/en-us/training/modules/monitor-responses-events-azure-cosmos-db-sql-api/2-review-common-response-codes#:~:text=Strong%20or%20Bounded.-,404,is%20no%20longer%20a%20resource%2C%20that%20is%2C%20the%20document%20was%20deleted.,-Replace%20a%20Document

Ranzzzan
Sep 1, 2023

100% correct

azuredemo2022three
Dec 22, 2023

Answer 1. requesting resources that do not exist 2. 6 thousand

TimSss
Mar 29, 2023

Explanation is talking about 400 but question is about 404

essdeecee
Mar 16, 2023

2nd answer is 30.3: looking for 200 codes. Answer selection is for 404 codes which is not correct.

Internal_Koala
Apr 25, 2023

200 is for succesful GET while 201 is a successful creation. Second choice (201) is correct.

xRiot007
Jul 6, 2024

200 is a successful GET 201 is a successful creation

WimTS
Apr 16, 2025

https://learn.microsoft.com/en-us/training/modules/monitor-responses-events-azure-cosmos-db-sql-api/2-review-common-response-codes 404 = Resourse does not exist upon Get, Replace, Delete 201 = succesfull creation of a document => 6k