ERPClimb logoERPClimb

SAP BTP Integration Cloud Foundry Interview Questions

In SAP BTP Integration rounds, cloud foundry questions are where configuration knowledge meets day-to-day behaviour — what a setting does, and what breaks in a live system when it is wrong.

Cloud Foundry is one of the two primary runtime environments on SAP BTP, providing an organization/space-based multi-tenant platform for deploying, scaling, and operating custom applications and integration components. This topic covers the CF architecture, subaccount-to-org mapping, application and service lifecycle, connectivity, and operational practices needed to run production workloads on SAP BTP Cloud Foundry.

This page carries 8 reviewed SAP BTP Integration cloud foundry interview questions, each with a complete written answer and no sign-in required. The set breaks down into 2 foundational, 4 mid-level and 2 advanced questions, so you can start at the top for a first interview or skip ahead to the scenario-based items for a senior round.

Rehearse these out loud rather than reading them. If you can explain each answer in your own words, including one realistic way it goes wrong on a project, you are covering what a normal SAP BTP Integration round on cloud foundry expects.

8 Cloud Foundry questions with answers

easyCloud Foundry

1. What are the core concepts of Cloud Foundry, and how would you explain them clearly in an SAP interview?

Cloud Foundry is one of the two primary runtime environments on SAP BTP, providing an organization/space-based multi-tenant platform for deploying, scaling, and operating custom applications and integration components. This topic covers the CF architecture, subaccount-to-org mapping, application and service lifecycle, connectivity, and operational practices needed to run production workloads on SAP BTP Cloud Foundry. Key lesson areas: Deploying and Managing Application Lifecycle in Cloud Foundry with Manifests and Service Bindings; Managing Application Lifecycle, Service Bindings, and Environment Configuration in Cloud Foundry; Understanding Cloud Foundry Organizations, Spaces, and Entitlements on SAP BTP Learn how applications, service instances, and service bindings work together in SAP BTP Cloud Foundry, including how bound credentials reach an application at runtime and how to manage configuration safely across environments. Learn how to structure a manifest.yml, push and scale applications, bind service instances, and understand how VCAP_SERVICES and environment variables drive runtime configuration. Learn why SAP BTP uses Cloud Foundry as a runtime, how orgs and spaces map to subaccounts, and how entitlements and quotas control what you can deploy.
easyCloud Foundry

2. A new developer stored database credentials in a config file. Explain how Cloud Foundry apps should get service credentials.

In Cloud Foundry, apps run in spaces within the subaccount's org. Services (e.g. HANA HDI, XSUAA, destination) are created as service instances and bound to the app; binding injects credentials into the app environment (VCAP_SERVICES), read by libraries at runtime. After binding changes, restage the app. External clients use service keys. Credentials therefore never live in code or Git; rotate them by recreating bindings/keys.
mediumCloud Foundry

3. How would you apply Cloud Foundry in a real SAP project? Walk through the design or implementation approach.

A custom Node.js middleware application deployed on Cloud Foundry called an S/4HANA Cloud API through a destination service instance. During a routine subaccount cleanup, an administrator deleted and recreated the destination service instance to update a connectivity property, assuming the application would automatically pick up the change. The application continued returning stale destination configuration and eventually started failing authorization checks, because it was still holding onto environment data injected at its last restart. The support team initially suspected a destination misconfiguration in the subaccount, but resolution required unbinding and rebinding the destination service instance to the application and restarting it, after which the correct destination properties were injected into VCAP_SERVICES and connectivity was restored. The incident was later used to justify adding a documented step to the team's change process: any service instance recreation must be followed by explicit rebind-and-restart of all dependent applications. A new integration consultant joins a project and is given BTP cockpit access but cannot push a simple test application. After 30 minutes of confusion, the lead discovers the consultant was targeting the API endpoint for a different region than the one where the customer's subaccount actually lives. Once the correct regional endpoint and org/space were targeted, the push succeeded immediately. This kind of region mismatch is extremely common on multi-region BTP global accounts with subaccounts spread across Europe, US, and Asia-Pacific data centers. A project team rotates the client secret on an XSUAA service instance as part of a security audit but only re-binds the service without restaging the dependent application. The application continues to fail authentication calls for hours because the old credentials were still cached in the running container's environment. The incident is resolved once the team restages the app, which forces CF to re-materialize VCAP_SERVICES with the new credentials, and the team subsequently adds a mandatory restage step to their credential rotation runbook. Interview focus: Interviewers commonly probe whether a candidate understands that service bindings, not just service instance existence, deliver credentials to an application, and that restarts or restages are usually required for changes to take effect. A strong answer explains the separation between platform-injected secrets (via bindings) and application-level configuration (via environment variables), and can describe a
mediumCloud Foundry

