# AWS Data Lake Security: Architecture and Best Practices

> Learn how to secure AWS data lakes using IAM, AWS Lake Formation, Amazon S3 encryption, access controls, monitoring, and compliance best practices.

- Canonical URL: https://www.puppygraph.com/learn/aws-data-lake-security
- Published: 2026-11-27
- Author: Hao Wu

Securing an AWS data lake requires controlling every route to its data. A table permission can restrict an analyst's query while a separate storage permission still lets that analyst download the underlying files. Query results, transformation outputs, and administrative roles introduce additional paths that need their own controls.

This guide follows those paths through identity, storage, encryption, governance, and monitoring. A hypothetical retail lake provides a running example: engineers process customer and order records, analysts query approved datasets, and security teams investigate how identities and derived data connect.

## What Is AWS Data Lake Security?

AWS data lake security is the combination of policies, technical controls, and operating practices that protect data throughout ingestion, storage, processing, sharing, and deletion. It covers confidentiality, integrity, and availability across the lake's objects, metadata, compute services, and outputs.

For an S3-based lake, the responsibilities span several services. IAM controls access to AWS actions and resources. S3 policies protect objects. Lake Formation manages permissions on catalog resources and data accessed through supported integrations. KMS controls the use of encryption keys. Logging and detection services provide evidence of configuration changes and activity.

Under the [AWS shared responsibility model](https://aws.amazon.com/compliance/shared-responsibility-model/), AWS protects the underlying cloud infrastructure, while customers remain responsible for their data, permissions, and service configuration. Selecting managed services does not decide who should see customer addresses or how long an exported report should survive.

In the retail example, `customer_contact` contains restricted personal information, `orders_raw` holds incoming transactions, and `orders_curated` supports reporting. Security must preserve the intended boundaries as jobs transform these datasets and users produce new results.

## How Does AWS Data Lake Security Work?

Start with a particular request: an analyst using the `analyst-eu` role submits an Athena query against `orders_curated`.

AWS evaluates the caller's permissions for the requested service actions. Relevant identity policies, resource policies, and organizational controls influence the decision. An applicable explicit deny overrides an allow; an isolated policy statement is therefore insufficient evidence of effective access. AWS documents these interactions in its [policy evaluation logic](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html).

For a Lake Formation governed access path, the integrated engine obtains the required catalog information and data authorization. Lake Formation can supply temporary credentials using the role associated with the registered S3 location. The relevant reader or service role also needs the permissions required to use encrypted objects. The analyst does not necessarily need direct S3 permissions on those source files. See AWS's explanation of [underlying data access](https://docs.aws.amazon.com/lake-formation/latest/dg/access-control-underlying-data.html).

The output creates another security boundary. When Athena writes results to a customer-owned S3 location, Lake Formation permissions on source tables do not protect those result files. Configure their storage permissions separately and align workgroup access with the intended audience, as AWS's [Athena security considerations](https://docs.aws.amazon.com/athena/latest/ug/lf-athena-limitations.html) explain.

For each workload, record the caller, execution identity, source, authorization mechanism, and output destination. That inventory gives engineers a practical way to review both intended access and alternate routes.

## AWS Data Lake Security Architecture

Organize the architecture around data sensitivity and responsibility. Raw ingestion, curated analytics, and query outputs often need different permissions, even when they belong to one business domain. Separate accounts or buckets can provide stronger administrative boundaries; prefixes provide useful organization but require policies that enforce the intended separation.

| **Layer** | **Responsibility** | **Retail example** |
| --- | --- | --- |
| Identity | Separate human, workload, and administrative access | `analyst-eu` queries; `pipeline-curation` transforms |
| Storage | Control reads, writes, deletion, and ownership | Restrict raw customer records and result objects separately |
| Catalog and governance | Describe datasets and grant appropriate table access | Expose approved columns of `orders_curated` |
| Compute and network | Constrain execution roles and network paths | Keep processing workloads on approved private paths |
| Evidence | Preserve activity, classifications, and lineage | Connect a read event to a session and dataset owner |

For private lake buckets, enable [S3 Block Public Access](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html) at the appropriate account and bucket levels. Prefer [Bucket owner enforced Object Ownership](https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html), which disables ACLs and makes policy-based access management the consistent mechanism. These controls still need least-privilege policies for authenticated users and services.

![AWS data lake access paths for source tables, S3 objects, KMS keys, and query results](https://o6xswp5m6ilbks2z.public.blob.vercel-storage.com/uploads/ab8e18ef4ebebeddc0b3152c/9bd933fb-c08f-4472-9cba-7f070ca863e7/hao-wu-20261127-69e151f094ec666c4c1e7ad1.png)

Figure: Review direct S3 access, KMS key use, and query-result storage separately from source-table grants. PuppyGraph supports investigation over collected evidence; AWS services enforce access.

Security teams can use [PuppyGraph](https://www.puppygraph.com/) to follow relationships among collected identity, dataset, and access-event records. It is a data engine for building AI agents over existing SQL databases, warehouses, and data lakes, including direct reads of Iceberg and Delta Lake tables. Its distributed graph engine is built for petabytes of data and subsecond traversal, helping agents work across 3,000 tables with no data movement into a separate graph database. Teams map tables to nodes and edges, query them with openCypher or Gremlin, and retain SQL access to the same source tables.

![PuppyGraph queries data in place across connected sources](https://o6xswp5m6ilbks2z.public.blob.vercel-storage.com/uploads/ab8e18ef4ebebeddc0b3152c/aded2bba-e0ed-4d9e-80f8-3f962ba76c58/hao-wu-20261127-4b2587a755bbd5c9068284ee.png)

Figure: PuppyGraph queries the existing tables in place, so graph and SQL queries share one copy of the data and no pipeline keeps a graph copy in sync.

Place this investigation capability alongside the AWS controls. Its source credentials and returned results need explicit protection, just as those of any other query engine do.

## Identity Management for AWS Data Lakes

Use federation for human access and temporary credentials for workloads. [AWS IAM best practices](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html) recommend federated identities, IAM roles, multi-factor authentication, and permissions narrowed to actual requirements. [IAM Identity Center](https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html) can provide a central access path for workforce users; processing jobs should use dedicated execution roles.

**Separate roles by work performed.** The `pipeline-curation` role might read selected raw locations and write curated outputs. The `analyst-eu` role should receive the query and data permissions its reporting tasks require. Neither role needs permission to redesign its own trust policy or administer every encryption key.

**Review who can obtain a role.** A role's permissions describe what it can do; its trust policy helps determine who can assume it. Review both, including cross-account principals and conditions. Also restrict the ability to [pass powerful roles to services](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html), since launching a job under a privileged execution identity can expose data indirectly.

**Use organizational guardrails deliberately.** [Service control policies](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html) constrain permissions within their scope; they do not grant access. Maintain a documented emergency-access process and test ordinary workflows after policy changes. A guardrail that unexpectedly prevents ingestion or recovery becomes an operational security problem.

Use IAM Access Analyzer during policy development and access reviews. Combine its findings with ownership records and workload requirements: lack of recent activity is useful evidence, but a quarterly recovery job may legitimately remain idle between tests.

## Data Encryption at Rest and in Transit

Amazon S3 automatically encrypts new object uploads with server-side encryption. SSE-S3 is the baseline; choose SSE-KMS with customer-managed keys when you need explicit control over key policies, lifecycle, and permitted use. [S3's encryption documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/default-bucket-encryption.html) also makes an important distinction: changing bucket default encryption does not re-encrypt existing objects.

For a migration to a required KMS key, inventory existing objects and plan their re-encryption separately. Validate new writes as well. A bucket default determines encryption when a request does not specify it; a writer can supply encryption settings explicitly, so use an appropriate bucket policy when a particular method or key is mandatory.

Key permissions must match the actual processing path. Reading an SSE-KMS object requires `kms:Decrypt`; writing requires `kms:GenerateDataKey`, and multipart uploads require both. Restrict these permissions and review the key policy alongside storage access. AWS describes the details in its [SSE-KMS guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html).

For data in transit, require HTTPS and TLS on storage and query connections. S3 policies can deny insecure transport using `aws:SecureTransport`. Account for AWS service calls when writing deny conditions: AWS documents cases where network context is redacted and recommends an appropriate service-principal exclusion in its [condition-key examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/amazon-s3-policy-keys.html).

Encryption protects stored and transmitted data. An identity authorized to read and decrypt it still receives usable records, so encryption and access restrictions must be designed together.

## AWS Lake Formation Permissions and Access

Lake Formation adds data-oriented permissions to the AWS Glue Data Catalog and supported data-access integrations. IAM permissions remain necessary for the relevant service APIs. Begin by distinguishing metadata visibility, data access, and the ability to create catalog objects.

`DESCRIBE` provides metadata visibility. `SELECT` permits reading table data within the granted scope. `DATA_LOCATION_ACCESS` permits creating or changing catalog resources that point to a registered location; it does not independently grant permission to read that location's records. These distinctions are documented in the [Lake Formation permissions reference](https://docs.aws.amazon.com/lake-formation/latest/dg/lf-permissions-reference.html).

For `orders_curated`, grant `analyst-eu` only the required columns and regional records. Lake Formation supports [column, row, and cell filtering](https://docs.aws.amazon.com/lake-formation/latest/dg/data-filtering.html), subject to the consuming engine's support. Filters associated with `SELECT` govern reads, so a filtering rule is not a general restriction on every write operation. Test both permitted and prohibited reads through each intended engine.

As the catalog grows, [LF-Tag-based access control](https://docs.aws.amazon.com/lake-formation/latest/dg/tag-based-access-control.html) can express grants using classifications such as `domain=retail` and `sensitivity=restricted`. Control who can assign or change those tags, because changing a classification can change access. Review other grants as well; adding a narrow permission does not necessarily remove broader access already granted.

During migration, [hybrid access mode](https://docs.aws.amazon.com/lake-formation/latest/dg/hybrid-access-mode.html) lets selected principals use Lake Formation permissions while other principals retain IAM-based access. Maintain an explicit inventory of that split. Registering a location does not block direct S3 access already authorized through IAM or bucket policies.

The same principle applies to external analytics tools: a catalog connection alone does not prove enforcement of Lake Formation filters. Verify the integration and credential path before treating any engine as a governed consumer.

Write acceptance cases before granting access. For `analyst-eu`, specify an allowed regional query, a prohibited customer-contact column, a prohibited direct raw-file download, and the permitted result location. Run those cases using the actual role and engine. Testing only as an administrator can conceal missing permissions and unintended privileges alike.

## Network Security for AWS Data Lakes

Run processing workloads in private subnets where appropriate, restrict their inbound access, and define the outbound destinations they require. An S3 bucket is not deployed inside your VPC; private access depends on the network path and policies used to reach the service.

An [S3 gateway endpoint](https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html) lets workloads in the VPC reach S3 without an internet gateway or NAT device. [Interface endpoints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/privatelink-interface-endpoints.html) support additional access patterns, including appropriate hybrid connectivity. Choose according to where callers run, then verify routing and DNS behavior.

An endpoint policy limits access through that endpoint. It does not make all other paths to the bucket disappear. Where required, use bucket-policy conditions such as `aws:SourceVpce` to restrict access to approved endpoints. AWS's [endpoint policy examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies-vpc-endpoint.html) warn that such restrictions can also block console access.

Before deployment, test ingestion, analytics services, monitoring, and emergency administration against the policy. A managed service may use a different request path from an EC2 workload in your subnet. Document necessary exceptions narrowly, with owners and review dates, while retaining identity and encryption controls on every permitted route.

## Data Governance and Compliance in AWS Data Lakes

Governance starts with a dataset owner who can explain what the data contains, why it is retained, and who should use it. Record classification, allowed purposes, storage locations, retention requirements, and downstream dependencies in a maintained inventory.

[Amazon Macie](https://docs.aws.amazon.com/macie/latest/user/discovery-asdd-how-it-works.html) can help discover sensitive data in supported S3 objects. Automated discovery samples eligible objects, so findings should inform classification rather than be treated as proof that every object has been inspected. Review coverage, unreadable objects, and exclusions alongside the findings.

Lineage makes classification actionable. If a transformation joins `customer_contact` into an order dataset, review whether the output now contains restricted attributes. Record that dependency when the job runs and carry the classification decision into output permissions. A curated label alone says nothing about sensitivity.

Match retention and deletion controls to the actual requirement. [S3 Object Lock](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html) protects object versions through retention periods or legal holds. Governance mode permits authorized bypass; compliance mode prevents deletion of protected versions during retention, including by the root user. Select the mode deliberately and verify recovery procedures.

For compliance evidence, connect each requirement to a control, an owner, and a reproducible record: access reviews, policy versions, encryption configuration, retention settings, or incident activity. Row filters can limit which regional records a user sees, but [storage and replication configuration](https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html#Regions) determine where the data resides. Keep those questions separate during architecture review.

## AWS Data Lake Security Monitoring

Monitoring should distinguish configuration changes, data access, and suspicious behavior. Each answers a different investigation question.

**Record activity.** CloudTrail management events provide evidence of control-plane activity. Object operations such as `GetObject` require S3 data-event logging, which trails do not enable by default. Configure coverage for the relevant buckets and prefixes, retain the records, and test that an expected read appears. AWS explains the configuration in [CloudTrail logging for S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-cloudtrail-logging-for-s3.html).

**Detect threats and drift.** [GuardDuty S3 Protection](https://docs.aws.amazon.com/guardduty/latest/ug/s3-protection.html) analyzes S3 data events for suspicious activity without requiring you to enable your own CloudTrail data-event logging. That detection capability and your retained audit trail serve different purposes. [AWS Config](https://docs.aws.amazon.com/config/latest/developerguide/WhatIsConfig.html) records supported resource configurations and can evaluate them against rules, helping identify changes such as an unexpected policy update.

Route alerts for sensitive grants, key-policy changes, logging interruptions, and unusual reads into an owned response process. [CloudWatch alarms for CloudTrail events](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudwatch-alarms-for-cloudtrail.html) can notify responders when selected changes occur. Every alert needs enough information to identify the affected resource, responsible team, and next investigative step.

For the retail lake, a useful investigation asks which sessions read datasets downstream of `customer_contact` during a review window. The relationship model links source datasets to transformation jobs, derived datasets, recorded reads, and role sessions. Preserve original event identifiers and query-engine identity information so that service-role activity can be interpreted correctly.

PuppyGraph can query that model over the collected tables. Its [built-in AI assistant](https://docs.puppygraph.com/ai/puppygraph-ai/) inspects connected data, proposes nodes and edges for approval, and turns natural-language questions into graph queries. The engine rejects entity and relationship references outside the model, returning feedback an agent can use to correct its query. Configure the assistant's model API and approve the data it may receive before connecting sensitive investigation tables.

Keep observed reads distinct from potential access inferred from policy records. A lineage path identifies a dependency; it does not prove that a particular customer record was returned. Investigators still need the corresponding events, applicable policy state, and query details to substantiate that conclusion.

![Logos of companies that use PuppyGraph](https://o6xswp5m6ilbks2z.public.blob.vercel-storage.com/uploads/ab8e18ef4ebebeddc0b3152c/cd22e2f6-ae1f-4c8c-bb6d-3610ff331073/hao-wu-20261127-5820007cae8f617f5bb57a14.png)

Figure: Companies that use PuppyGraph.

![Engineering teams describe what they use PuppyGraph for](https://o6xswp5m6ilbks2z.public.blob.vercel-storage.com/uploads/ab8e18ef4ebebeddc0b3152c/7e60d23b-8843-4fe8-80a0-1d6aadeb8ef4/hao-wu-20261127-4492653ad4ba877e25923f1c.png)

Figure: Engineering teams at PuppyGraph customers on what they use it for.

## AWS Data Lake Security Risks and Challenges

The hardest failures often involve controls that work individually but leave an unreviewed path between them.

**Alternative access routes.** A filtered query can coexist with broader object permissions. Test direct downloads and execution-role access alongside the analytics interface, especially during Lake Formation migration.

**Sensitive outputs.** Result files, extracts, temporary tables, and notebooks can outlive the access that created them. Assign owners and retention policies to these outputs, and include them in access reviews. Revoking a source-table grant does not recall data already exported.

**Permission drift.** New datasets, changed trust policies, and reused processing roles can expand access gradually. Review changes through infrastructure-as-code workflows and maintain representative negative tests, including a user attempting a forbidden column or dataset.

**Incomplete evidence and recovery gaps.** Delayed lineage collection or missing data events can make an investigation appear more conclusive than the records support. Track collection timestamps and coverage. Separately, test recovery from accidental deletion and loss of key access; successful backups are useful only if the required data and keys remain recoverable.

Prioritize these risks by starting with a restricted dataset and tracing its readers, writers, transformations, and outputs. Repeat that review whenever a new consumer is added. The exercise produces concrete permission changes and monitoring requirements instead of a checklist disconnected from the lake's actual use.

## Conclusion

AWS data lake security depends on consistent controls across identities, query engines, storage, encryption keys, and outputs. Begin with least-privilege roles and private storage, validate each governed access path, and retain enough evidence to explain what happened when data crossed a boundary.

Relationship analysis then helps connect that evidence across datasets and identities.

Try the forever-free [PuppyGraph Developer Edition](https://www.puppygraph.com/download-confirmation) and [book a demo](https://www.puppygraph.com/book-demo) with the team to see how openCypher and Gremlin queries connect warehouse and lakehouse tables, with no graph-specific ETL, to support investigations across access events and data lineage.
