Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam C2090-616 All Questions

View all questions & answers for the C2090-616 exam

Exam C2090-616 topic 1 question 11 discussion

Actual exam question from IBM's C2090-616
Question #: 11
Topic #: 1
[All C2090-616 Questions]

Which of the following statements about triggers are TRUE? (Choose two.)

  • A. There is a limit of 8 for the maximum number of cascading trigger activations
  • B. Triggers can be activated as a result of changes due to referential constraint enforcement
  • C. Multiple INSTEAD OF triggers are allowed for each kind of operation on a given subject view
  • D. Constraints associated with a subject table are applied between execution of BEFORE and AFTER triggers
  • E. The activation of the triggers for a particular table, event and activation time are conducted in descending order of trigger creation time
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️
Reference: https://www.ibm.com/support/knowledgecenter/en/SSEPGG_10.5.0/com.ibm.db2.luw.admin.dbobj.doc/doc/c0004113.html

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
db2tester
5 years, 1 month ago
The answer B is correct because you can use triggers, along with referential constraints and CHECK constraints, to enforce data integrity rule. The answer D is correct because : - BEFORE triggers are activated before an update or INSERT operation, and the values that are being updated or inserted can be changed before the database data is modified in the table. - AFTER triggers are activated after an INSERT, UPDATE, or DELETE operation and are used to maintain relationships between data or to keep audit trail information.
upvoted 2 times
...
db2tester
5 years, 1 month ago
The answer E is wrong because the activation of a trigger results in the running of its associated triggered action. Every trigger has exactly one triggered action which, in turn, has two components: an optional triggered action condition or WHEN clause, and a set of triggered statement(s). Reference : https://www.ibm.com/support/knowledgecenter/en/SSEPGG_11.1.0/com.ibm.db2.luw.admin.dbobj.doc/doc/t0020231.html
upvoted 2 times
...
db2tester
5 years, 1 month ago
The answer C is wrong because only one INSTEAD OF trigger is allowed for each kind of operation on a given subject view (SQLSTATE 428FP).
upvoted 2 times
...
db2tester
5 years, 1 month ago
The answer A is wrong. YOur maximum is 16. The maximum nesting level for triggers is 16. That is, the maximum number of cascading trigger activations is 16. A trigger activation refers to the activation of a trigger upon a triggering event, such as insert, update, or delete of data in a column of a table, or generally to a table. (reference https://www.ibm.com/support/knowledgecenter/en/SSEPGG_11.1.0/com.ibm.db2.luw.admin.dbobj.doc/doc/t0020227.html)
upvoted 2 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 ...