4. Suppose you inherit an existing Cloud Foundry solution. How would you review it before making a change?

First understand the current business requirement, dependencies, configuration or code path, integrations, production usage, and known pain points. Do not redesign before establishing the existing behavior. Lesson areas to review: Deploying and Managing Application Lifecycle in Cloud Foundry with Manifests and Service Bindings; Managing Application Lifecycle, Service Bindings, and Environment Configuration in Cloud Foundry; Understanding Cloud Foundry Organizations, Spaces, and Entitlements on SAP BTP Known mistakes: • Assuming an application automatically reflects changes to a bound service instance without a restart or restage. • Deleting and recreating a service instance instead of updating it in place, causing all dependent bindings to go stale. • Storing secrets as plain application environment variables instead of using service bindings, losing platform-level credential lifecycle benefits. • Copying VCAP_SERVICES values into hardcoded configuration files, which then diverge from the live bound instance over time. • Not distinguishing between space-specific service instances when promoting the same application code across dev, test, and production landscapes. • Forgetting that some buildpacks only read environment variables at process startup, so runtime environment changes without a restart have no effect. • Rebinding or recreating a service instance without restaging the application, leaving stale credentials active in the running container • Hardcoding service URLs or credentials instead of reading them from VCAP_SERVICES at runtime, breaking portability between environments • Scaling memory upward to fix a performance problem that is actually caused by inefficient code or a missing index, wasting entitled quota • Not checking manifest.yml into version control, leading to inconsistent or undocumented deployments across team members • Assuming `cf logs` retains history indefinitely, then losing critical crash diagnostics because no external log aggregation was configured • Targeting the wrong regional CF API endpoint, leading to 'org not found' errors even though the org clearly exists in the cockpit • Assuming entitlements are unlimited and only discovering quota exhaustion when a push fails in production • Giving broad Org Manager access to developers who only need Space Developer, violating least-privilege principles • Confusing subaccount-level role collections (used for cockpit and platform services) with CF org/space roles (used for CLI-level app operations) • Not documenting which space (dev/test/prod) maps to which purpose, causing accid
mediumCloud Foundry

5. Deployments differ between test and production spaces. How do you make Cloud Foundry deployments reproducible?

Package the application as a multitarget application: mta.yaml declares modules (services, app router, UI) and resources (XSUAA, HDI container, destination) with dependencies; build with mbt into an .mtar and deploy with cf deploy, which creates and updates resources automatically. Use extension descriptors (.mtaext) for environment-specific values, version archives, run deployments from a CI/CD pipeline, and transport the same .mtar across environments.
mediumCloud Foundry

6. A production Cloud Foundry app crashes intermittently and a rotated credential broke another app. How do you operate CF apps reliably?

Use cf events and cf logs to find crash causes (out-of-memory, health check failures, startup errors); scale memory/instances appropriately and fix leaks; configure proper health checks. Manage credentials via bindings and user-provided services; after rotation, rebind/restage dependent apps. Limit service keys to real external clients. Use blue-green deployments for zero downtime and monitor with application logging.
hardCloud Foundry

7. A production issue is reported in Cloud Foundry. What would you check first, and how would you troubleshoot it systematically?

