AWS CDK Supported Programming Languages

CLF-C02 By islever Editorial Last updated

Short answer

AC AWS Cloud Development Kit (AWS CDK) supports TypeScript and Python among its first-class languages.

Question

Which programming languages does AWS Cloud Development Kit (AWS CDK) currently support? (Choose two.)
  1. Python Correct Answer
  2. Swift
  3. TypeScript Correct Answer
  4. Ruby
  5. PHP

Key Takeaways

The question tests knowledge of AWS CDK's language ecosystem, with the common trap being confusion with other AWS SDKs or general cloud tools that might support different languages like Ruby or PHP.

This question addresses the programming languages supported by the AWS Cloud Development Kit (AWS CDK). It establishes that TypeScript and Python are among the officially supported first-class languages for infrastructure-as-code.

Common mistake: Learners often incorrectly select Ruby or PHP, assuming broader language support similar to older IaC tools or general-purpose cloud APIs, rather than knowing the specific first-class list.

Expert Analysis

Why the Answer Is Correct

The AWS Cloud Development Kit (AWS CDK) provides first-class support for TypeScript, JavaScript, Python, Java, C#/.NET, and Go. Therefore, selecting TypeScript (C) and Python (A) is correct as they are both primary languages for CDK development. The documentation explicitly lists these as the core supported environments.

Why the Other Options Are Wrong

Swift (B), Ruby (D), and PHP (E) are not currently supported by AWS CDK. While you can technically use the AWS CLI or SDKs in any language, CDK constructs are specifically built and typed for the supported set. Choosing these options reflects a misunderstanding of the tool's current capabilities.

Community Comment Notes

Community consensus strongly supports AC. As user d00b229 noted, "Languages like Swift, Ruby, and PHP are not supported by AWS CDK at this time." Another comment provided a direct link to the official docs confirming the list includes TypeScript, JavaScript, Python, Java, C#, and Go.

Official Reference

https://docs.aws.amazon.com/cdk/v2/guide/languages.html

This link opens the official vendor documentation in a new tab.

Exam Strategy

Memorize the list of first-class languages for AWS CDK: TypeScript, JavaScript, Python, Java, C#, and Go. Do not assume support for languages commonly used in web development like Ruby or PHP unless explicitly stated in recent updates.

Frequently Asked Questions

Does AWS CDK support Java?

Yes, Java is a first-class language supported by AWS CDK, along with TypeScript, JavaScript, Python, C#, and Go.

Can I use Ruby for AWS CDK?

No, Ruby is not currently a supported language for AWS CDK. You must use one of the first-class languages listed in the documentation.

More CLF-C02 FAQ →

Community Votes

AC
100%

100% of anonymous learners picked answer AC. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 3 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 3

  1. KhanhNT 👍 2
    https://docs.aws.amazon.com/cdk/v2/guide/languages.html The AWS Cloud Development Kit (AWS CDK) has first-class support for the following general-purpose programming languages: TypeScript JavaScript Python Java C# Go
  2. d00b229 👍 2
    The AWS Cloud Development Kit (AWS CDK) supports: Python TypeScript Java C#/.NET Languages like Swift, Ruby, and PHP are not supported by AWS CDK at this time.
  3. alokdixit2006 👍 1
    The AWS Cloud Development Kit (AWS CDK) supports: JavaScript/TypeScript, Python, Java, and .NET

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All CLF-C02 Questions

Access 120 questions with complete answers and detailed explanations.

View Full CLF-C02 Practice Test →

← Back to CLF-C02 Study Guide