Intrigued by the art of cloud architecture? Discover how to design, develop, and manage robust, secure, scalable, and dynamic solutions on Google Cloud as you prepare for the Professional Cloud Architect exam!
Prepare and test your skills
Prepare and test your skills
Apigee is a platform used to design, secure, and scale APIs by acting as a facade for backend services. This proxy layer allows development teams to decouple the client-facing interface from the underlying code, so they can update backend systems without breaking the experience for the app developers. To ensure operational visibility, Apigee provides API Analytics to track long-term usage trends and performance. It automatically collects data like latency, error rates, and IP addresses to help operations teams monitor system health.
Key monitoring features include real-time dashboards for viewing traffic patterns, custom reports to analyze specific business metrics, and alerting to notify teams of service disruptions. Managing the API lifecycle involves using Developer Portals to simplify how internal and external users find and use services. These portals provide documentation and self-service onboarding, which helps developers get started quickly with API keys. When managing implementation, teams can choose between Apigee (fully cloud-hosted) or Apigee Hybrid. In a hybrid deployment, the runtime plane stays within the customer’s private network while the management plane runs in Google Cloud. This model is ideal for organizations that need to keep sensitive data within their own enterprise boundaries.
Successful deployment requires applying policies for security, such as OAuth 2.0 and rate limiting, at the proxy level. Integrating with services like Cloud Armor adds a Web Application Firewall (WAF) layer to protect against malicious attacks. These best practices help ensure that the solution is secure, scalable, and easy to maintain across different environments.
Apigee acts as a mediation layer that sits between the client and the backend microservices. This layer is crucial for API management because it allows teams to decouple the frontend from the backend systems. By using an API Proxy, developers can handle request routing and processing without forcing the client to interact directly with complex backend code. Two major issues that hurt system performance are slow backends and inadequately sized backends. A slow backend leads to high latency and poor user experiences, while an undersized backend can crash during traffic spikes.
A system architecture diagram showing client apps routing through Google Cloud Armor and an Apigee API proxy to reach backend microservices, with Apigee Analytics monitoring traffic.
One of the best practices for performance optimization is the strategic use of Response Caching. Caching stores copies of backend responses within the Apigee gateway so that future identical requests do not have to travel all the way to the server. This technique significantly reduces latency and lowers the overall processing load on backend microservices. When systems face extreme traffic, they should be designed for graceful degradation. This means the application continues to work, perhaps with reduced performance, instead of failing completely. Key strategies for maintaining reliability include:
Successful API management requires constant Observability through monitoring and analytics. Teams should regularly simulate overload conditions to see how the mediation layer handles stress. By monitoring traffic spikes in real-time, developers can adjust their scaling policies before a performance issue impacts the end user.
Apigee acts as a critical API gateway that manages the communication between users and backend services. During the implementation phase, it is used to create API proxies, which serve as a protective layer for your application. This approach ensures that backend systems remain secure while providing a consistent interface for developers to use. Implementing robust security is essential to protect services from unauthorized access. You should use OAuth 2.0 and API key validation to verify the identity of every user making a request. Additionally, integrating Google Cloud Armor provides a Web Application Firewall (WAF) that filters out malicious web-based attacks at the network edge.
To prevent resource exhaustion, teams must implement traffic management policies like Spike Arrest and Rate Limiting. Spike Arrest protects against sudden surges in traffic that could crash a server, while Rate Limiting controls the total number of requests a user can make over time. These policies ensure that your backend services stay responsive even during periods of heavy use. Graceful degradation is a design strategy where a system continues to work during high load, even if some features are limited. By using throttling, the system can drop excess requests at the frontend layer to protect more sensitive backend components.
Successful deployment requires continuous monitoring and regular testing of overload scenarios. Teams should configure Service Networking to allow for private connectivity between the VPC and Google services. Key deployment steps include setting up environment groups to manage different stages of the API lifecycle, choosing between internal access for private tools or external access for public users, and using caching to reduce the direct load on backend servers.
In a standard Apigee deployment, the platform is fully cloud-hosted, whereas in Apigee Hybrid, the runtime plane resides within the customer's private network while the management plane runs in Google Cloud. This hybrid model allows organizations to keep sensitive data strictly within their own enterprise boundaries.
Spike Arrest protects backend systems against sudden surges in traffic that could crash a server, whereas Rate Limiting controls the total volume of requests a user can make over a specific period of time. Both policies serve as traffic management mechanisms to prevent resource exhaustion and keep backend services responsive.
Response caching stores copies of backend responses directly within the Apigee gateway so future identical requests do not travel all the way to the server. This technique significantly reduces response latency and lowers the processing load on backend microservices.
Google Cloud Armor adds a Web Application Firewall (WAF) layer at the network edge to filter out malicious web-based attacks before they reach backend services. This complements proxy-level Apigee security policies such as OAuth 2.0 and API key validation.
A retail company hosts a set of microservices on Google Kubernetes Engine (GKE) behind an external Application Load Balancer. During flash sale events, public client applications generate massive sudden surges in API requests that overload backend database services. Additionally, security teams require verified identity for third-party developers, web application firewall (WAF) filtering against OWASP Top 10 vulnerabilities, and mitigation against automated bot traffic.
Which multi-layered architecture should you recommend to meet these requirements?
Deploy regional Managed Instance Groups with outlier detection policies and require mutual TLS (mTLS) client certificates on all public consumer requests
Pass static API keys as URL query parameters in client requests and configure URL map fault injection policies to throttle traffic
Configure an external Application Load Balancer with Cloud Armor and reCAPTCHA Enterprise integrated with Apigee as an API gateway using Spike Arrest and OAuth 2.0 verification policies
Configure Cloud Identity-Aware Proxy (IAP) on the GKE backend services and implement Cloud Armor Layer 7 rate limiting rules on the external Application Load Balancer