What is the purpose of an .env file?
Choose an answer
Tap an option to check your answer.
Correct answer: To keep secret keys outside of source code, which often live in online code repositories.
Why this is the answer
An .env file is used to keep sensitive configuration values out of source code. In API-based integrations, secrets such as client IDs, client secrets, and token values should not be committed to public or shared repositories. Amazon Ads integrations rely on secure authorization credentials to request access to advertiser resources. Storing those values outside application code reduces the risk of exposing credentials. The file supports environment-specific configuration without hardcoding private values.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed