exam questions

Exam 1z0-148 All Questions

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

Exam 1z0-148 topic 1 question 19 discussion

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

Identify the two correct scenarios where a function can be optimized using the function result cache feature.

  • A. A function which inserts multiple records into a DEPARTMENTS table as part of one-time data setup for an HR application.
  • B. A function which accesses multiple tables and calculates the commission to be given to a sales representative based on the number of products sold by that representative.
  • C. A function which deletes all the records from an EMPLOYEES_AUDIT table based on their LOG_DATE.
  • D. A function which updates the SALARY of all the employees in an EMPLOYEES table by a fixed percentage based on their DESIGNATION.
  • E. A function which calculates the factorial of a given number without accessing any table.
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
Angelos_ang
2 years, 4 months ago
D may be good if cache is used only for the calculation and not for the update
upvoted 1 times
...
Rakeshpro
2 years, 4 months ago
Using RESULT CACHE in a function which updates something does not make any sense, as each time the CACHE will be invalidated
upvoted 1 times
Rakeshpro
2 years, 4 months ago
Answer is B & E
upvoted 2 times
...
...
chrishillinger
2 years, 5 months ago
Selected Answer: BE
BE makes the most sense
upvoted 1 times
...
CosminCof
4 years, 1 month ago
It's B and E
upvoted 2 times
...
jcamt
4 years, 3 months ago
B and E because D has a data integrity problem when execute the update https://oracle-base.com/articles/11g/cross-session-plsql-function-result-cache-11gr1#:~:text=The%20cross%2Dsession%20PL%2FSQL,function%20with%20the%20same%20parameters.
upvoted 3 times
...
olkaolka
4 years, 6 months ago
I think D,E Not B because there may be a different amount of sold products. Not C LOG_DATE changes constantly
upvoted 1 times
protonik2020
4 years, 5 months ago
why D ? Cache for update ?
upvoted 1 times
...
...
orakell
5 years, 2 months ago
B and E
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