Start by reproducing and scoping the issue, then validate the relevant master/configuration/runtime data and isolate the failing step before changing anything. Common failure patterns from the lesson set: • Assuming an application automatically reflects changes to a bound service instance without a restart or restage. • Deleting and recreating a service instance instead of updating it in place, causing all dependent bindings to go stale. • Storing secrets as plain application environment variables instead of using service bindings, losing platform-level credential lifecycle benefits. • Copying VCAP_SERVICES values into hardcoded configuration files, which then diverge from the live bound instance over time. • Not distinguishing between space-specific service instances when promoting the same application code across dev, test, and production landscapes. • Forgetting that some buildpacks only read environment variables at process startup, so runtime environment changes without a restart have no effect. • Rebinding or recreating a service instance without restaging the application, leaving stale credentials active in the running container • Hardcoding service URLs or credentials instead of reading them from VCAP_SERVICES at runtime, breaking portability between environments • Scaling memory upward to fix a performance problem that is actually caused by inefficient code or a missing index, wasting entitled quota • Not checking manifest.yml into version control, leading to inconsistent or undocumented deployments across team members • Assuming `cf logs` retains history indefinitely, then losing critical crash diagnostics because no external log aggregation was configured • Targeting the wrong regional CF API endpoint, leading to 'org not found' errors even though the org clearly exists in the cockpit • Assuming entitlements are unlimited and only discovering quota exhaustion when a push fails in production • Giving broad Org Manager access to developers who only need Space Developer, violating least-privilege principles • Confusing subaccount-level role collections (used for cockpit and platform services) with CF org/space roles (used for CLI-level app operations) • Not documenting which space (dev/test/prod) maps to which purpose, causing accidental deployments to the wrong environment Checks and practices: • Always confirm the targeted API endpoint, org, and space before pushing or deleting anything, especially in shared environments • Use separate spaces for dev, test, and production rather than relying on naming conventions within a single space • Assig
hardCloud Foundry

8. What are the most important design decisions, trade-offs, and best practices in Cloud Foundry?

• Always confirm the targeted API endpoint, org, and space before pushing or deleting anything, especially in shared environments • Use separate spaces for dev, test, and production rather than relying on naming conventions within a single space • Assign the minimum necessary role (typically Space Developer) to hands-on developers and reserve Org Manager for platform administrators • Review entitlements proactively during project planning so quota exhaustion does not block a go-live • Maintain a simple internal map of subaccount-to-org-to-space naming so new team members can orient quickly • Keep manifest.yml files in version control alongside application code and treat them as part of the reviewed deployment artifact • Always restage or restart an application after any service binding change to ensure new credentials are active • Prefer horizontal scaling for resilience and only increase memory per instance when profiling shows genuine memory pressure • Forward application logs to a centralized log management service rather than relying solely on short-lived CF log buffers • Use distinct route names and a promotion strategy (blue-green or route remapping) to avoid downtime during redeployment • Treat service instance recreation as an event requiring rebind and restart of every dependent application, and document this in change procedures. • Keep secrets in service-bound credentials rather than duplicating them into plain environment variables or configuration files. • Use space separation to naturally scope different service instances and credentials per landscape stage (dev, test, production). • Verify actual runtime configuration with environment inspection commands rather than assuming intended configuration matches what the application received. • Automate binding and restart steps in deployment pipelines so manual steps are not skipped during promotions or instance changes. • Separate non-secret operational configuration from credential management so each can be changed independently without unnecessary risk. Relevant lesson areas: Deploying and Managing Application Lifecycle in Cloud Foundry with Manifests and Service Bindings; Managing Application Lifecycle, Service Bindings, and Environment Configuration in Cloud Foundry; Understanding Cloud Foundry Organizations, Spaces, and Entitlements on SAP BTP A strong answer should connect the technical or functional choice to maintainability, upgrade impact, performance, security, supportability, and clean-core principles where applicable.

Related lesson

BTP Cloud Foundry Part 2: Deploying with Manifests and Multitarget Applications

Related topics

Next practice step

Go deeper on this topic