Amazon CodeGuru
Cloud service · AWS · Updated

Amazon CodeGuru

In short

Amazon CodeGuru is a machine learning-powered service offered by Amazon Web Services (AWS) that automatically reviews code for bugs and suggests optimizations to improve performance and reduce costs for developers.

Cloud Services Hub →

5 key features of Amazon CodeGuru

Amazon CodeGuru is a developer tool that provides automated code reviews for identifying critical issues, real-time performance recommendations, integrates with popular development tools, scans for security vulnerabilities, and offers cost optimization suggestions.

01
Automated Code Reviews

Amazon CodeGuru Reviewer uses machine learning algorithms to analyze your code and identify critical issues, security vulnerabilities, and hard-to-find bugs during the code review process, providing recommendations for improving your code quality.

02
Real-time Performance Recommendations

CodeGuru Profiler helps developers understand the runtime behavior of their applications, identify and troubleshoot performance issues like high CPU utilization, and receive suggestions for improving efficiency and reducing costs.

03
Integration with Popular Development Tools

Amazon CodeGuru seamlessly integrates with existing development environments and workflows including GitHub, Bitbucket, and AWS CodeCommit, facilitating a smooth adoption and continuous improvement process without drastically changing developers' workflows.

04
Security Analysis

In addition to performance issues, CodeGuru Reviewer also scans your code for security vulnerabilities, leveraging AWS’s best practices and scanning for CWEs (Common Weakness Enumerations), thereby enhancing the security posture of your applications.

05
Cost Optimization Recommendations

By analyzing your application's runtime data, CodeGuru Profiler provides recommendations that can help you optimize your AWS resource usage, potentially leading to cost reductions in running your applications.

Where Amazon CodeGuru is used

Amazon CodeGuru is utilized for automated code reviews, application performance optimization, real-time security analysis, and as an aid in codebase knowledge sharing.

  1. 01
    Automated Code Reviews

    Amazon CodeGuru can be integrated into a software development workflow to automatically review pull requests. It suggests improvements for code quality, security vulnerabilities, and application performance issues, helping teams to maintain high standards.

  2. 02
    Application Performance Optimization

    With CodeGuru Profiler, developers can identify the most compute-intensive lines of code in their applications. It provides actionable recommendations to improve code efficiency and reduce infrastructure costs by optimizing resource usage.

  3. 03
    Real-time Security Analysis

    CodeGuru automatically scans your code repositories for security vulnerabilities and deviations from best practices. It alerts developers immediately when potential security issues are found, significantly reducing the risk of deploying vulnerable code.

  4. 04
    Codebase Knowledge Sharing

    By constantly reviewing and suggesting improvements, Amazon CodeGuru acts as an automated code review expert, facilitating knowledge sharing among development teams. This helps in upskilling developers and maintaining coding standards across the organization.

How Amazon CodeGuru is priced

Amazon CodeGuru's pricing models include a line-based pricing for CodeGuru Reviewer and a sampling-hour-based pricing for CodeGuru Profiler, with free tiers and trials available.

CodeGuru Reviewer Pricing

Amazon CodeGuru Reviewer charges a fixed monthly rate based on the aggregated lines of code in onboarded repositories, using repository-size tiers. For repositories with multiple branches, only the largest branch counts; comments and empty lines are excluded. The free tier lasts 90 days for up to 100,000 lines of code per AWS account. Standard monthly pricing includes all incremental reviews and two full scans per repository; additional full scans cost $10 per 100,000 lines of code.

CodeGuru Profiler Pricing

Amazon CodeGuru Profiler offers a 90-day free trial, then charges by sampling hour. Profiling EC2 instances and ECS, EKS, or Fargate containers costs $0.005 per sampling hour for the first 36,000 sampling hours per profiling group per month, with no additional charge beyond that limit. Lambda profiling includes the first 500 sampling hours free per payer account, followed by $0.005 per sampling hour up to the same profiling-group limit.

AWS BugBust Pricing

AWS BugBust includes a 30-day free period per AWS account starting with the first event, covering underlying CodeGuru Reviewer and CodeGuru Profiler usage even if their free tiers have already been used. Multiple events can run within that period. Afterward, usage in the challenge is charged under the individual Reviewer and Profiler pricing models.

Services Amazon CodeGuru works with

Amazon S3Amazon S3

Amazon CodeGuru Profiler integrates with Amazon S3 to store profiles and findings, allowing users to access performance data and reports.

AWS CodeCommitAWS CodeCommit

Amazon CodeGuru Reviewer integrates with AWS CodeCommit to analyze code repositories, providing recommendations for code improvements and fixing potential issues.

AWS CodePipelineAWS CodePipeline

CodeGuru Reviewer can be integrated into AWS CodePipeline to automatically review code changes during the CI/CD process, ensuring high-code quality before deployments.

Amazon CloudWatchAmazon CloudWatch

Amazon CodeGuru Reviewer publishes metrics to CloudWatch, including the number of recommendations generated for associated repositories. You can use these metrics in dashboards and alarms to monitor code-review activity.

Amazon DevOps GuruAmazon DevOps Guru

Amazon CodeGuru Profiler sends performance recommendations to DevOps Guru through an EventBridge managed rule. DevOps Guru displays these recommendations as insights alongside operational findings for the same monitored resources.

Amazon EC2Amazon EC2

Amazon CodeGuru Profiler uses an agent in applications running on EC2 instances to collect runtime profiles. These profiles reveal expensive code paths and CPU bottlenecks without requiring a separate test environment.

