Curated

Data Security and Governance (4.1–4.5)

0 votes

Questions55

  1. Question 51

    Data Security and Governance

    A team moves a self-managed Spark pipeline from Amazon EC2 to AWS Glue and removes its host-patching automation. The pipeline still reads sensitive S3 data; which security responsibility allocation is appropriate?

    Show the answer

    Correct answerB. AWS patches Glue infrastructure; the team maintains the job role's data-access permissions.

    AWhy not this: AWS manages infrastructure but does not determine the customer's job-role permissions for sensitive data.

    BWhy this is right: Glue removes customer host-patching duties, but the customer still configures authorization for the job's data access.

    CWhy not this: Customers do not patch Glue hosts, and AWS does not maintain customer-defined data-access permissions.

    DWhy not this: This retains the host administration expected with self-managed EC2 rather than AWS Glue.

    AWS Glue manages its underlying infrastructure, including host patching, while the customer configures the job role and its data-access permissions. Managed infrastructure does not transfer responsibility for customer IAM authorization to AWS.

    Open this question
  2. Question 52

    Data Security and Governance

    Which practices help construct a custom IAM policy that follows least privilege? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. Allow only actions required by the workload.D. Scope permissions to required resources where supported.E. Add conditions that enforce required access restrictions.

    AWhy not this: Permissions for possible future needs grant authority beyond current requirements.

    BWhy this is right: Limiting allowed actions prevents the workload from performing unnecessary operations.

    CWhy not this: Service-wide action wildcards can authorize operations the workload does not need.

    DWhy this is right: Resource scoping confines allowed operations to the resources the workload needs.

    EWhy this is right: Conditions restrict when or how otherwise allowed actions can be performed.

    Least-privilege policies limit actions, resources, and applicable access conditions to the workload's needs. Speculative administrative permissions and service-wide action wildcards introduce unnecessary authority.

    Open this question
  3. Question 53

    Data Security and Governance

    An AWS Glue crawler role has the required IAM permissions and Lake Formation CREATE_TABLE permission on a database, but cannot create tables pointing to a registered S3 location. Which additional Lake Formation permission does the role need?

    Show the answer

    Correct answerB. DATA_LOCATION_ACCESS on the registered location

    AWhy not this: SELECT authorizes reading table data, not creating tables that reference a registered S3 location.

    BWhy this is right: DATA_LOCATION_ACCESS authorizes creating Data Catalog resources that reference the registered S3 location.

    CWhy not this: ALTER permits changing database metadata; it does not provide permission to reference a registered S3 location.

    DWhy not this: DESCRIBE permits viewing metadata, not creating tables that reference the registered location.

    DATA_LOCATION_ACCESS permits creating Data Catalog resources that point to a registered S3 location. SELECT permits reading table data; it does not authorize creating metadata that references the location.

    Open this question
  4. Question 54

    Data Security and Governance

    A data governance team tags every object in a shared S3 bucket with a Team tag, and each analyst IAM role carries a Team tag too. Analysts may read only objects whose Team tag matches their role's, and new teams and objects must be covered without policy changes. Which policy design meets these requirements?

    Show the answer

    Correct answerA. Allow s3:GetObject when s3:ExistingObjectTag/Team equals ${aws:PrincipalTag/Team}.

    AWhy this is right: Comparing the object's existing Team tag with the role's Team tag enforces the rule for any team or object without editing the policy.

    BWhy not this: s3:RequestObjectTag evaluates tags supplied in the request, such as on PutObject, not the tags already on the object being read.

    CWhy not this: Per-team prefix statements must be edited whenever a team is added, and they ignore the governance team's tags.

    DWhy not this: One shared role with bucket-wide read access lets every analyst read every team's objects.

    GetObject supports the s3:ExistingObjectTag condition key, so one statement that compares the object's Team tag with the principal's Team tag grants access by attribute; new teams and objects need only tags, not policy edits. s3:RequestObjectTag checks tags sent in a request, such as an upload, not the tags already on an object being read.

    Open this question
  5. Question 55

    Data Security and Governance

    A data team has stable reader and operator job functions with different AWS permissions, and employees frequently move between them. Which authorization design minimizes permission maintenance when employees change functions?

    Show the answer

    Correct answerC. Define IAM roles for the job functions and update who can assume each role.

    AWhy not this: Tags alone do not enforce authorization, and per-employee resource lists retain the maintenance burden.

    BWhy not this: Per-employee inline policies require permission changes whenever employees move between functions.

    CWhy this is right: Job-function roles keep permission sets stable while access to those roles changes with employee responsibilities.

    DWhy not this: Database grants do not cover general AWS permissions and still require per-employee updates.

    Role-based access control groups permissions by job function, so transfers require changing role access rather than rewriting permissions. Individual inline policies can enforce access but require repeated per-employee maintenance.

    Open this question