Detection

An API Gateway REST API stage in eu-west-3 has execution logging enabled, and the CloudWatch Logs role ARN is set in API Gateway's settings for that Region. The role trusts apigateway.amazonaws.com and has the AmazonAPIGatewayPushToCloudWatchLogs policy, yet no execution logs appear. The same setup works in us-east-1. What should the administrator check?

Show the answer

Correct answerD. Whether AWS STS is activated for the account in eu-west-3.

AWhy not this: Detailed metrics affect metric granularity, not API Gateway's ability to assume a role.

BWhy not this: Data tracing adds request details to execution logs; it does not fix log delivery.

CWhy not this: The backend function's execution role does not replace API Gateway's configured logging role.

DWhy this is right: API Gateway needs AWS STS active in the API's Region to assume its CloudWatch Logs role.

API Gateway calls AWS STS in the API's Region to assume the CloudWatch Logs role, so execution logging fails when the account has deactivated STS in that Region, even with a valid role. Data tracing and detailed metrics change what is recorded, not whether API Gateway can assume the role.