AWS CDK Supported Programming Languages
Short answer
AC AWS Cloud Development Kit (AWS CDK) supports TypeScript and Python among its first-class languages.
Question
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?
Can I use Ruby for AWS CDK?
Community Votes
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
-
KhanhNT 👍 2https://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
-
d00b229 👍 2The 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.
-
alokdixit2006 👍 1The 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.
Related Analysis
Practice All CLF-C02 Questions
Access 120 questions with complete answers and detailed explanations.
View Full CLF-C02 Practice Test →