AWS Certified Developer Associate DVA-C02 Practice Question
You are developing a REST API on Amazon API Gateway. You want to use a single API deployment that can call different backend endpoints and adjust logging verbosity for your development, test, and production stages-without maintaining separate configurations for each environment. Which approach should you use to define these stage-specific parameters?
Inspect every incoming request and manually adjust the configuration before forwarding it to the backend.
Use Lambda function environment variables to influence the gateway's behavior for each environment.
Create a separate deployment of the API for each environment, each with its own configuration.
Define stage variables for each stage and reference them in integration endpoints and logging settings.
Define stage variables for each stage and reference them in your integration endpoints or mapping templates. Stage variables act like environment variables that Amazon API Gateway substitutes at runtime, letting a single API deployment (and its associated stage-level settings, such as logging) behave differently in development, test, and production. Creating separate deployments duplicates effort, Lambda environment variables do not affect the gateway itself, and per-request configuration changes are too complex and error-prone.
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 are stage variables in AWS API Gateway?
Open an interactive chat with Bash
How do stage variables reduce duplication in API configurations?
Open an interactive chat with Bash
What are the differences between stage variables and environment variables?
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 .