API / APIGEE Gateway Interview Questions
What are Apigee Policies and what categories are available?
Policies are the processing building blocks of an Apigee proxy. Each policy is a pre-built, reusable, XML-configured processing step that you attach to a flow. Because policies are declarative, most tasks require no custom code. Apigee provides over 40 built-in policies organised into five categories.
| Category | Examples | Purpose |
|---|---|---|
| Security | VerifyAPIKey, OAuthV2, JWT, HMAC, BasicAuthentication, AccessControl | Authentication, authorisation, token validation, IP allowlisting |
| Traffic management | Quota, SpikeArrest, ResponseCache, ConcurrentRateLimit | Rate limiting, caching, protecting backends from traffic spikes |
| Mediation / transformation | AssignMessage, ExtractVariables, JSONToXML, XMLToJSON, KeyValueMapOperations | Transforming request/response content, setting variables, protocol conversion |
| Extension | ServiceCallout, JavaCallout, JavaScriptCallout, PythonScript | Calling external services, executing custom code |
| Data | MessageLogging, StatisticsCollector | Logging, custom analytics |
<!-- VerifyAPIKey policy example --> <VerifyAPIKey name="VerifyAPIKey"> <DisplayName>Verify API Key</DisplayName> <APIKey ref="request.header.x-api-key"/> </VerifyAPIKey> <!-- Quota policy example --> <Quota name="Quota" type="rollingwindow"> <Interval>1</Interval> <TimeUnit>minute</TimeUnit> <Allow count="100"/> </Quota> <!-- AssignMessage policy example --> <AssignMessage name="AM.SetBackendHeaders"> <AssignTo createNew="false" type="request"/> <Set> <Headers> <Header name="x-internal-caller">apigee</Header> </Headers> </Set> <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables> </AssignMessage>
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