Amazon Elastic Container Service (Amazon ECS)Amazon Elastic Container Service (Amazon ECS)

Amazon CodeGuru Profiler can profile applications running in ECS containers by including its profiling agent in the application. An ECS task role grants the agent permission to submit profiling data to a profiling group.

Amazon Elastic Kubernetes Service (Amazon EKS)Amazon Elastic Kubernetes Service (Amazon EKS)

Amazon CodeGuru Profiler can collect runtime profiles from applications running in EKS pods through its profiling agent. The application’s AWS permissions allow the agent to send profiles for performance analysis.

Amazon EventBridgeAmazon EventBridge

Amazon CodeGuru Profiler sends recommendation events to EventBridge, including updates and periodic heartbeat events. EventBridge rules can route these events to DevOps Guru or other supported targets for automated processing.

Amazon Simple Notification Service (Amazon SNS)Amazon Simple Notification Service (Amazon SNS)

Amazon CodeGuru Profiler can publish anomaly notifications to an SNS topic configured for a profiling group. Topic subscribers can receive alerts when Profiler detects anomalous application behavior.

Amazon CodeGuru exam questions

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

MLA-C02 (beta)

An ML team maintains a Java inference application in an existing, supported source repository. Its CI/CD workflow reviews only changes introduced by pull requests. A security audit requires a baseline assessment of the entire release's application source, including legacy preprocessing and request-handling code that has not changed for several months. The assessment must identify insecure coding patterns and provide source locations and remediation recommendations before deployment, without running the application. The team already has access to the required services and repository integrations.

Which solution best meets these requirements?

Show answerCORRECT ANSWER

Add a pipeline step that initiates an Amazon CodeGuru Reviewer full-repository analysis of the release source with security detectors enabled and collects its recommendations.

CodeGuru Reviewer can statically analyze supported Java source and report security issues with source locations and remediation guidance. A full-repository analysis includes unchanged legacy code, unlike reviews limited to pull-request changes, and does not require running the application.

SCS-C03

A company uses AWS CodeBuild in a delivery pipeline for a Python application that runs in containers. A security review identified command injection vulnerabilities in the company's own application code, even though container package scans reported no critical vulnerabilities. The company requires automated source-code analysis before deployment, retained findings for developers, and a release block when high-severity or critical findings remain. A release must also be blocked if analysis cannot be completed. Which solution best meets these requirements?

Show answerCORRECT ANSWER

Invoke Amazon CodeGuru Security from CodeBuild for the source revision being released. Wait for scan completion, retrieve all findings, retain the results, and fail the build for high-severity or critical findings, scan errors, or timeouts. Require developers to remediate findings and pass a new scan before release.

CodeGuru Security provides static security analysis of supported application code. Waiting for completion and evaluating all findings establishes an enforceable security gate. Blocking on analysis failures prevents an unverified release, while retained findings support remediation and subsequent verification.

Practice Amazon CodeGuru in a full exam

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

Start a free practice exam

What is Amazon CodeGuru

2 min read

Amazon CodeGuru is a fascinating and innovative developer tool powered by machine learning, aimed at improving code quality and identifying the most expensive lines of code in your applications. Amazon Web Services (AWS) offers this service, highlighting its commitment to not just providing infrastructure, but also tools that enhance the productivity and efficiency of software development teams. 

CodeGuru stands out for its ability to seamlessly integrate with the developer's workflow, automatically reviewing source code, and providing valuable suggestions to improve both the performance and cost-efficiency of the application. 

At its core, Amazon CodeGuru is divided into two primary components: CodeGuru Reviewer and CodeGuru Profiler. The Reviewer uses machine learning models trained on decades of code from various sources, including open-source projects and Amazon's own vast codebase, to analyze and identify issues within the code. These issues can range from potential bugs, resource leaks, and the most common of all deviations from best coding practices. The automated code reviews can occur as part of the pull request process in popular version control systems, making it easier for developers to catch and correct issues before merging code. In addition to issue detection, CodeGuru Reviewer provides recommendations for fixes, greatly accelerating the debugging and review process. 

As of November 7, 2025, you cannot create new repository associations in Amazon CodeGuru Reviewer.

CodeGuru Reviewer has a default quota of 5,000 code reviews per AWS account per month in each supported Region. This quota is adjustable.

On the other hand, the CodeGuru Profiler focuses on the runtime performance of applications. It helps developers understand the behavior of their code in production, identifying hotspots and the lines of code that are most resource-intensive. By providing an easy-to-navigate visual interface, it enables developers to analyze and pinpoint inefficiencies in their application, such as unnecessary CPU usage or excessive memory allocation. This insight is crucial for optimizing performance and reducing operational costs, especially in cloud-native environments where resources are billed by usage. 

CodeGuru Profiler supports applications on Amazon EC2, containers on Amazon ECS and Amazon EKS, serverless applications on AWS Fargate and AWS Lambda, and applications running on-premises.

Amazon CodeGuru integrates with existing development environments and workflows, supporting major programming languages, and offering a straightforward setup process. Its ability to provide real-time feedback and actionable insights makes it an invaluable tool for developers looking to enhance their codebase. By leveraging machine learning to automate code reviews and performance analysis, Amazon CodeGuru represents a significant step forward in the evolution of cloud computing services. It not only aids in maintaining high standards of code quality but also fosters a culture of continuous improvement and efficiency among development teams. 

In essence, Amazon CodeGuru embodies the future of software development, where automation and machine learning are central to creating robust, efficient, and cost-effective applications.

Learn Amazon CodeGuru in lessons

4 short lessons on Amazon CodeGuru 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.