CompTIA Study Materials
AWS Study Materials
AWS Certified Developer Associate AWS Certified Developer Associate
AWS Certified Developer Associate DVA-C02
AWS Certified Solutions Architect Associate AWS Certified Solutions Architect Associate
AWS Certified Solutions Architect Associate SAA-C03
AWS Cloud Practitioner AWS Cloud Practitioner
AWS Cloud Practitioner CLF-C02
Microsoft Study Materials
Microsoft Azure Fundamentals Microsoft Azure Fundamentals
Microsoft Azure Fundamentals AZ-900

Free AWS Certified Developer Associate DVA-C02 Practice Question

A development team is utilizing a serverless architecture for their application. They need to ensure that the application performs optimally during different stages of deployment such as development, testing, and production. The serverless function requires specific configuration data that should change depending on the stage without altering the function's code. Which method facilitates the function's ability to adapt its behavior dynamically in response to the deployment stage?

  • Configure environmental parameters on the serverless API endpoint that are passed to the serverless function during invocation.

  • Maintain multiple versions of the serverless function, each tailored to a specific deployment environment.

  • Implement a file in a cloud storage service that stores the configuration information, which the serverless function checks upon every invocation.

  • Embed environment-specific code branches within the serverless function, with logic to select the right branch during execution.

This question's topic:
AWS Certified Developer Associate DVA-C02 / 
Deployment
Your Score:
Deployment
Development with AWS Services
Security
Troubleshooting and Optimization