exam questions

Exam 1z0-908 All Questions

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

Exam 1z0-908 topic 1 question 53 discussion

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

Which two queries are examples of successful SQL injection attacks? (Choose two.)

  • A. SELECT user,passwd FROM members -
    WHERE user = ‘?’;INSERT INTO members(‘user’,’passwd’) VALUES (‘[email protected]’,‘secret’);--‘;
  • B. SELECT id, name FROM user WHERE user.id=(SELECT members.id FROM members);
  • C. SELECT id, name FROM user WHERE id=23 OR id=32 OR 1=1;
  • D. SELECT id, name FROM user WHERE id=23 OR id=32 AND 1=1;
  • E. SELECT email,passwd FROM members
    WHERE email = ‘INSERT INTO members(‘email’,’passwd’) VALUES (‘[email protected]’, ‘secret’);--‘;
  • F. SELECT user, phone FROM customers WHERE name = ‘\; DROP TABLE users; --‘;
Show Suggested Answer Hide Answer
Suggested Answer: DE 🗳️

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
LrnsTgh
6 months, 4 weeks ago
Selected Answer: AE
F only possible if session has all privileges;
upvoted 1 times
...
xjllll
7 months, 3 weeks ago
Selected Answer: AC
A and C
upvoted 1 times
...
marklv
11 months, 1 week ago
E and F, the other two don't write to the database. A might be valid. Injection is a query inside another query.
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