What should the developer do to meet these requirements with the LEAST development effort?
Migrate the document from AWS AppConfig to a Lambda environment variable. Read the document at the runtime.
Configure the AWS AppConfig Agent Lambda extension. Access the dynamic configuration data by calling the extension on a local host.
Use the AWS X-Ray SDK to call the AWS AppConfig APIs. Retrieve the configuration file at runtime.
Migrate the configuration file to a Lambda deployment package. Read the file from the file system at runtime.
Explanations:
Migrating the document to a Lambda environment variable would not allow for dynamic updates without redeployment, as environment variables are static after deployment.
Configuring the AWS AppConfig Agent Lambda extension allows the Lambda functions to access dynamic configuration data at runtime with minimal development effort, enabling automatic updates without requiring redeployment.
Using the AWS X-Ray SDK to call AWS AppConfig APIs would require additional development to handle API calls and responses, making it more complex than necessary for accessing configuration data.
Migrating the configuration file to a Lambda deployment package would also not allow for updates without redeployment, as the Lambda function would need to be redeployed to change the content of the package.