Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk4 min

Apigee X Interview Question: How Do You Store Environment-Specific Configuration?

Use separate environment-scoped KVMs for Apigee X runtime configuration that differs between test and production. Property sets suit small, read-only design-time values; Kubernetes Secrets are for hybrid runtime-plane needs.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For runtime values that differ between test and production, use a separate environment-scoped key value map (KVM) in each Apigee X environment, then retrieve values with the KeyValueMapOperations policy. Use a property set instead for a small, design-time-known set of values the proxy only needs to read. Kubernetes Secrets are an option only for Apigee hybrid deployments.

How to answer the interview question

A clear answer is: “I would keep environment-dependent values out of hard-coded proxy logic. For runtime values such as target URLs or routing lookups, I would create an environment-scoped KVM in each environment, populate the corresponding test and production values, and retrieve them through KeyValueMapOperations. If the values are a small, design-time-known set that the proxy only reads, I would consider a property set. For sensitive KVM values, I would retrieve them into a private.-prefixed variable so they are not exposed in Debug sessions. If sensitive data must remain in the runtime plane in a hybrid deployment, I would consider Kubernetes Secrets.”

This approach keeps the proxy logic consistent while letting each environment supply its own configuration. Matching map names and keys across environments can also make deployments easier to operate.

Choose the storage mechanism that fits the values

Mechanism Use it when Scope and access Key limitation
Environment-scoped KVM Values are runtime configuration, such as routing rules, lookup tables, or data that is not known at design time. Proxies deployed in that environment can access it. KVMs can also be scoped to a single API proxy or the organization. Use a private.-prefixed variable when retrieving sensitive values to keep them out of Debug/Trace output. Google Cloud: Using key value maps
Property set The configuration is small and known at design time, and proxy flows only need to read it. Environment- or API-proxy-scoped values are exposed to proxy flows as read-only variables. Proxy code cannot change the values at runtime. Administrators can change an environment’s property set without redeploying proxies. Google’s guide describes a few to a few hundred keys and a total size under 110 KB. Google Cloud: Accessing configuration data
Kubernetes Secret Sensitive values must remain in the runtime plane. Environment scope in Apigee hybrid. This is a hybrid option, not the standard Apigee X cloud option. Google Cloud: About environments and environment groups

Google describes property sets as suitable for route rules, but they are not a substitute for runtime KVM operations when the proxy needs to look up, write, or delete entries. Google Cloud: Accessing configuration data

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set up separate KVMs for environments

  1. Create an environment-scoped KVM for each Apigee X environment, such as test and production. Environment scope makes the map available to proxies deployed in that environment. Google Cloud: Using key value maps
  2. Populate each map with the values appropriate to its environment. Reusing key names across maps lets the proxy retrieve the same configuration key after deployment while each environment supplies its own value.
  3. Use KeyValueMapOperations in the proxy to retrieve the needed entry. The policy supports PUT, GET, and DELETE operations, and KVMs can also be managed through the Apigee UI or APIs. Google Cloud: KeyValueMapOperations policy
  4. When a retrieved value is sensitive, store it in a variable whose name starts with private., for example private.targetUrl. This prevents the value from appearing in Debug/Trace output.

Understand scope and security before choosing

Scope controls who can access a KVM

  • API proxy scope: only the specified proxy can access the map.
  • Environment scope: proxies in one environment can access the map, making it appropriate for environment-specific values.
  • Organization scope: the map can be accessed across environments in the organization.

Apigee X and hybrid KVM entries are encrypted; unencrypted KVMs are not supported. Encryption at rest does not prevent a retrieved value from appearing in a Debug session, which is why sensitive retrievals should use a private.-prefixed variable. Google Cloud: Using key value maps Google Cloud: KeyValueMapOperations policy

Use property sets for static, read-only configuration

Property-set values are available as read-only flow variables and are intended for a small number of values stored in memory. They work well when values are known during design and administrators may need to update an environment’s configuration without redeploying its proxies. They do not let proxy code alter values at runtime. Google Cloud: Accessing configuration data

Reserve Kubernetes Secrets for hybrid runtime-plane needs

For Apigee hybrid, Kubernetes Secrets can hold sensitive values such as credentials or private keys when the requirement is to keep that data in the runtime plane. This option does not apply to Apigee X’s standard cloud deployment model. Google Cloud: About environments and environment groups

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Keep the environment design operationally manageable

Keep environment-specific values in the environment-level configuration mechanism rather than branching proxy code on environment names. Choose scope deliberately: environment scope separates test from production, while organization scope makes values available across environments. Google recommends no more than 3,000 API proxy basepaths per environment or environment group for optimal performance; exceeding that recommendation can increase deployment latency. This is an environment-scale recommendation, not a KVM capacity limit. Google Cloud: About environments and environment groups

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.