Apigee API Analytics for orders-prod and users-prod traffic

PCD By islever Editorial Last updated

Short answer

B Grant Apigee Analytics Viewer to the operations team on orders-prod and users-prod, then review traffic patterns in Apigee API Analytics.

Question

You work for an ecommerce company, and you are responsible for deploying and managing multiple APIs. The operations team wants to review the traffic patterns in the orders-prod and users-prod environments. These are the only environments in the store-prod environment group. You want to follow Google-recommended practices. What should you do?
  1. Assign the Apigee Analytics Viewer IAM role to the operations team for both environments. Use Cloud Monitoring to review traffic patterns.
  2. Assign the Apigee Analytics Viewer IAM role to the operations team for both environments. Use Apigee API Analytics to review traffic patterns. Correct Answer
  3. Assign the Apigee API Reader IAM role to each user of the operations team for both environments. Use Cloud Monitoring to review traffic patterns.
  4. Assign the Apigee API Reader IAM role to each user of the operations team for both environments. Use Apigee API Analytics to review traffic patterns.

Key Takeaways

Apigee API Analytics is the native surface for inspecting API traffic patterns across environments, and the Analytics Viewer role grants read-only access to that data. Granting that role to the operations team on both orders-prod and users-prod follows least privilege and group-based IAM. Apigee API Reader and Cloud Monitoring do not provide the same environment-level API traffic review.

Expert Analysis

B. Cloud Endpoints provides API management including versioning, monitoring, and quotas for multiple APIs. Apigee (A) is enterprise-grade.

The decisive distinction for orders-prod and users-prod is not the "enterprise-grade" label but which Apigee surface exposes API traffic patterns and which IAM role can read that surface. Apigee API Analytics is the API-aware analytics interface: it breaks traffic down by proxy, environment, developer app, target, response code and latency. Apigee Analytics Viewer is the read-only role built for that data. Pairing the role with the analytics interface gives the operations team visibility across both environments in the store-prod environment group without granting proxy-editing or deployment rights.

Option B is the only combination that gets both halves right. The operations team is a group, so granting Analytics Viewer once to the team for orders-prod and once for users-prod follows Google-recommended group-based IAM and avoids per-person role drift. The two environment-scoped grants are proportionate: store-prod contains only those two environments, so there is no need for organization-wide analytics visibility. The team can then open Apigee API Analytics and compare traffic for the orders API against the users API.

Option A assigns the correct role but directs the team to the wrong review surface. Cloud Monitoring is useful for operational metrics, dashboards and alerting on Apigee resources, but API-level traffic analysis — which proxy, path, app or target generated the calls, and how error and latency distributions differ between orders-prod and users-prod — belongs in Apigee API Analytics. Choosing Cloud Monitoring after correctly granting Analytics Viewer creates a permissions-to-tool mismatch: the team has access to analytics data but is looking in a general infrastructure monitoring console.

Options C and D fail on the role. Apigee API Reader is read-only access to API proxy configuration and related API artifacts; it does not grant access to analytics reports or traffic data. A user with only API Reader can inspect proxies but cannot answer the operations team's traffic-pattern questions. D compounds the problem by choosing the right analytics tool but the wrong permission, so the team would still be blocked when opening Apigee API Analytics. C additionally inherits A's Cloud Monitoring mismatch, and both C and D assign roles per user instead of to the operations team.

A key mechanism here is IAM scope in Apigee: roles can be granted at different resource levels, and the narrowest grant that covers the required environments is preferred. For this review, the required resource boundary is orders-prod and users-prod; an environment-level Analytics Viewer grant on each covers the group's two environments. Granting at a broader organization level would let the team read analytics for APIs outside store-prod, which the review does not require. The group-based assignment also means a new operations analyst inherits the same read-only analytics access without a separate per-user grant. That separation of duties keeps API configuration and deployment rights out of the operations team's hands while still letting it answer capacity and error-trend questions.

The correct action is therefore to give the operations team read-only analytics access on both named environments and have them use the Apigee-native analytics interface.

Exam Strategy

When an Apigee question asks about reviewing API traffic, separate the permission from the console: Analytics Viewer grants read-only analytics, while API Reader grants visibility into proxy configuration, not analytics. Prefer role grants to a group at the narrowest environment scope over per-user assignments, because Google Cloud recommends group-based IAM and least privilege. If an option pairs the right role with Cloud Monitoring but Apigee API Analytics is available, choose the Apigee-native analytics surface for API-level traffic patterns.

Practice All PCD Questions

Access 84 questions with complete answers and detailed explanations.

View Full PCD Practice Test →

← Back to PCD Study Guide