exam questions

Exam 1z0-908 All Questions

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

Exam 1z0-908 topic 1 question 57 discussion

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

Examine this statement:
mysql> DROP ROLE r_role1, r_role2;
Which two are true? (Choose two.)

  • A. It fails if any of the roles is specified in the mandatory_roles variable.
  • B. You must revoke r_role1 and r_role2 from all users and other roles before dropping the roles.
  • C. Existing connections can continue to use the roles’ privileges until they reconnect.
  • D. You must revoke all privileges from r_role1 and r_role2 before dropping the roles.
  • E. It fails if you do not have the ADMIN OPTION of the roles r_role1 and r_role2.
  • F. It fails if at least one of the roles does not exist.
Show Suggested Answer Hide Answer
Suggested Answer: CE 🗳️

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
roobenj
6 months ago
Selected Answer: AF
Tested it. A and F are correct options.
upvoted 1 times
...
FelipeK
6 months ago
Selected Answer: AF
A. It fails if any of the roles is specified in the mandatory_roles variable. Roles named in the mandatory_roles system variable value cannot be dropped. F. It fails if at least one of the roles does not exist. By default, an error occurs if you try to drop a role that does not exist. However, if the IF EXISTS clause is given, the statement produces a warning for each named role that does not exist, rather than an error.
upvoted 1 times
...
marklv
9 months, 2 weeks ago
correction, A and F. You don't need to reload connection if role changes.
upvoted 1 times
...
marklv
11 months, 1 week ago
I tested it, you can drop a role if users have that role. You need grant and revoke privs to manipulate roles. I also tested deleting a role that didn't exist, it errored. C and F.
upvoted 1 times
...
dieymir
1 year ago
A and F
upvoted 1 times
...
FelipeK
1 year, 3 months ago
Selected Answer: BC
B. This is true. Before dropping a role, you need to make sure that the role is not assigned to any user or any other role. Otherwise, the DROP ROLE statement will fail with an error message. C. This is also true. Existing connections that are currently using the privileges of the roles being dropped can continue to do so until they disconnect and reconnect.
upvoted 2 times
FelipeK
6 months ago
correction A and F
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