Amazon CodeWhisperer
Cloud service · AWS · Updated

Amazon CodeWhisperer

In short

Amazon Q Developer is a machine learning-powered service designed to improve developer productivity by providing code recommendations and automatically generating code across various programming languages and applications, directly within the integrated development environment (IDE).

Cloud Services Hub →

9 key features of Amazon CodeWhisperer

Amazon CodeWhisperer is an AI-driven code suggestion tool that supports multiple languages, integrates with popular IDEs, ensures code meets security standards, provides real-time recommendations, and offers automated code refactoring to enhance development efficiency and code quality.

01
AI-Powered Code Generation

Amazon Q Developer is an AI-driven code suggestion tool that assists developers by generating code snippets and entire functions automatically, based on the comments or the context provided in the development environment.

02
Multi-Language Support

It supports multiple programming languages including but not limited to Java, JavaScript, Python, making it versatile for a variety of development projects.

03
Seamless Integration

Amazon Q Developer integrates with supported Integrated Development Environments (IDEs) and code editors such as Visual Studio Code and IntelliJ IDEA, offering a smooth coding experience without frequent context switching.

04
Security and Best Practices

The tool scans code for vulnerabilities and suggests remediations to help address security issues.

05
Real-Time Code Recommendations

Provides real-time code recommendations as you type, making the development process faster and more efficient by automatically suggesting relevant code snippets.

06
Automated Code Refactoring

Amazon Q Developer supports automated code refactoring to improve the quality and maintainability of your codebase.

07
AWS Resource and Cost Conversations

Amazon Q Developer supports conversations about AWS resources and costs and can diagnose console errors.

08
Code Transformation

Amazon Q Developer supports code transformation in addition to code suggestions and refactoring.

09
EMR Studio Integration

The integration with EMR Studio supports only Python for coding ETL scripts for Spark jobs.

Where Amazon CodeWhisperer is used

Amazon CodeWhisperer accelerates the software development cycle, enhances code quality, supports multiple programming languages, offers custom code recommendations, and integrates with popular IDEs to streamline workflows.

  1. 01
    Accelerate Development Cycle

    Amazon Q Developer helps software developers accelerate their development cycle by providing real-time code recommendations. As developers type, Amazon Q Developer suggests entire lines or blocks of code, enabling faster development of applications by reducing the time spent on searching for code snippets or debugging.

  2. 02
    Enhance Code Quality

    Developers can use Amazon Q to write unit tests, optimize code, scan for vulnerabilities, and obtain suggested remediations.

  3. 03
    Support for Multiple Languages

    Amazon Q Developer supports a wide range of programming languages, making it a versatile tool for developers working in different technology stacks. This feature allows for broader adoption within development teams using supported programming languages.

  4. 04
    Custom Code Recommendations

    Developers can connect private repositories to generate more relevant code recommendations, ask questions about company code, and understand internal code bases.

  5. 05
    Integration with Popular IDEs

    Amazon Q Developer can be integrated with popular Integrated Development Environments (IDEs), such as Visual Studio Code and IntelliJ. This integration allows developers to use the tool within their preferred development environment, streamlining their workflow and making coding more efficient.

How Amazon CodeWhisperer is priced

Amazon CodeWhisperer offers a pay-as-you-go model for flexible usage and a subscription model for consistent high usage.

Amazon Q Developer Pro

Amazon Q Developer Pro costs $19 per user per month; usage limits apply, so the subscription does not provide unlimited access to every feature.

Amazon Q Developer Free Tier

A perpetual Free Tier provides Amazon Q Developer at no cost.

Services Amazon CodeWhisperer works with

Amazon S3Amazon S3

Amazon Q Developer can assist with code suggestions and generation for managing S3 buckets, objects, and interactions.

Amazon DynamoDBAmazon DynamoDB

Amazon Q Developer provides assistance in writing code for DynamoDB operations, including table creation, data insertion, queries, and scans.

Amazon EC2Amazon EC2

Amazon Q Developer helps generate code for managing EC2 instances, configurations, and related resources.

AWS LambdaAWS Lambda

Amazon Q Developer aids in writing and optimizing AWS Lambda functions, including setup, deployment, and integrations.

Amazon API GatewayAmazon API Gateway

Amazon Q Developer assists in generating code for creating, deploying, and managing RESTful and WebSocket APIs using API Gateway.

Amazon RDSAmazon RDS

Amazon Q Developer provides code suggestions for interactions with Amazon RDS, including database management and queries.

AWS CloudFormationAWS CloudFormation

Amazon Q Developer helps with generating CloudFormation templates for provisioning and managing AWS resources.

Amazon CloudWatchAmazon CloudWatch

CodeWhisperer publishes usage metrics to CloudWatch so administrators can monitor adoption and code-suggestion activity across their organization.

Amazon CodeGuruAmazon CodeGuru

CodeWhisperer's security scanning uses Amazon CodeGuru's security-analysis technology to identify vulnerabilities in code and provide remediation guidance.

Amazon EMRAmazon EMR

CodeWhisperer provides real-time code recommendations in EMR Studio Workspaces. While writing code in JupyterLab, developers can receive line completions or generate functions from comments.

What is Amazon CodeWhisperer

3 min read

