exam questions

Exam 1z0-071 All Questions

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

Exam 1z0-071 topic 1 question 36 discussion

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

Examine the description of the BOOKS table:

The table has 100 rows.
Examine this sequence of statements issued in a new session:
INSERT INTO books VALUES ('ADV112', 'Adventures of Tom Sawyer', NULL, NULL);
SAVEPOINT a;
DELETE FROM books;
ROLLBACK TO SAVEPOINT a;
ROLLBACK;
Which two statements are true? (Choose two.)

  • A. The second ROLLBACK command replays the delete.
  • B. The first ROLLBACK command restores the 101 rows that were deleted and commits the inserted row.
  • C. The first ROLLBACK command restores the 101 rows that were deleted, leaving the inserted row still to be committed.
  • D. The second ROLLBACK command undoes the insert.
  • E. The second ROLLBACK command does nothing.
Show Suggested Answer Hide Answer
Suggested Answer: CD 🗳️

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
ragdoll_raincoat
3 months ago
Selected Answer: CD
A. The second ROLLBACK command replays the delete. This is false. The second rollback undoes the INSERT operation but does not affect the DELETE. The first rollback already restored the rows deleted before the savepoint. B. The first ROLLBACK command restores the 101 rows that were deleted and commits the inserted row. This is false. The first rollback restores the deleted rows but does not commit the inserted row. The insert is still in an uncommitted state until the second rollback is issued. C. The first ROLLBACK command restores the 101 rows that were deleted, leaving the inserted row still to be committed. This is true. The first rollback restores the deleted rows (100 rows), and the inserted row is still uncommitted, meaning it will be undone by the second rollback. D. The second ROLLBACK command undoes the insert. This is true. The second rollback undoes the insert, as it was the most recent uncommitted operation at the time. E. The second ROLLBACK command does nothing. This is false. The second rollback does undo the inserted row ('ADV112', 'Adventures of Tom Sawyer'), so it does something.
upvoted 1 times
...
alelejaja
4 months, 3 weeks ago
Selected Answer: CD
CD are correct
upvoted 1 times
...
yaya32
9 months, 1 week ago
Selected Answer: DE
For me DE
upvoted 1 times
...
TheOracleWasTaken
1 year, 2 months ago
Selected Answer: CD
Seems right!
upvoted 1 times
...
Orxan_H
1 year, 6 months ago
Selected Answer: CD
Rollback without savepoint: - end of the transaction - delete savepoints - undoes all changes in the transactions
upvoted 3 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