Curated

Data Security and Governance (4.1–4.5)

0 votes

Questions55

  1. Question 1

    Data Security and Governance

    EC2-based ingestion workers cannot connect to an RDS PostgreSQL database. Worker outbound rules allow the connection, but the database security group has no inbound rules. Which change allows access only from workers associated with their security group?

    Show the answer

    Correct answerA. Allow inbound TCP 5432 from the worker security group.

    AWhy this is right: PostgreSQL uses TCP 5432 by default, and the source security group restricts access to associated worker interfaces.

    BWhy not this: An outbound database rule does not authorize connections initiated by the workers.

    CWhy not this: A subnet CIDR permits other resources in the subnet, not just resources associated with the worker security group.

    DWhy not this: TCP 443 is normally used for HTTPS, not the database's PostgreSQL listener.

    An inbound rule referencing the worker security group permits PostgreSQL connections from network interfaces associated with that group. Allowing the entire subnet would also permit connections from other resources in that subnet.

    Open this question
  2. Question 2

    Data Security and Governance

    Which IAM resource lets an administrator assign the same permissions to several IAM users and manage their membership centrally?

    Show the answer

    Correct answerB. IAM group

    AWhy not this: A VPC endpoint provides private connectivity to supported services, not IAM user membership.

    BWhy this is right: A group contains IAM users and grants its members the permissions defined by its attached policies.

    CWhy not this: A service-linked role allows an AWS service to perform actions on a customer's behalf.

    DWhy not this: A role provides permissions through assumption, rather than through membership in a collection of IAM users.

    An IAM group collects IAM users so that attached policies grant permissions to its members. An IAM role is assumed to obtain temporary credentials; it does not maintain user membership.

    Open this question
  3. Question 3

    Data Security and Governance

    An application retrieves an RDS PostgreSQL password from AWS Secrets Manager and briefly caches it. New connections must succeed with the previously retrieved credentials while rotation updates and tests replacement credentials. Which rotation strategy meets this requirement?

    Show the answer

    Correct answerC. Use alternating-users rotation with a separate elevated-privilege secret.

    AWhy not this: KMS key rotation changes encryption key material, not the database credentials or their validity during password rotation.

    BWhy not this: A longer interval reduces rotation frequency but does not prevent cached passwords from failing during single-user rotation.

    CWhy this is right: Alternating users preserves the current user's credentials while an elevated account updates and tests the other user's password.

    DWhy not this: Longer caching increases exposure to stale passwords when single-user rotation changes the database password.

    Alternating-users rotation updates the inactive database user while the current user's credentials remain valid, reducing disruption during rotation. Single-user rotation changes the same user's password, so cached credentials can fail for new connections.

    Open this question
  4. Question 4

    Data Security and Governance

    An application's role has no S3 permissions and needs only to download objects under s3://company-data/exports/. An AWS managed read-only policy allows broader access; which custom policy should replace it?

    Show the answer

    Correct answerB. Allow s3:GetObject on arn:aws:s3:::company-data/exports/*

    AWhy not this: GetObject requires an object ARN; the bucket ARN does not identify the objects.

    BWhy this is right: The action permits downloads, and the object ARN limits access to the exports prefix.

    CWhy not this: ListBucket permits listing object keys, not downloading object contents.

    DWhy not this: The object ARN permits downloads from every prefix in the bucket.

    GetObject requires an object ARN, and the exports/* suffix restricts downloads to the required prefix. Using company-data/* would permit downloads throughout the bucket.

    Open this question
  5. Question 5

    Data Security and Governance

    Which AWS service stores database credentials and provides managed rotation for supported Amazon RDS databases?

    Show the answer

    Correct answerD. AWS Secrets Manager

    AWhy not this: AWS Certificate Manager manages certificates rather than database passwords.

    BWhy not this: Parameter Store supports encrypted secret values but does not provide built-in database credential rotation.

    CWhy not this: AWS KMS manages cryptographic keys rather than database credentials and their rotation.

    DWhy this is right: Secrets Manager stores database credentials and supports managed rotation for supported RDS databases.

    Secrets Manager stores credentials and supports managed rotation for supported RDS databases. Parameter Store can store encrypted credentials but does not provide built-in database credential rotation.

    Open this question
  6. Question 6

    Data Security and Governance

    An Amazon Redshift role, reporting_reader, has USAGE on the analytics schema and SELECT on its existing tables. Only loader_user creates new tables there, and readers must automatically receive SELECT on those tables; what should an administrator configure?

    Show the answer

    Correct answerA. Set loader_user's default privileges to grant reporting_reader SELECT on future analytics tables.

    AWhy this is right: The defaults apply to future tables created by loader_user and automatically grant SELECT to reporting_reader.

    BWhy not this: CREATE permits creating objects in the schema; it does not grant SELECT on tables created by another user.

    CWhy not this: Grants on existing tables do not automatically extend to tables created later.

    DWhy not this: These defaults would affect objects created by reporting_reader, not tables created by loader_user.

    Default privileges for loader_user determine grants on tables that loader_user creates in the future. Granting SELECT on all existing tables does not cover tables created later.

    Open this question
  7. Question 7

    Data Security and Governance

    An application encrypted a data key with a symmetric KMS key and the encryption context Dataset=Orders. After automatic key rotation, decryption with the same key ARN and unchanged permissions fails with InvalidCiphertextException when the application supplies Dataset=orders. What should the engineer do?

    Show the answer

    Correct answerC. Supply Dataset=Orders when decrypting the data key.

    AWhy not this: AWS KMS automatically selects the retained key material needed to decrypt existing ciphertext.

    BWhy not this: Disabling rotation does not change the context required to decrypt existing ciphertext.

    CWhy this is right: Encryption context is case-sensitive and must match the context used during encryption.

    DWhy not this: An additional decrypt grant does not correct an encryption-context mismatch.

    AWS KMS requires the encryption context supplied for decryption to match the original context exactly, including case. Automatic rotation retains previous key material, and KMS selects the appropriate material without caller intervention.

    Open this question
  8. Question 8

    Data Security and Governance

    Account A owns an S3 bucket and the customer managed KMS key encrypting its objects. A role in account B needs direct read access; no applicable policies currently allow access, and no explicit denies exist. Which policy changes are required? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. Allow the role s3:GetObject in the bucket policy.B. Allow the role kms:Decrypt in the KMS key policy.D. Allow s3:GetObject on the objects in the role's IAM policy.E. Allow kms:Decrypt on the key in the role's IAM policy.

    AWhy this is right: The bucket policy must authorize the external role to read the objects.

    BWhy this is right: The key policy must authorize cross-account use of the key for decryption.

    CWhy not this: A Bucket Key lowers the number of KMS requests S3 makes; it does not authorize any caller to use the key.

    DWhy this is right: The caller's account must authorize the role to perform s3:GetObject on the objects.

    EWhy this is right: The external role also needs IAM permission to decrypt with the specified KMS key.

    FWhy not this: Generating a data key is not required to decrypt and read existing S3 objects.

    Direct cross-account reads require S3 authorization in both accounts and KMS authorization through the key policy and the caller's IAM policy. kms:GenerateDataKey supports encryption operations and is not required to read existing objects, and an S3 Bucket Key reduces calls to AWS KMS but grants no permissions.

    Open this question
  9. Question 9

    Data Security and Governance

    Which configuration encrypts data in transit between a JDBC client and Amazon Redshift?

    Show the answer

    Correct answerD. Require TLS for the JDBC connection.

    AWhy not this: Snapshot encryption protects stored backups rather than traffic on the client connection.

    BWhy not this: IAM authentication verifies identity but does not itself require an encrypted transport.

    CWhy not this: Cluster encryption protects stored data rather than traffic on the client connection.

    DWhy this is right: TLS encrypts the network traffic exchanged by the client and Amazon Redshift.

    TLS encrypts data transmitted between the JDBC client and Amazon Redshift. KMS cluster encryption protects data at rest, not the client connection.

    Open this question
  10. Question 10

    Data Security and Governance

    Company policy requires replacing customer identifiers before sharing data with analysts while preserving joins across datasets. Authorized investigators must be able to recover the original identifiers through a controlled lookup. Which approach meets these requirements?

    Show the answer

    Correct answerD. Replace identifiers with consistent, randomly assigned tokens.

    AWhy not this: Irreversible hashing does not provide the required recovery through a controlled lookup.

    BWhy not this: Using one masking string destroys the distinctions needed to join records by customer.

    CWhy not this: File encryption protects storage but exposes the original identifiers when analysts decrypt the files.

    DWhy this is right: Consistent tokens preserve joins, while a protected mapping enables authorized recovery of original identifiers.

    Consistent tokenization preserves joins and supports authorized recovery through a protected token mapping. Irreversible hashing can preserve joins but does not provide the required controlled lookup of original identifiers.

    Open this question
  11. Question 11

    Data Security and Governance

    A consumer account creates an Amazon Redshift database from an authorized datashare using WITH PERMISSIONS. An analyst role has USAGE on the database and shared schema but cannot query a shared table. What should the administrator do?

    Show the answer

    Correct answerD. Grant SELECT on the shared table to the analyst role in the consumer database.

    AWhy not this: Datashare access is already authorized; this does not grant the consumer role permission to query the table.

    BWhy not this: Producer-side table grants to an IAM role do not supply the consumer database role's missing SELECT permission.

    CWhy not this: Lake Formation permissions do not govern queries against this directly shared Redshift table.

    DWhy this is right: The analyst role needs table-level SELECT in the consumer database because the database was created WITH PERMISSIONS.

    WITH PERMISSIONS enables granular consumer-side permissions, so the analyst role in the consumer database needs SELECT on the shared table. Producer-side grants do not replace permissions required in the consumer database.

    Open this question
  12. Question 12

    Data Security and Governance

    Which control can explicitly deny AWS Backup copies into vaults in disallowed Regions across AWS Organizations member accounts?

    Show the answer

    Correct answerD. A service control policy restricting destination backup vaults

    AWhy not this: CloudTrail records API activity but does not deny requests based on the destination Region.

    BWhy not this: Backup Audit Manager assesses and reports compliance rather than blocking backup copies.

    CWhy not this: A Config rule can identify noncompliance but does not itself block backup copy requests.

    DWhy this is right: An SCP can deny backup copy permissions for destination vault resources in disallowed Regions.

    A service control policy can explicitly deny backup copy permissions for destination vaults in disallowed Regions. AWS Config can detect noncompliant configurations, but detection alone does not prevent a copy.

    Open this question
  13. Question 13

    Data Security and Governance

    A company stores CSV files in Amazon S3 and governs access with AWS Lake Formation. It must locate proprietary customer identifiers with a fixed pattern and a nearby identifying keyword. What should the data engineer configure?

    Show the answer

    Correct answerD. A Macie job using a custom data identifier

    AWhy not this: Lake Formation tags support access control but do not inspect object contents to discover identifiers.

    BWhy not this: AWS Config evaluates resource configurations rather than searching CSV contents for sensitive values.

    CWhy not this: Managed data identifiers cover predefined data types, not the company's proprietary identifier format.

    DWhy this is right: A custom data identifier supports a matching pattern and contextual keywords for sensitive data discovery.

    A Macie custom data identifier can combine a regular expression with keywords to detect a proprietary identifier in S3 objects. Managed data identifiers detect predefined sensitive data types rather than an organization's custom format.

    Open this question
  14. Question 14

    Data Security and Governance

    An application sends its logs to Amazon CloudWatch Logs. An audit policy requires automatic expiration after 90 days without a custom deletion job. What should a data engineer configure?

    Show the answer

    Correct answerD. A 90-day retention policy on each application log group

    AWhy not this: Exporting copies events to S3 but does not expire the original CloudWatch Logs events.

    BWhy not this: Subscription filters forward matching events; they do not control retention.

    CWhy not this: A query time range limits search results but does not expire stored events.

    DWhy this is right: Log group retention policies provide automatic expiration after a specified period.

    A log group retention policy automatically expires log events after the configured period. A query time range only limits the events searched; it does not change how long logs are stored.

    Open this question
  15. Question 15

    Data Security and Governance

    Which AWS service can run Apache Spark jobs to process terabytes of audit logs stored in Amazon S3?

    Show the answer

    Correct answerB. Amazon EMR

    AWhy not this: CloudWatch Logs ingests, stores, and queries logs but does not execute Spark jobs.

    BWhy this is right: Amazon EMR supports Apache Spark for distributed processing of large datasets in S3.

    CWhy not this: EventBridge routes events between services rather than executing distributed Spark processing.

    DWhy not this: CloudTrail records account activity; it does not execute Spark processing jobs.

    Amazon EMR runs distributed processing frameworks such as Apache Spark for large-scale log processing. CloudWatch Logs stores and analyzes logs but does not run Apache Spark jobs.

    Open this question
  16. Question 16

    Data Security and Governance

    A company that already uses AWS CloudTrail Lake (closed to new customers since May 31, 2026) needs SQL audits of future management events across all accounts and Regions in its AWS organization. The audits must stay in its existing CloudTrail Lake environment with configurable retention, without managing S3 log storage, Athena tables or an ETL pipeline. What should the engineer create?

    Show the answer

    Correct answerA. Create an organization event data store with multi-Region management event collection.

    AWhy this is right: Organization scope, multi-Region collection, and management event selection satisfy all collection requirements.

    BWhy not this: Insights events describe unusual activity rather than providing the required management event audit record.

    CWhy not this: Multi-Region collection expands Region coverage, not coverage to other organization accounts.

    DWhy not this: Athena can query trail files, but this requires managing S3 log storage and Athena tables outside CloudTrail Lake, which the requirements rule out.

    An organization event data store can collect management events across organization accounts and Regions, retain them for a configurable period, and support SQL queries in CloudTrail Lake. An organization trail queried with Athena also supports SQL, but it requires managing S3 log storage and Athena tables, which the requirements rule out.

    Open this question
  17. Question 17

    Data Security and Governance

    Application logs already reside in CloudWatch Logs. An engineer needs an immediate, one-time count of errors by application during the last hour without copying logs or provisioning infrastructure. Which approach is BEST?

    Show the answer

    Correct answerD. Run a CloudWatch Logs Insights query with aggregation.

    AWhy not this: Redshift requires loading the logs into a warehouse rather than querying them in place.

    BWhy not this: Athena is suitable for S3 logs, but exporting adds data movement and delay.

    CWhy not this: OpenSearch supports log analysis, but indexing copies the logs into another system.

    DWhy this is right: Logs Insights filters and aggregates existing CloudWatch Logs events without a separate data pipeline.

    CloudWatch Logs Insights queries existing log groups directly and supports filtering and aggregation over a selected time range. Athena can analyze logs in S3, but exporting these logs adds an unnecessary data movement step.

    Open this question
  18. Question 18

    Data Security and Governance

    An audit trail records management events across all AWS Regions, but investigators cannot find the identities that deleted objects from a sensitive S3 bucket. What should a data engineer configure to capture future deletions while minimizing additional event collection?

    Show the answer

    Correct answerD. Enable S3 object-level write data events for the bucket.

    AWhy not this: A new delivery destination does not enable event categories missing from the trail.

    BWhy not this: Object deletions are data events, not read-only management events.

    CWhy not this: Insights identifies unusual API activity; it does not replace collection of S3 object-level data events.

    DWhy this is right: Write data events capture object deletions, and selecting the bucket limits collection to the required scope.

    S3 object deletions are object-level data events, so the trail must select write data events for the relevant bucket. Delivering the existing trail to CloudWatch Logs changes the destination, not which API events are captured.

    Open this question
  19. Question 19

    Data Security and Governance

    A Lambda function needs to read objects from one S3 bucket without storing access keys. Which configuration should a data engineer use?

    Show the answer

    Correct answerC. An execution role that trusts Lambda and permits reads from the bucket

    AWhy not this: Trusting Amazon S3 does not let Lambda assume the role to make outbound S3 API calls.

    BWhy not this: IAM groups contain IAM users, not Lambda functions, and cannot provide workload credentials.

    CWhy this is right: Lambda assumes the execution role and uses temporary credentials to read the permitted objects.

    DWhy not this: Storing an IAM user's access keys still uses long-term credentials rather than a Lambda execution role.

    Lambda assumes its execution role to obtain temporary credentials for permitted AWS API calls. IAM groups cannot contain Lambda functions and do not provide credentials to workloads.

    Open this question
  20. Question 20

    Data Security and Governance

    A team is comparing standard Amazon RDS for PostgreSQL with PostgreSQL on Amazon EC2; its authentication agent requires root access to the database host. The team must also maintain database-user grants. Which conclusions are valid? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersE. EC2 supports the agent, but the team must patch the guest operating system.F. RDS manages the underlying operating system, but the team still manages database-user grants.

    AWhy not this: With EC2, the customer—not AWS—is responsible for patching the guest operating system.

    BWhy not this: Security groups filter network traffic; they do not implement a host agent's authentication behavior.

    CWhy not this: RDS does not transfer administration of application database users and their grants to AWS.

    DWhy not this: Standard RDS does not provide root access to its underlying operating system for installing arbitrary agents.

    EWhy this is right: Self-managed PostgreSQL on EC2 permits host agents, with guest operating system patching retained by the customer.

    FWhy this is right: RDS removes underlying OS administration without removing the customer's responsibility for database-user permissions.

    EC2 provides host control but leaves guest OS maintenance to the customer. RDS manages the underlying OS while customers retain database access administration; it does not provide root access for arbitrary host agents.

    Open this question
  21. Question 21

    Data Security and Governance

    A company uses one Amazon SageMaker Unified Studio domain and wants a hierarchy for its business divisions, with delegated ownership and separate projects within each division. What should it create?

    Show the answer

    Correct answerB. A domain unit for each division

    AWhy not this: A single project provides a collaboration boundary, not a hierarchy of divisions containing separate projects.

    BWhy this is right: Domain units provide hierarchical organization and delegated ownership within a single domain.

    CWhy not this: IAM groups collect IAM users for permissions management; they do not establish the domain's organizational hierarchy.

    DWhy not this: Separate domains would violate the single-domain requirement and would not create a hierarchy within that domain.

    Domain units organize a domain into a hierarchy and enable delegated ownership, with projects organized within units. Projects provide collaboration spaces rather than the division-level hierarchy for delegated governance.

    Open this question
  22. Question 22

    Data Security and Governance

    Which policy controls which S3 resources callers can access through an S3 gateway VPC endpoint?

    Show the answer

    Correct answerD. VPC endpoint policy

    AWhy not this: A role trust policy controls who can assume a role, not resource access through a VPC endpoint.

    BWhy not this: A Secrets Manager resource policy controls access to a secret, not S3 requests through an endpoint.

    CWhy not this: Security group rules filter network traffic, not S3 resource permissions through a gateway endpoint.

    DWhy this is right: An endpoint policy restricts principals, actions, and resources for requests passing through the endpoint.

    A VPC endpoint policy limits access to resources through that endpoint; other applicable policies must also allow access. A role trust policy determines who can assume a role, not which S3 resources are accessible through an endpoint.

    Open this question
  23. Question 23

    Data Security and Governance

    Analysts query a Lake Formation–managed table through Amazon Athena and must see only rows where region is 'EU'. Their IAM permissions already allow Athena queries; what should an administrator configure?

    Show the answer

    Correct answerD. A Lake Formation data filter with a row-level SELECT grant

    AWhy not this: S3 bucket policies control object access, not individual rows within the objects.

    BWhy not this: IAM policy conditions do not evaluate individual column values in Athena query results.

    CWhy not this: An unrestricted table-level SELECT grant would expose rows from every region.

    DWhy this is right: A data filter can enforce a row predicate such as region = 'EU' for SELECT access.

    A Lake Formation data filter can restrict SELECT access to rows matching a predicate. An unrestricted table-level SELECT grant permits all rows rather than enforcing the regional restriction.

    Open this question
  24. Question 24

    Data Security and Governance

    A role needs only to start one existing AWS Glue job. Which custom policy permission follows least privilege?

    Show the answer

    Correct answerA. Allow glue:StartJobRun on that job's ARN

    AWhy this is right: It grants the required start action only for the specified job.

    BWhy not this: The resource scope permits starting jobs beyond the required job.

    CWhy not this: The action wildcard grants unnecessary permissions for the job.

    DWhy not this: GetJob retrieves job information but does not permit starting a job run.

    Least privilege limits both the action and the resource to what is required. Allowing all Glue actions on the specified job grants unnecessary capabilities even though the resource is restricted.

    Open this question
  25. Question 25

    Data Security and Governance

    Federated engineers may read Secrets Manager secrets only when both Project and Environment tags match their trusted session attributes, without adding roles or policy statements for new projects. Engineers must not alter those attributes or secret tags; which design meets these requirements?

    Show the answer

    Correct answerA. Compare both resource tags with trusted principal tags, and reserve tag changes for administrators.

    AWhy this is right: Both attributes are checked dynamically, and protected tags prevent engineers from changing their authorization scope.

    BWhy not this: Matching only Project permits access across environments within the same project.

    CWhy not this: Matching both tags is insufficient if engineers can assert arbitrary session attributes.

    DWhy not this: Separate roles can enforce isolation but require new roles as project and environment combinations grow.

    Attribute-based access control can require both resource tags to match trusted principal tags while administrative controls protect the authorization attributes. Allowing engineers to supply arbitrary session tags would let them claim another project's access.

    Open this question
  26. Question 26

    Data Security and Governance

    AWS Config continuously recorded an S3 bucket throughout a retained audit period. Auditors need historical resource states rather than API activity. Which actions can provide relevant evidence? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersC. Review the bucket's resource timeline in AWS Config.D. Inspect configuration history files delivered to Amazon S3.E. Compare recorded configuration items from different times.

    AWhy not this: CloudTrail records API activity and caller details, not complete resource-state snapshots.

    BWhy not this: AWS Config advanced queries query current configuration state, not historical configurations.

    CWhy this is right: The resource timeline exposes recorded configuration changes during the retained period.

    DWhy this is right: Delivered configuration history files contain recorded configuration items for historical review.

    EWhy this is right: Configuration items capture resource states at specific times, allowing historical comparison.

    AWS Config resource timelines, recorded configuration items, and delivered configuration history show historical resource states. Advanced queries target current configuration data, while CloudTrail records API activity rather than complete resource-state snapshots.

    Open this question
  27. Question 27

    Data Security and Governance

    Which governance model lets business domains own data products while applying shared organization-wide standards?

    Show the answer

    Correct answerC. Federated data governance

    AWhy not this: Centralized ownership places responsibility with a central team rather than individual business domains.

    BWhy not this: Independent governance does not require domains to follow shared organization-wide standards.

    CWhy this is right: Federated governance balances domain accountability with common organizational policies.

    DWhy not this: Unrestricted sharing lacks the common policies and controls required for governed data products.

    Federated data governance combines domain ownership with shared standards and policies. Independent domain governance leaves standards to individual domains rather than providing consistent organization-wide controls.

    Open this question
  28. Question 28

    Data Security and Governance

    A company requires customer data, including disaster recovery copies, to remain within Germany. Its primary workload runs in the Europe (Frankfurt) Region. Which recovery design meets this requirement?

    Show the answer

    Correct answerD. Keep recovery copies in Frankfurt across Availability Zones.

    AWhy not this: London is outside Germany; private networking does not satisfy a national residency boundary.

    BWhy not this: Ireland is outside Germany; customer-managed encryption does not change the storage location.

    CWhy not this: A European location is not necessarily within Germany, even when the copies are encrypted.

    DWhy this is right: Frankfurt Availability Zones remain within the permitted geographic location.

    Keeping recovery copies in Frankfurt across Availability Zones preserves the required national boundary. Encryption protects confidentiality but does not make storage outside Germany compliant with the location requirement.

    Open this question
  29. Question 29

    Data Security and Governance

    An analytics team uses an Amazon SageMaker Catalog project and discovers a published dataset owned by another project. Which action should the team take to obtain governed access?

    Show the answer

    Correct answerD. Submit a subscription request from the consumer project.

    AWhy not this: Business glossary terms describe business meaning rather than authorize data access.

    BWhy not this: An additional metadata listing does not grant permission to read the underlying dataset.

    CWhy not this: Adding the owner to the consumer project does not authorize the consumer project to access the dataset.

    DWhy this is right: A subscription request allows the owner to review and approve the consumer project's requested access.

    A subscription request initiates the governed workflow for a consumer project to obtain access to a published asset. Publishing metadata makes an asset discoverable but does not itself authorize access to its underlying data.

    Open this question
  30. Question 30

    Data Security and Governance

    A custom Secrets Manager rotation Lambda creates an AWSPENDING password for a database user, but its remaining rotation steps are unimplemented. What must those steps do before moving AWSCURRENT to the new version? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Test database authentication with the pending credentials.D. Set the database user's password to the pending value.

    AWhy this is right: Successful database authentication validates the replacement credentials before they become current.

    BWhy not this: Rotation promotes the new version by moving staging labels, rather than copying its value into the current version.

    CWhy not this: Retrieving the value does not verify that the password was applied to the database or works for authentication.

    DWhy this is right: The database password must match the pending secret so the new credentials can authenticate.

    The setSecret step applies the pending password to the database, and testSecret validates that the credentials work before finishSecret moves AWSCURRENT. Reading the pending secret proves retrieval works, not that the database accepts the password.

    Open this question
  31. Question 31

    Data Security and Governance

    An EC2 ingestion instance has two security groups: one allows inbound SSH from a corporate CIDR, and the other allows inbound SSH from 0.0.0.0/0. Network ACLs allow the traffic. Which change restricts new SSH connections to the corporate CIDR?

    Show the answer

    Correct answerD. Remove the public SSH rule from the second security group.

    AWhy not this: Security groups are stateful; outbound SSH rules do not control incoming SSH connections.

    BWhy not this: An additional restrictive allow rule does not override a broader allow rule in another attached security group.

    CWhy not this: Security groups support allow rules, not explicit deny rules.

    DWhy this is right: Removing the public allow rule leaves the corporate CIDR as the only allowed SSH source.

    Rules from all attached security groups are combined, so removing the public allow rule leaves only corporate SSH access. Adding another corporate allow rule does not override the existing public allow rule.

    Open this question
  32. Question 32

    Data Security and Governance

    Which component of an IAM role specifies the principals that can assume the role?

    Show the answer

    Correct answerD. Trust policy

    AWhy not this: A session policy restricts permissions for a particular assumed-role session.

    BWhy not this: A permissions policy grants actions on resources; it does not define which principals can assume the role.

    CWhy not this: A permissions boundary limits the permissions that identity-based policies can grant.

    DWhy this is right: A trust policy identifies the principals trusted to assume the role, subject to its conditions.

    A role's trust policy identifies the principals allowed to assume it and any applicable conditions. A permissions policy instead defines what actions the assumed role can perform.

    Open this question
  33. Question 33

    Data Security and Governance

    Which AWS Systems Manager Parameter Store parameter type encrypts a stored database password with AWS KMS?

    Show the answer

    Correct answerA. SecureString

    AWhy this is right: SecureString uses AWS KMS to encrypt sensitive parameter values.

    BWhy not this: The advanced tier does not change a String parameter into a SecureString parameter.

    CWhy not this: String stores a plain-text parameter value rather than a KMS-encrypted secret.

    DWhy not this: StringList stores comma-separated values, not an encrypted credential.

    SecureString encrypts sensitive parameter values with AWS KMS. The advanced tier adds capabilities such as larger values and parameter policies, but choosing that tier does not make a String an encrypted secret.

    Open this question
  34. Question 34

    Data Security and Governance

    Several application roles need the same permissions, but available AWS managed policies grant excessive access. An administrator must define narrower permissions and maintain them centrally; what should the administrator do?

    Show the answer

    Correct answerD. Create a customer managed policy and attach it to the roles.

    AWhy not this: Inline policies belong to individual identities, so separate copies do not provide centralized maintenance.

    BWhy not this: Customers cannot modify AWS managed policies; AWS controls their contents.

    CWhy not this: A permissions boundary limits permissions granted by other policies; it does not grant permissions itself.

    DWhy this is right: A customer managed policy defines custom permissions and can be updated centrally for all attached roles.

    A customer managed policy supports custom permissions and centralized updates across attached roles. Inline policies can define the same permissions, but each role's copy must be maintained separately.

    Open this question
  35. Question 35

    Data Security and Governance

    An Amazon Redshift team lead already has USAGE on the reporting schema and must delegate SELECT on its sales table directly to database users, without assigning roles. Which grant provides the required authority without permitting data changes?

    Show the answer

    Correct answerA. Grant SELECT on sales to the lead WITH GRANT OPTION.

    AWhy this is right: SELECT WITH GRANT OPTION permits reading the table and granting SELECT directly to other database users.

    BWhy not this: WITH ADMIN OPTION permits delegating role membership, which does not meet the direct table-grant requirement.

    CWhy not this: Delegating schema USAGE does not authorize delegating SELECT on a table within that schema.

    DWhy not this: SELECT permits reading the table but does not authorize granting SELECT to other users.

    SELECT WITH GRANT OPTION lets the lead read the table and grant that privilege directly to other users without allowing data changes. WITH ADMIN OPTION delegates role membership management, not direct table privilege grants.

    Open this question
  36. Question 36

    Data Security and Governance

    An application must encrypt 100 MB files locally using a unique data key per file, protected by a symmetric KMS key. It must retain enough information to decrypt each file later without persisting plaintext keys. Which approach meets these requirements?

    Show the answer

    Correct answerD. Call GenerateDataKey, encrypt locally, store the encrypted data key, and discard the plaintext key

    AWhy not this: The returned ciphertext must first be decrypted through KMS; it is not usable as the intended plaintext data key.

    BWhy not this: Storing the random key beside the file persists plaintext key material and does not protect it with the KMS key.

    CWhy not this: Direct encryption with a symmetric KMS key accepts at most 4,096 bytes, not a 100 MB file.

    DWhy this is right: The plaintext key enables local encryption, while the encrypted copy supports later recovery through KMS.

    GenerateDataKey returns plaintext key material for local encryption and an encrypted copy to retain with the file. GenerateDataKeyWithoutPlaintext returns no plaintext key for immediate local use; its ciphertext is not the data key itself.

    Open this question
  37. Question 37

    Data Security and Governance

    Which approach encrypts file contents on the sending host before an upload to Amazon S3 begins?

    Show the answer

    Correct answerC. Client-side encryption of the file

    AWhy not this: HTTPS encrypts the transport connection rather than encrypting the file before upload begins.

    BWhy not this: SSE-KMS provides server-side encryption, not encryption of the file on the sending host.

    CWhy this is right: Client-side encryption transforms the file into ciphertext on the sending host before transmission.

    DWhy not this: SSE-S3 encrypts data on the service side after S3 receives it.

    Client-side encryption encrypts file contents before they leave the sending host. HTTPS protects the connection, while S3 server-side encryption encrypts data after S3 receives it.

    Open this question
  38. Question 38

    Data Security and Governance

    A company must share a manual Amazon RDS DB snapshot with another AWS account. The snapshot is encrypted with the AWS managed key aws/rds. Which action enables encrypted snapshot sharing?

    Show the answer

    Correct answerB. Copy the snapshot using a customer managed key and authorize the recipient to use that key

    AWhy not this: Matching aliases in different accounts do not identify the same key or provide decryption permissions.

    BWhy this is right: A copy encrypted with a customer managed key can be shared when the recipient also has the required key permissions.

    CWhy not this: Rotation does not change the cross-account sharing restrictions of an AWS managed key.

    DWhy not this: Customers cannot modify the AWS managed key policy to authorize another account.

    An RDS snapshot encrypted with the default AWS managed key cannot be shared. Copy it using a customer managed key and grant the recipient appropriate key access; the aws/rds key policy cannot be edited to permit cross-account use.

    Open this question
  39. Question 39

    Data Security and Governance

    Company policy allows analysts to see only the last four digits of customer phone numbers in exported records. Which transformation should an AWS Glue job apply?

    Show the answer

    Correct answerC. Replace the leading digits with asterisks

    AWhy not this: Hashing the entire number does not retain the last four digits in readable form.

    BWhy not this: Removing the column also removes the digits analysts are permitted to see.

    CWhy this is right: Partial masking conceals the leading digits while leaving the last four available to analysts.

    DWhy not this: Encryption produces ciphertext, not a representation showing only the permitted digits.

    Partial masking hides the restricted digits while retaining the permitted last four digits. Hashing the complete number does not preserve those visible digits.

    Open this question
  40. Question 40

    Data Security and Governance

    An existing AWS CloudTrail Lake customer has an event data store collecting current events and older trail logs in S3 that fall within its retention period. Auditors need SQL queries spanning both periods in that store, without a separate query engine or changes to future collection; what should the engineer do?

    Show the answer

    Correct answerD. Copy the historical trail events from S3 into the existing event data store.

    AWhy not this: Event selectors control event collection; expanding them does not import previously delivered S3 logs.

    BWhy not this: Changing future trail delivery does not make previously delivered events available in the Lake event data store.

    CWhy not this: Federation enables external querying of Lake data; it does not import historical S3 trail files into the existing store.

    DWhy this is right: Copying trail events imports eligible historical records into the store so Lake SQL can query both periods.

    CloudTrail Lake can copy historical trail events from S3 into an event data store, making them queryable alongside events already collected there. Changing event selectors affects collection going forward; it does not backfill historical events.

    Open this question
  41. Question 41

    Data Security and Governance

    Which service can receive a CloudWatch Logs subscription stream and deliver buffered application log records to Amazon S3?

    Show the answer

    Correct answerC. Amazon Data Firehose

    AWhy not this: Athena analyzes stored data rather than receiving and delivering CloudWatch Logs subscription records.

    BWhy not this: The Glue Data Catalog stores metadata describing datasets, not streamed application log records.

    CWhy this is right: Data Firehose supports CloudWatch Logs subscriptions and buffered delivery to S3.

    DWhy not this: CloudTrail records supported activity events; it is not a delivery destination for application log subscription streams.

    Amazon Data Firehose can receive records through a CloudWatch Logs subscription and deliver them to S3. Athena queries stored data; it does not receive subscription streams or deliver their records.

    Open this question
  42. Question 42

    Data Security and Governance

    An application writes audit messages to local files on several EC2 instances. The team needs to store these messages centrally in CloudWatch Logs while keeping each instance's records distinguishable. What should the engineer configure?

    Show the answer

    Correct answerA. A CloudWatch agent configuration using a shared log group and instance-specific log streams.

    AWhy this is right: The agent collects the files, and instance-specific log streams preserve the source identity within a shared log group.

    BWhy not this: Logs Insights queries logs already ingested into CloudWatch Logs; it does not collect files from EC2 instances.

    CWhy not this: Detailed monitoring publishes EC2 metrics; it does not upload application log files.

    DWhy not this: CloudTrail captures supported API activity rather than collecting the application's local log files.

    The CloudWatch agent can collect local application log files into a shared log group with separate streams for each instance. CloudTrail records supported AWS API activity, not arbitrary application messages written to local files.

    Open this question
  43. Question 43

    Data Security and Governance

    A company delivers CloudTrail API activity logs to Amazon S3 with SSE-KMS encryption. Auditors also need to detect whether delivered log files were modified or deleted. What should the engineer do?

    Show the answer

    Correct answerD. Enable CloudTrail log file integrity validation and validate the digest chain.

    AWhy not this: Access logs record requests to the bucket; they do not cryptographically verify the integrity of delivered CloudTrail files.

    BWhy not this: Version histories can aid recovery and investigation but do not provide signed verification of CloudTrail log integrity.

    CWhy not this: CloudTrail Insights identifies unusual API activity, not changes to delivered log files.

    DWhy this is right: Signed digest files and their chain allow validation to detect modified or missing CloudTrail log files.

    CloudTrail log file integrity validation produces signed digest files that support detecting changes or deletions when validated. S3 Versioning preserves object versions but does not provide CloudTrail's cryptographic integrity verification.

    Open this question
  44. Question 44

    Data Security and Governance

    A team keeps audit logs in S3 for occasional SQL analysis and needs interactive full-text searches and dashboards over a separately indexed copy. Which approaches meet these needs? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. Use Amazon OpenSearch Service to index logs for searches and dashboards.D. Use Athena with a table describing the S3 log data.

    AWhy not this: CloudTrail event history covers recent management events, not arbitrary application log datasets in S3.

    BWhy this is right: OpenSearch Service indexes log data for interactive searches and visualization through dashboards.

    CWhy not this: CloudWatch Logs Insights queries CloudWatch Logs log groups, not arbitrary S3 objects directly.

    DWhy this is right: Athena queries S3 log data with SQL using a table that describes the data's schema and location.

    Athena supports SQL analysis of logs in S3, while OpenSearch Service supports indexed full-text searches and dashboards. CloudWatch Logs Insights analyzes logs in CloudWatch Logs rather than directly querying arbitrary S3 objects.

    Open this question
  45. Question 45

    Data Security and Governance

    An S3 replication role must not replicate objects into buckets in disallowed Regions. Which control directly prevents those writes?

    Show the answer

    Correct answerB. Deny replication writes to disallowed destination buckets.

    AWhy not this: Configuration recording provides evidence of changes but does not prevent replication writes.

    BWhy this is right: An explicit deny blocks the replication role from writing objects to prohibited destination buckets.

    CWhy not this: Macie detects sensitive content; it does not block replication to particular destinations.

    DWhy not this: Encryption protects object confidentiality but does not enforce permitted replication locations.

    An explicit deny on replication writes to disallowed destination buckets prevents the replication role from copying objects there. AWS Config can record configuration changes, but recording alone does not block replication.

    Open this question
  46. Question 46

    Data Security and Governance

    A producer has added tables to an Amazon Redshift datashare for another AWS account, but the consumer cannot associate it with a namespace. Which producer-side actions are required to enable the association? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Authorize the datashare for the consumer account.D. Grant datashare USAGE to the consumer account.

    AWhy this is right: Cross-account authorization permits the consumer account to associate the datashare with its namespaces.

    BWhy not this: Lake Formation grants do not authorize direct Redshift datashare associations.

    CWhy not this: Producer-table SELECT permissions do not authorize a consumer account to associate a datashare.

    DWhy this is right: Datashare USAGE identifies the consumer account that may access the shared data.

    Cross-account Redshift sharing requires granting datashare USAGE to the consumer account and authorizing that account to access the datashare. Producer-table SELECT grants do not replace these cross-account sharing permissions.

    Open this question
  47. Question 47

    Data Security and Governance

    A company governs S3 datasets with AWS Lake Formation and needs to discover files containing credit card numbers. Which approach identifies the sensitive content?

    Show the answer

    Correct answerC. Run an Amazon Macie job using managed data identifiers.

    AWhy not this: A Glue crawler discovers schemas and metadata, not sensitive values through Macie managed data identifiers.

    BWhy not this: AWS Config records resource configurations rather than inspecting S3 object content for PII.

    CWhy this is right: Macie managed data identifiers detect supported sensitive data types, including credit card numbers.

    DWhy not this: Lake Formation tags describe resources for governance; applying them does not discover sensitive content.

    Amazon Macie inspects S3 object content and uses managed data identifiers to detect sensitive information such as credit card numbers. Lake Formation tags support access governance but do not inspect content to discover PII.

    Open this question
  48. Question 48

    Data Security and Governance

    A deployment team must let AWS CloudFormation provision resources without granting engineers direct permission to create those resources. Which configuration should the team use?

    Show the answer

    Correct answerC. Configure a CloudFormation service role that engineers can pass.

    AWhy not this: Storing access keys does not configure CloudFormation to assume a role for stack operations.

    BWhy not this: Group permissions would grant engineers direct resource-creation access rather than delegate provisioning to CloudFormation.

    CWhy this is right: CloudFormation assumes the service role, separating its provisioning permissions from the engineers' direct permissions.

    DWhy not this: Endpoint policies limit access through endpoints; they do not provide CloudFormation with provisioning credentials.

    CloudFormation assumes a service role to provision resources using that role's permissions; engineers need permission to pass it when configuring the stack. An IAM group granting resource-creation permissions would give engineers the direct access the requirement excludes.

    Open this question
  49. Question 49

    Data Security and Governance

    Analysts already belong to an Amazon SageMaker Unified Studio domain. A subset needs a shared workspace for a data initiative, with its own members and collaboration resources; what should an administrator create?

    Show the answer

    Correct answerC. A project for the initiative

    AWhy not this: A domain unit organizes projects and governance rather than providing the initiative's collaboration workspace.

    BWhy not this: An IAM group manages permissions for IAM users but does not create a Unified Studio collaboration workspace.

    CWhy this is right: A project groups members and resources for collaboration on a specific initiative.

    DWhy not this: A domain provides the broader organizational environment; a separate domain is unnecessary for an initiative within the existing domain.

    A project provides a collaboration workspace with membership and resources for an initiative within a SageMaker Unified Studio domain. A domain unit organizes projects and delegates governance rather than serving as the team's working project.

    Open this question
  50. Question 50

    Data Security and Governance

    Which policy attaches directly to an S3 Access Point to control requests made through that access point?

    Show the answer

    Correct answerC. An S3 Access Point policy

    AWhy not this: A permissions boundary limits an IAM identity's maximum permissions and does not attach to an access point.

    BWhy not this: A trust policy identifies who can assume an IAM role, not who can access an S3 Access Point.

    CWhy this is right: An access point policy attaches to the access point and controls requests made through it.

    DWhy not this: An endpoint policy controls access through a VPC endpoint and is attached to that endpoint.

    An S3 Access Point policy is a resource-based policy controlling access through that access point. A VPC endpoint policy instead controls requests through a VPC endpoint, not the access point itself.

    Open this question