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 7 months, 1 week ago
I vote for CEF. I don't agree with D.
upvoted 5 times
...
826cb95
Most Recent 1 month, 3 weeks ago
Selected Answer: CEF
WT*. A is incorrect. Correct is CEF A. Implicit cursor returns only one record. This is incorrect. Implicit cursors handle queries that may return one or more records. However, they are typically used for SQL statements that return a single result, such as SELECT INTO. But, they are not limited to only one record.
upvoted 1 times
...
826cb95
1 month, 3 weeks ago
Selected Answer: CEF
F- DDL triggers can also be fired when specific DDL statements like GRANT, REVOKE, or other object-level privileges are applied to a user. A A. They cannot include the WHEN clause. DDL triggers can include the WHEN clause, which can be used to specify conditions under which the trigger should fire.
upvoted 1 times
...
Goto10
10 months, 1 week 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
7 months, 2 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
11 months, 1 week 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
7 months, 2 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