exam questions

Exam 1z0-149 All Questions

View all questions & answers for the 1z0-149 exam

Exam 1z0-149 topic 1 question 22 discussion

Actual exam question from Oracle's 1z0-149
Question #: 22
Topic #: 1
[All 1z0-149 Questions]

Which three are true about DDL triggers? (Choose three.)

  • A. They cannot include the WHEN clause.
  • B. They must be created in an enabled state.
  • C. They can be fired when a table is truncated.
  • D. They fire only when a DDL statement is executed by the owner of the trigger.
  • E. They can be fired either before or after a DDL statement executes.
  • F. They can be fired when a privilege is granted to a user.
  • G. They must be created in a disabled state.
Show Suggested Answer Hide Answer
Suggested Answer: ACE 🗳️

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
egznrd
Highly Voted 4 months, 3 weeks ago
I vote for CEF. I don't agree with D.
upvoted 5 times
...
Goto10
Most Recent 7 months, 2 weeks ago
To me 4 or 5 are correct : ) A. They cannot include the WHEN clause. -False Unless it's a part of Exception block B. They must be created in an enabled state. - False C. They can be fired when a table is truncated. - True CREATE OR REPLACE TRIGGER truncate_trigger_after AFTER TRUNCATE ON USER1.SCHEMA BEGIN RAISE_APPLICATION_ERROR ( num => -20000, msg => 'Truncated'); END; / D. They fire only when a DDL statement is executed by the owner of the trigger. - True per documentation E. They can be fired either before or after a DDL statement executes. - True see point C F. They can be fired when a privilege is granted to a user. - True GRANT is listed among DDL Events of System Trigger CREATE OR REPLACE TRIGGER grant_trigger_after AFTER GRANT ON USER1.SCHEMA BEGIN RAISE_APPLICATION_ERROR ( num => -20000, msg => 'Granted'); END; / G. They must be created in a disabled state. - False
upvoted 1 times
TheOracleWasTaken
4 months, 3 weeks ago
With D can't you make it so that its a database trigger tho? In that case it doesnt matter who does a ddl statement right?
upvoted 1 times
...
...
DiplomiraniZnalac
8 months, 3 weeks ago
Selected Answer: ACE
A. They cannot include the WHEN clause. DDL triggers cannot include the WHEN clause, as this clause is used for row-level triggers to define a condition that must be met before the trigger fires. C. They can be fired when a table is truncated. DDL triggers can be fired by a TRUNCATE statement, as this is a Data Definition Language (DDL) operation. E. They can be fired either before or after a DDL statement executes. DDL triggers can be created to fire either before or after a DDL statement is executed. This allows for various actions to be taken, such as logging or validating changes, depending on the specific DDL operation.
upvoted 4 times
TheOracleWasTaken
4 months, 3 weeks ago
According to this documentation they can have a WHEN clause. https://docs.oracle.com/en/database/oracle/oracle-database/19/lnpls/plsql-triggers.html#GUID-F6473AD0-75D2-4E36-8B15-F93F0B5A8B79
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago