If your engineering organization is deciding whether to roll out Amazon Q Developer across enterprise repositories, developer terminals, and cloud infrastructure, the primary blocker is rarely developer enthusiasm. It is almost always a security and compliance confrontation: Does Amazon Q Developer store proprietary source code, and will AWS use your proprietary prompts and algorithms to train underlying foundation models?
At 365Finds, we look directly at enterprise software contracts, data privacy addenda, and cloud boundary designs. The blunt answer depends entirely on your subscription tier and how your workforce authenticates:
- Amazon Q Developer Pro (authenticated via AWS IAM Identity Center): AWS does not use your proprietary code, prompts, IDE snippets, or chat interactions to train foundational models or improve service algorithms. Customer content remains yours.
- Amazon Q Developer Free Tier (authenticated via personal AWS Builder ID): By default, AWS reserves the right to retain and analyze user inputs, chat queries, and generated code for service improvement and model retraining—unless explicit opt-out controls are executed.
For FinTech architectures, healthcare pipelines, and regulated enterprises, running developers on personal Builder IDs represents an immediate intellectual property and compliance violation. 365Finds strongly advises enterprise security teams against relying on individual developer goodwill to toggle IDE checkboxes. Below is our complete breakdown of AWS data retention mechanics, identity boundaries, service policies, and architectural hardening steps.
Free vs. Pro: The Legal and Data Ownership Divide
The distinction between Amazon Q Developer tiers is not just a feature quota upgrade ($19/user/month for Pro); it is a structural legal divide regarding customer data isolation and intellectual property governance.
| Evaluation Metric | Free Tier (AWS Builder ID) | Pro Tier (AWS IAM Identity Center) |
|---|---|---|
| Authentication Identity | Personal AWS Builder ID (Individual) | Corporate IAM Identity Center (Workforce IdP) |
| Model Retraining Policy | Opt-in by default; data may train foundation models | Strictly excluded; zero customer content model training |
| Customer Content Retention | Stored in AWS operational systems unless opted out | Transient processing in memory / ephemeral cache |
| Data Encryption at Rest | AWS default shared managed keys | Optional Customer Managed Keys (AWS KMS CMK) |
| Prompt & Completion Audit | None; zero organizational visibility | Native S3 prompt logging & CloudTrail data event auditing |
| Centralized Governance | Individual developer local workstation settings | AWS Organizations AI Opt-Out Policies & IAM SCPs |
| 365Finds Recommendation | Strict prohibition on corporate codebases | Approved for regulated enterprise codebases |
Under the AWS Customer Agreement and the Amazon Q Developer Service Terms, content processed within Amazon Q Developer Pro is treated as protected Customer Content. In contrast, individual Builder ID sessions default to AWS’s broad service improvement umbrella. If an engineer pastes an unreleased proprietary algorithm into an IDE chat running on a free personal login, that content legally falls into the training pipeline queue unless manually disconnected.
How AWS Handles In-Flight Code and Telemetry
Understanding the boundary between in-flight analysis and long-term storage clarifies where leaks could theoretically occur.
1. IDE Code Context & Inline Suggestions
When an engineer codes in VS Code or JetBrains, the Amazon Q Developer IDE plugin reads contextual clues: active file syntax, surrounding function declarations, import headers, and recently visited tabs.
- This context is transmitted over TLS 1.2+ to Amazon Q backend inference endpoints.
- In the Pro tier, once inference delivers inline completions or code explanations back to the client, the context payload is discarded from execution memory. It is not indexed into AWS public training pools.
- In the Free tier, telemetry payloads containing recommendation acceptance/rejection metadata and partial contextual snippets are collected for model quality evaluation.
2. AWS Management Console Chat & Diagnostic Operations
When diagnosing CloudWatch alarms, IAM permission denials, or Lambda errors directly inside the AWS Management Console, Amazon Q ingests console metadata, resource ARNs, and log stack traces.
- For enterprise Pro users, this data remains inside your dedicated AWS operational boundary.
- For Free tier logins, console error diagnostics feed general model refinement logs.
Organization-Wide Hardening: AWS AI Services Opt-Out Policy
If developers in your organization ever test tools under free accounts or unassigned profiles, leaving privacy enforcement to local IDE toggles is inadequate. AWS Organizations provides a governance mechanism: AI Services Opt-Out Policies.
These policies are distinct from standard Service Control Policies (SCPs). While SCPs restrict IAM API calls, AI Services Opt-Out Policies dictate AWS-side data retention across foundation models (including Amazon Q Developer/CodeWhisperer, Amazon Rekognition, and Amazon Comprehend).
Enforcing an Absolute Organizational Opt-Out
Enterprise administrators should deploy an organizational opt-out policy at the root (r-YYYY) level to ensure that even if an individual developer connects via a non-Pro path, AWS is contractually and programmatically forbidden from training on that account's traffic.
{
"services": {
"default": {
"opt_out_policy": {
"@@assign": "optOut",
"@@operators_allowed_for_child_policies": ["@@none"]
}
}
}
}
Why ["@@none"] Matters
By setting "@@operators_allowed_for_child_policies": ["@@none"], root administrators lock the rule. Child Organizational Units (OUs) and member accounts cannot override the directive or opt back in for experimental sandbox testing.
Deploy this via the AWS CLI:
# 1. Enable AI Services Opt-Out policy type on your organization root
aws organizations enable-policy-type \
--root-id r-1234 \
--policy-type AISERVICES_OPT_OUT_POLICY
# 2. Create the immutable opt-out policy
aws organizations create-policy \
--content file://ai-opt-out-policy.json \
--description "Enforce absolute opt-out of AI model retraining across all member accounts" \
--name "Enterprise-AI-Opt-Out-Strict" \
--type AISERVICES_OPT_OUT_POLICY
# 3. Attach policy to the root
aws organizations attach-policy \
--policy-id p-5678abcd \
--target-id r-1234
Architectural Controls: KMS Encryption and Native Prompt Auditing
For enterprises subject to SOC 2, ISO 27001, or PCI-DSS requirements, "no training" is only step one. Information Security teams require cryptographic isolation and forensic auditability.
1. Customer Managed Encryption Keys (AWS KMS CMK)
By default, console chat logs and diagnostic caches are encrypted using AWS-owned keys. Amazon Q Developer Pro allows administrators to bring a dedicated Customer Managed Key (CMK) for data at rest.
If your organization must revoke access instantly in an emergency, revoking or disabling the KMS CMK immediately renders console chat histories, customizations, and diagnostic sessions cryptographically inaccessible.
Configure the KMS key policy to permit the Amazon Q service principal:
{
"Sid": "AllowAmazonQDeveloperKMSAccess",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::123456789012:role/Enterprise-CloudOps-Admin"
},
"Action": [
"kms:Decrypt",
"kms:GenerateDataKey",
"kms:GenerateDataKeyWithoutPlaintext",
"kms:ReEncryptFrom",
"kms:ReEncryptTo"
],
"Resource": "*",
"Condition": {
"StringLike": {
"kms:ViaService": [
"q.us-east-1.amazonaws.com"
]
}
}
}
Apply this key in the Amazon Q Developer Console -> Settings -> Encryption key -> Customize encryption settings (advanced).
2. Native Prompt Logging to Enterprise S3
Security analysts must be able to audit if an engineer inadvertently prompted the AI with API tokens, passwords, or customer PII. Amazon Q Developer Pro includes native Prompt Logging directly into an encrypted, company-owned S3 bucket.
Configure your S3 bucket policy to allow writes from the Amazon Q service:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "QDeveloperLogsWriteAccess",
"Effect": "Allow",
"Principal": {
"Service": "q.amazonaws.com"
},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::enterprise-amazon-q-audit-logs/*",
"Condition": {
"StringEquals": {
"aws:SourceAccount": "123456789012"
},
"ArnLike": {
"aws:SourceArn": "arn:aws:codewhisperer:us-east-1:123456789012:*"
}
}
}
]
}
Once activated, Amazon Q streams compressed .json.gz log streams into structured prefixes:
GenerateAssistantResponse: Chat sessions, prompts, and returned code explanations.GenerateCompletions: Inline code completion requests, context snippets, and acceptance status.StartTaskAssistCodeGeneration:/devagent project-level code transformations.
3. CloudTrail Data Event Tracking (Underlying CodeWhisperer Engine)
To verify user identity and session locations without reading proprietary code text, configure an AWS CloudTrail trail capturing Data Events for AWS::CodeWhisperer::Service. This logs API calls like SendTelemetryEvent and tracks user sessions mapped back to corporate single sign-on IDs (onBehalfOf.userId).
What 365Finds Recommends to CISOs and Engineering Leads
At 365Finds, we see many organizations stall out in "AI paralysis," forbidding coding assistants completely out of unsubstantiated data leak fears, while developers quietly use unapproved browser tabs anyway. We advocate a pragmatic, hardened deployment strategy:
- Mandate IAM Identity Center and Pro Tiers: Block the use of AWS Builder IDs on enterprise equipment. Tie Amazon Q Developer Pro to corporate Okta, Microsoft Entra ID, or Ping Identity. This legally bars AWS from retaining code for model training.
- Deploy Root-Level AI Opt-Out Policies: Do not rely on IDE client preferences. Enforce an immutable
AISERVICES_OPT_OUT_POLICYacross the entire AWS Organization root with@@operators_allowed_for_child_policies: ["@@none"]. - Turn On Prompt Logging & KMS CMKs: Route prompts and code generation metadata into an isolated Amazon S3 bucket monitored by your SIEM. Control encryption keys via AWS KMS to maintain full cryptographic sovereignty.
- Enforce Local Client Hygiene: Distribute standard editor configurations that uncheck
Amazon Q: Share Content With AWSandAmazon Q: Telemetryto prevent superfluous usage telemetry over corporate WANs.
When configured under this enterprise framework, Amazon Q Developer provides one of the most rigorously auditable boundary postures among commercial coding assistants.