You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- content: "What is the purpose of the context object in a stored procedure in Azure Cosmos DB?"
19
-
choices:
20
-
- content: "It provides access to the database schema and metadata."
21
-
isCorrect: false
22
-
explanation: "Incorrect. The context object does not provide access to the database schema or metadata."
23
-
- content: "It allows for the creation of new collections within the database."
24
-
isCorrect: false
25
-
explanation: "Incorrect. The context object does not allow for the creation of new collections within the database."
26
-
- content: "It provides access to all operations that can be performed in Azure Cosmos DB, and access to the request and response objects."
27
-
isCorrect: true
28
-
explanation: "Correct. The context object in a stored procedure provides access to all operations that can be performed in Azure Cosmos DB, and access to the request and response objects."
29
-
- content: "What is the role of pretriggers in Azure Cosmos DB?"
30
-
choices:
31
-
- content: "Pretriggers are automatically executed for each database operation."
32
-
isCorrect: false
33
-
explanation: "Incorrect. Triggers aren't automatically executed. They must be specified for each database operation where you want them to execute."
34
-
- content: "Pretriggers are executed before modifying a database item and must be specified for each database operation where you want them to execute."
35
-
isCorrect: true
36
-
explanation: "Correct. Pretriggers in Azure Cosmos DB are executed before modifying a database item and they need to be specified for each database operation where they should execute."
37
-
- content: "Pretriggers are used to execute operations after modifying a database item."
38
-
isCorrect: false
39
-
explanation: "Incorrect. Pretriggers are executed before modifying a database item, not after."
40
-
- content: "What is the purpose of the lease container in the Azure Cosmos DB change feed processor?"
41
-
choices:
42
-
- content: "It stores the data from which the change feed is generated."
43
-
isCorrect: false
44
-
explanation: "Incorrect. The monitored container, not the lease container, stores the data from which the change feed is generated."
45
-
- content: "It processes the change feed across multiple workers."
46
-
isCorrect: false
47
-
explanation: "Incorrect. The lease container does not process the change feed, it coordinates the processing across multiple workers."
48
-
- content: "It acts as a state storage and coordinates processing the change feed across multiple workers."
49
-
isCorrect: true
50
-
explanation: "Correct. The lease container acts as a state storage and coordinates processing the change feed across multiple workers."
- content: "What is the purpose of the context object in a stored procedure in Azure Cosmos DB?"
20
+
choices:
21
+
- content: "It provides access to the database schema and metadata."
22
+
isCorrect: false
23
+
explanation: "Incorrect. The context object does not provide access to the database schema or metadata."
24
+
- content: "It allows for the creation of new collections within the database."
25
+
isCorrect: false
26
+
explanation: "Incorrect. The context object does not allow for the creation of new collections within the database."
27
+
- content: "It provides access to all operations that can be performed in Azure Cosmos DB, and access to the request and response objects."
28
+
isCorrect: true
29
+
explanation: "Correct. The context object in a stored procedure provides access to all operations that can be performed in Azure Cosmos DB, and access to the request and response objects."
30
+
- content: "What is the role of pretriggers in Azure Cosmos DB?"
31
+
choices:
32
+
- content: "Pretriggers are automatically executed for each database operation."
33
+
isCorrect: false
34
+
explanation: "Incorrect. Triggers aren't automatically executed. They must be specified for each database operation where you want them to execute."
35
+
- content: "Pretriggers are executed before modifying a database item and must be specified for each database operation where you want them to execute."
36
+
isCorrect: true
37
+
explanation: "Correct. Pretriggers in Azure Cosmos DB are executed before modifying a database item and they need to be specified for each database operation where they should execute."
38
+
- content: "Pretriggers are used to execute operations after modifying a database item."
39
+
isCorrect: false
40
+
explanation: "Incorrect. Pretriggers are executed before modifying a database item, not after."
41
+
- content: "What is the purpose of the lease container in the Azure Cosmos DB change feed processor?"
42
+
choices:
43
+
- content: "It stores the data from which the change feed is generated."
44
+
isCorrect: false
45
+
explanation: "Incorrect. The monitored container, not the lease container, stores the data from which the change feed is generated."
46
+
- content: "It processes the change feed across multiple workers."
47
+
isCorrect: false
48
+
explanation: "Incorrect. The lease container does not process the change feed, it coordinates the processing across multiple workers."
49
+
- content: "It acts as a state storage and coordinates processing the change feed across multiple workers."
50
+
isCorrect: true
51
+
explanation: "Correct. The lease container acts as a state storage and coordinates processing the change feed across multiple workers."
0 commit comments