AWS Certified Developer Associate DVA-C02 Practice Question
A developer is building a serverless application using AWS Lambda functions and Amazon API Gateway. To streamline deployment, the developer needs a tool that uses a declarative template to define the application's resources, including functions, APIs, and event source mappings. The tool must also support managing separate configurations for different environments like 'dev' and 'prod'. Which AWS tool is the most appropriate choice?
The correct option is AWS Serverless Application Model (SAM). AWS SAM is an open-source framework specifically designed to streamline the development and deployment of serverless applications. It uses a simplified YAML or JSON template syntax, which is an extension of AWS CloudFormation, to define serverless resources like functions, APIs, and event source mappings. SAM also has built-in features for managing different deployment environments, directly meeting the user's requirements.
AWS CloudFormation is the underlying Infrastructure as Code (IaC) service that SAM uses. While you can define the entire application using native CloudFormation, its syntax is more verbose for serverless resources. SAM provides a specialized, higher-level abstraction that simplifies the template, making it the more appropriate and efficient tool for this specific scenario.
The AWS Cloud Development Kit (CDK) is an IaC framework that uses familiar programming languages (like Python or TypeScript) to define cloud resources. The question specifically asks for a tool that uses a declarative 'template format' (like YAML/JSON), making SAM the better fit over the programmatic approach of the CDK.
AWS CodeDeploy is a service that automates application deployments to various compute services, including AWS Lambda. It is focused on the deployment process itself, such as managing traffic-shifting strategies like canary and blue/green, rather than defining the infrastructure resources in a template.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What exactly is the AWS Serverless Application Model (SAM)?
Open an interactive chat with Bash
How does SAM handle different environment-specific configurations?
Open an interactive chat with Bash
How does SAM compare to Infrastructure as Code services like AWS CloudFormation?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Deployment
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .