Answer:
B. Don't save your API credentials. Instead create a role in IAM and assign this role to an EC2 instance when you first create it.
Explanation:
The missing options is:
A. Save the API credentials to your php files.
B. Don't save your API credentials. Instead create a role in IAM and assign this role to an EC2 instance when you first create it.
C. Save your API credentials in a public Github repository.
D. Pass API credentials zto the instance using instance userdata.
The API credentials are confidential information that shouldn't be stored at all or in a place that allows public access to it.
The following steps are use when creating and distributing your AWS credentials, you can delegate permission to make API requests using IAM roles as follows:
1. Create an IAM role.
2. Define which accounts or AWS services can assume the role.
3. Define which API actions and resources the application can use after assuming the role.
4. Specify the role when you launch your instance, or attach the role to an existing instance.
So from the above explanation, the answer is: B. Don't save your API credentials. Instead create a role in IAM and assign this role to an EC2 instance when you first create it.