exam questions

Exam 1z0-071 All Questions

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

Exam 1z0-071 topic 1 question 230 discussion

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

User HR has CREATE SESSION, CREATE ANY TABLE and UNLIMITED TABLESPACE privileges.

User SCOTT has CREATE SESSION, CREATE TABLE and UNLIMITED TABLESPACE privileges.

HR successfully executes this statement:



HR attempts to execute:

1. INSERT INTO scott.products VALUES (1, 'LAPTOP');

SCOTT attempts to execute:

2. SELECT * FROM products;
3. INSERT INTO scott.products VALUES (2, 'HDD');
4. CREATE SYNONYM prod FOR products;

Which will execute successfully?

  • A. 1, 2 and 3
  • B. 2, 3 and 4
  • C. 1 only
  • D. 2 and 3 only
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
HUGO2024
4 months, 4 weeks ago
Selected Answer: D
D correct , you need permission to create synonym
upvoted 1 times
...
Ayman_Khalifa
6 months, 2 weeks ago
Why A is incorrect?
upvoted 2 times
...
yaya32
1 year ago
Selected Answer: D
I think D is correct as you need permission to create synonym
upvoted 1 times
...
lucemqy
1 year, 2 months ago
Selected Answer: D
D 2,3 only You need explicit permission to create synonym even in your own schema https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/CREATE-SYNONYM.html#GUID-A806C82F-1171-478E-A910-F9C6C42739B2
upvoted 1 times
...
Festo
1 year, 2 months ago
B. 2, 3, and 4
upvoted 1 times
...
XTIMON
1 year, 4 months ago
Selected Answer: D
D is correct
upvoted 2 times
...
AlexAFJ
1 year, 5 months ago
Selected Answer: D
Tested, you cannot create synonyms nor views without premission even if you are trying to do it for a object in your schema or if you want to use your schema table as a underlying table for view.
upvoted 2 times
...
Shrimathi
1 year, 6 months ago
option D Since scott has privileges create session,table and unlimited table space, the user has not rights to create synonym unless he has create synonym privilege given to scott.
upvoted 2 times
Alex72
1 year, 6 months ago
Scott can create synonym. Tested.
upvoted 1 times
...
...
zouve
1 year, 7 months ago
Selected Answer: B
User HR has the CREATE ANY TABLE privilege, which allows them to create a table in another user’s schema. In this case, HR successfully creates the products table in SCOTT’s schema. However, HR does not have the INSERT privilege on SCOTT’s products table, so statement 1 will fail. User SCOTT has the CREATE SESSION and CREATE TABLE privileges, which allow them to log in to the database and create tables in their own schema. Since the products table is in SCOTT’s schema, SCOTT can query and insert data into the table, so statements 2 and 3 will execute successfully. SCOTT also has the privilege to create a synonym in their own schema, so statement 4 will execute successfully.
upvoted 2 times
HICH9173
5 months, 3 weeks ago
To create a private synonym in your own schema, you must have the CREATE SYNONYM system privilege. To create a private synonym in another user's schema, you must have the CREATE ANY SYNONYM
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