Amazon Q Developer is a machine learning-powered service by Amazon Web Services (AWS) designed to improve the productivity and efficacy of software developers by automating the process of writing code. This innovative tool is part of a growing trend towards leveraging artificial intelligence (AI) in the field of software engineering to enhance efficiency, reduce errors, and allow developers to focus on more strategic elements of their projects. Amazon Q Developer operates by analyzing the context of the code being written and providing real-time recommendations and code snippets that can be easily integrated into the developers' work. It supports a variety of programming languages and frameworks, which makes it a versatile tool for a wide range of software development projects. 

Creating a customization requires at least 10 code files for each language to be included and at least 20 MB of code files in the data source; valid file extensions are .java, .py, .jsx, .tsx, .js, and .ts.

Amazon Q Developer offers Free and Pro tiers. The Pro tier provides organizational subscription management through AWS IAM Identity Center and does not use proprietary customer content for service improvement.

In IDEs and the CLI, the Pro code-transformation quota is 4,000 lines of code per user per month, pooled at the account level, with extra lines available.

In IDEs and the CLI, Pro allows 10,000 inference requests per user per month for agentic requests, including Q&A chat and agentic coding.

Its ability to quickly generate code suggestions based on brief descriptions or comments written by the developer in natural language radically streamlines the coding process, potentially reducing the development time significantly. Beyond merely suggesting snippets of code, Amazon Q Developer is designed to understand the nuances of different programming tasks. Whether it's setting up a new service, implementing a complex algorithm, or integrating with APIs, Amazon Q Developer can provide contextually relevant code examples and solutions that adhere to best practices. This capability is particularly valuable for novice developers or those working with unfamiliar technologies, as it offers an opportunity to learn from the generated code examples. Another notable aspect of Amazon Q Developer is its emphasis on security and code quality. By incorporating AWS's best practices and scanning for common vulnerabilities, it aims to ensure that the code it generates is not only functional but also secure. This is crucial in today's digital environment, where security concerns are paramount. 

Furthermore, Amazon Q Developer's integration with popular Integrated Development Environments (IDEs) means that it fits seamlessly into the developers' existing workflow. There is no need for switching between applications or disrupting the development process, as Amazon Q Developer's suggestions appear in real-time within the IDE. This seamless integration helps maintain the developerss flow state, leading to higher productivity levels. 

AWS will discontinue support for Amazon Q Developer IDE plugins on April 30, 2027.

Amazon Q Developer, therefore, represents a significant step forward in the utilization of AI in software development. By automating routine coding tasks, providing educational insights through code suggestions, and emphasizing security and best practices, it not only accelerates the development process but also contributes to the creation of higher quality software products. As the tool continues to evolve and improve, its impact on the software development community is expected to grow, making it an indispensable asset for developers looking to harness the power of AI in their work.

Amazon CodeWhisperer exam questions

Real practice exam questions on Amazon CodeWhisperer, with the correct answer and its explanation. Answer them with every option in the exam simulator.

DVA-C02

A company wants to provide 60 developers with AI-generated inline code recommendations in their supported IDEs while they build AWS applications. The company requires centrally managed subscriptions and access through its existing corporate identity provider. Proprietary source code must not be used for service improvement. Which solution meets these requirements?

Show answerCORRECT ANSWER

Subscribe to Amazon Q Developer Pro, which includes the capabilities formerly offered by CodeWhisperer Professional, and assign subscriptions through IAM Identity Center federated with the corporate identity provider.

Amazon Q Developer Pro provides IDE code recommendations and centrally managed subscriptions through IAM Identity Center, which can integrate with an external corporate identity provider. Proprietary customer content from the Pro tier is not used for service improvement.

AIP-C01

A company runs a Python application that streams JSON-formatted answers from Amazon Bedrock through ConverseStream. After a parser change, valid answers intermittently produce JSON decoding errors. Sanitized event recordings show that textDelta events can split a JSON property name or value across multiple events. The current handler calls json.loads on each textDelta independently.

The application must continue forwarding text incrementally to clients, but it must validate the complete JSON document only after generation finishes normally. A response stopped by the output-token limit or interrupted by a stream exception must not be reported as successful. Engineers have sanitized recordings of these cases and want to accelerate a source-code fix without making live model calls during regression testing.

Which development workflow best meets these requirements?

Show answerCORRECT ANSWER

Use Amazon Q Developer, which includes the former Amazon CodeWhisperer capabilities, in the IDE to propose changes using the handler and sanitized event recordings as context. Forward text deltas while accumulating them, validate the assembled document only after normal completion, and handle token-limit stops and stream exceptions as unsuccessful outcomes. Review the changes and run replay-based regression tests without invoking Bedrock.

Amazon Q Developer can accelerate implementation and test development using source-code context. Accumulating text separately from forwarding it preserves streaming while avoiding attempts to parse incomplete JSON fragments. Explicit completion and failure handling prevents truncated or interrupted generations from being marked successful. Sanitized event replay makes the regression tests repeatable without live model calls.

Practice Amazon CodeWhisperer in a full exam

Questions on Amazon CodeWhisperer in each practice exam, with every answer option and an explanation for each:

Start a free practice exam

Learn Amazon CodeWhisperer in lessons

4 short lessons on Amazon CodeWhisperer in 2 certification courses.

Open the lessons

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.