Cyber Monday 2024! 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 3 Question 101 Discussion

Actual exam question for Oracle's 1Z0-497 exam
Question #: 101
Topic #: 3
[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:

Vanesa
3 months ago
I see your point, Jordan. But I still think Option A is the most logical choice.
upvoted 0 times
...
Ailene
3 months ago
As a wise man once said, 'With great power comes great responsibility.' I hope the folks using this redaction policy are using it responsibly. A gets my vote.
upvoted 0 times
...
Jordan
3 months ago
I'm not sure. Option D also sounds plausible to me.
upvoted 0 times
...
Amie
3 months ago
A classic case of security through obscurity. I guess option A is the way to go, but I hope the real-world application of this is more robust than just hiding digits behind XXXXX.
upvoted 0 times
Hildegarde
2 months ago
Vallie: Agreed, it's important to have additional layers of security in place beyond just redacting digits.
upvoted 0 times
...
Kyoko
2 months ago
It's definitely a form of security through obscurity, but it can be effective if used properly.
upvoted 0 times
...
Vallie
2 months ago
Yeah, it breaks the digits into three groups and maintains the last four digits. Seems like a good way to redact sensitive information.
upvoted 0 times
...
Jarvis
2 months ago
I think option A is correct. It finds a pattern of nine digits and replaces them with XXXXX concatenated with the last four digits.
upvoted 0 times
...
...
Kanisha
3 months ago
I agree with Vanesa. Option A seems to be the correct answer.
upvoted 0 times
...
Tasia
3 months ago
This looks like a pretty straightforward data redaction use case. The regex does what it's supposed to do - obscure sensitive data while preserving some context. I'll go with A as well.
upvoted 0 times
...
Mattie
3 months ago
The regular expression and replace string seem to work as expected. It finds a pattern of 9 digits, breaks it into groups, and replaces the first 5 digits with XXXXX and keeps the last 4 digits. I'd go with option A.
upvoted 0 times
Eileen
2 months ago
Yes, option A is the right choice. It breaks the 9 digits into groups and replaces all digits except the last four with XXXXX.
upvoted 0 times
...
Eileen
2 months ago
I agree, option A is correct. It breaks the 9 digits into groups and replaces all digits except the last four with XXXXX.
upvoted 0 times
...
...
Vanesa
3 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
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77