問題文
A team is choosing between an API key and IAM-based authentication for calling the OpenAI-compatible endpoints. Which guidance matches the documentation?
選択肢
- Use API keys everywhere, because IAM-based authentication is only available in the Console and cannot be used from ordinary application code.
- The choice does not matter because both are equally long-lived, and both are rotated by the service on the same schedule.
- Use IAM-based authentication everywhere, because API keys are not supported for the OpenAI-compatible endpoints and any request presenting one is rejected.
- Use API keys for testing and early development, and use IAM-based authentication for production workloads and OCI-managed environments.