exam questions

Exam 1z0-908 All Questions

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

Exam 1z0-908 topic 1 question 48 discussion

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

t is a non-empty InnoDB table.
Examine these statements, which are executed in one session:
BEGIN;
SELECT * FROM t FOR UPDATE;
Which is true?

  • A. If OPTIMIZE TABLE; is invoked, it will create a table lock on t and force a transaction rollback.
  • B. If OPTIMIZE LOCAL TABLE t; is invoked from another session, it executes normally and returns the status.
  • C. mysqlcheck --analyze --all-databases will execute normally on all tables and return a report.
  • D. If ANALYZE TABLE; is invoked from the same session, it hangs until the transaction is committed or rolled back.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
FelipeK
1 year ago
Selected Answer: C
The right answer is C
upvoted 1 times
...
xjllll
1 year, 1 month ago
Selected Answer: C
C is right
upvoted 2 times
...
marklv
1 year, 5 months ago
B is not right. D is. It locks until the first connection is done.
upvoted 2 times
marklv
6 months, 3 weeks ago
Sorry, if same session, D will not lock. D isn't right either
upvoted 1 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