AWS Certified Data Engineer - Associate (DEA-C01) Practice Questions

AWS Certified Data Engineer - Associate (DEA-C01) exam preparation

AWS Certified Data Engineer - Associate (DEA-C01) practice questions in English: 180 questions with explanations. The mock exam has 65 questions and 130 minutes.

AWS Certified Data Engineer - Associate (DEA-C01) free question 10 / 10 · Domain 4: Data Security and Governance

Support agents and analysts query the same Amazon Redshift table. The agents must see a partly hidden value in the card_number column, and the analysts must see a hash of it so that they can still join on it. The stored data must not change. What should the data engineer use?

  1. Dynamic data masking policies on the column, attached to the agent role and to the analyst role
  2. Row-level security policies on the table, with a different policy for the two roles
  3. A masked copy of the table for the teams that a scheduled job keeps in step with the source
  4. Column-level permissions on card_number that the analysts are granted
Show the answer and explanation

Answer: A

Why this is correct
Dynamic data masking lets you protect sensitive data in the warehouse by changing how Amazon Redshift shows it at query time, without transforming the stored data. A masking policy applies custom obfuscation rules to a given user or role, and you can attach different policies to the same column for different roles. The agents get a policy that partly redacts the value, and the analysts get a policy that hashes it, and a hash still allows joins without access to the sensitive information.

Why the other options are wrong
"A masked copy of the table for the teams that a scheduled job keeps in step with the source" … Dynamic data masking changes how Redshift shows the data at query time, without transforming it in the database, so copies of the sensitive data are not needed.
"Row-level security policies on the table, with a different policy for the two roles" … The Redshift page on row-level security says that RLS restricts access to particular rows of the visible columns. It does not change how the values of a visible column are displayed.
"Column-level permissions on card_number that the analysts are granted" … The same page describes column-level security as giving users permissions to a subset of columns. A column is then shown completely or not at all, so it cannot show a partial value to one team and a hash to the other.

Key points
When several roles with different policies apply to one column, you set priorities for each attachment to avoid conflicts. A masking policy can also work at the cell level by using conditional columns.

Go to the AWS Certified Data Engineer - Associate (DEA-C01) practice app (10 free questions; purchase unlocks all questions)

See the full practice set