You work for MDFT Pro, a well-known training agency that processes student payment information. Claire, a Database Security Specialist at MDFT Pro, manages a Fabric workspace called PaymentProcessing that contains a warehouse named StudentPayments. A team of data analysts has Viewer role access to the workspace to analyze payment trends and generate reports. Claire creates a table called CreditCard to store payment methods with columns for CreditCard (the card number) and CreditCardType (Visa, Mastercard, etc.). However, for compliance with PCI DSS security standards, the analysts should not be able to see full credit card numbers. They only need to see the first two characters and the last four characters (for example, “12XXXXXXXXXX5678” instead of “1234567890125678”) to identify card types and verify transactions. Claire needs to implement dynamic data masking to protect the sensitive credit card data while still allowing analysts to perform their analysis.
How should Claire complete the ALTER TABLE statement to mask the CreditCard column?
ALTER TABLE dbo.CreditCard
ALTER COLUMN [CreditCard]
ADD MASKED WITH (FUNCTION = '________(2, "XXXXXXXXXX", 4)')
Choose the correct answer from the options below.
Explanations for each answer: