Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-497 Topic 1 Question 109 Discussion

Actual exam question for Oracle's 1Z0-497 exam
Question #: 109
Topic #: 1
[All 1Z0-497 Questions]

Examine the command below:

BEGIN DBMS_REDACT.ADD_POLICY(

object_schema => 'mavis',

object_name => 'cust_info',

column_name => 'emp_id',

policy_name => 'redact_cust_ids',

function_type => DBMS_REDACT.REGEXP,

expression => '1=1',

regexp_pattern => '(\d\d\d)(\d\d)(\d\d\d\d)',

regexp_replace_string => 'XXXXX\3',

regexp_position => 1,

regexp_occurrence => 0,

regexp_match_parameter => 'i',

policy_description => 'Redacts customer IDs',

column_description => 'emp_id contains employee ID numbers');

END;

/

What do the regexp_pattern and regexp_replace_string parameters accomplish?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Yolande
3 months ago
Haha, 'Redacts customer IDs' - I bet the developers had a fun time coming up with this one. At least they're trying to protect customer privacy, even if the implementation could use some work.
upvoted 0 times
Emerson
2 months ago
B) They find a pattern of six digits; break the digits into two groups that contain the first five, and then the last digit; and replace all digits with XXXXX concatenated with the last digit.
upvoted 0 times
...
Latrice
2 months ago
A) They find a pattern of nine digits; break the digits into three groups that contain the first three, the next two and then the last four digits; and replace all digits with XXXXX concatenated with the last four digits.
upvoted 0 times
...
Shawna
2 months ago
Haha, 'Redacts customer IDs' - I bet the developers had a fun time coming up with this one. At least they're trying to protect customer privacy, even if the implementation could use some work.
upvoted 0 times
...
Dorthy
2 months ago
A) They find a pattern of nine digits; break the digits into three groups that contain the first three, the next two and then the last four digits; and replace all digits with XXXXX concatenated with the last four digits.
upvoted 0 times
...
...
Julio
3 months ago
I'm not sure the replace string is quite right - it seems to just append the last 4 digits instead of replacing the whole thing. But the overall approach makes sense for redacting sensitive info.
upvoted 0 times
Hollis
3 months ago
User3: Yeah, it's important to redact sensitive info properly.
upvoted 0 times
...
Howard
3 months ago
User2: I agree, it seems like the most logical choice.
upvoted 0 times
...
Mi
3 months ago
User1: I think option A is correct. It breaks the digits into groups and replaces them with XXXXX.
upvoted 0 times
...
...
Socorro
3 months ago
Option A is correct because it breaks the nine digits into three groups and replaces them with XXXXX concatenated with the last four digits.
upvoted 0 times
...
Annice
4 months ago
I'm not sure about this. Can someone explain why option A is the correct choice?
upvoted 0 times
...
Irma
4 months ago
The regex pattern and replace string are definitely designed to mask the customer IDs. Looks like they're breaking up the 9-digit ID into groups and replacing most of it with Xs. Clever way to preserve some of the original data.
upvoted 0 times
Stephanie
3 months ago
Yes, it's a clever way to mask the IDs while still keeping some of the original data intact.
upvoted 0 times
...
Stephanie
3 months ago
A) They find a pattern of nine digits; break the digits into three groups that contain the first three, the next two and then the last four digits; and replace all digits with XXXXX concatenated with the last four digits.
upvoted 0 times
...
...
Lenita
4 months ago
I agree with you, Socorro. Option A seems to be the correct answer.
upvoted 0 times
...
Socorro
4 months ago
I think the regexp_pattern and regexp_replace_string parameters break the digits into three groups and replace them with XXXXX.
upvoted 0 times
...

Save Cancel