AWS Certified Developer – Associate (DVA-C02) — Question 173
When a developer tries to run an AWS CodeBuild project, it raises an error because the length of all environment variables exceeds the limit for the combined maximum of characters.
What is the recommended solution?
Answer options
- A. Add the export LC_ALL="en_US.utf8" command to the pre_build section to ensure POSIX localization.
- B. Use Amazon Cognito to store key-value pairs for large numbers of environment variables.
- C. Update the settings for the build project to use an Amazon S3 bucket for large numbers of environment variables.
- D. Use AWS Systems Manager Parameter Store to store large numbers of environment variables.
Correct answer: D
Explanation
The correct answer is D because AWS Systems Manager Parameter Store allows for the storage of configuration data and secrets, which can help manage a large number of environment variables without hitting limits. Options A, B, and C do not directly address the issue of exceeding the environment variable length limit and are not suitable solutions for this specific scenario.