


















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















































































Question 1. Which Cloud Foundry component is responsible for receiving API requests from the CLI and routing them to the appropriate internal services? A) Diego Cell B) Cloud Controller C) GoRouter D) NATS Answer: B Explanation: The Cloud Controller is the central API server that authenticates CLI requests and forwards them to other components such as the Diego Scheduler or the Router. Question 2. In a Cloud Foundry deployment, what is the primary purpose of the Diego BBS (Bulletin Board System)? A) Store user credentials B) Manage routing tables C) Persist state of desired and actual container placements D) Serve static assets for apps Answer: C Explanation: The BBS holds the desired state for apps and tasks and tracks the actual state, enabling the Diego Scheduler to reconcile differences. Question 3. Which command lists all organizations a user has access to? A) cf spaces B) cf orgs C) cf target D) cf apps Answer: B
Explanation: cf orgs displays the list of organizations visible to the authenticated user. Question 4. When pushing an app, which phase of a buildpack determines the runtime dependencies required for the app? A) Detect B) Compile C) Release D) Export Answer: B Explanation: The Compile phase installs language runtimes and libraries needed to run the app. Question 5. What does the vcap_services environment variable contain? A) System health metrics B) Routing information for the app C) JSON with bound service credentials D) List of running processes Answer: C Explanation: VCAP_SERVICES is a JSON document that provides connection details for all services bound to the app. Question 6. Which of the following is a recommended practice for achieving zero‑downtime deployments in Cloud Foundry? A) Increase instance count before pushing new version B) Use cf restart on the existing app C) Perform a blue‑green deployment using route mapping D) Delete the app and push the new version immediately
D) Manage authentication for the CF API Answer: B Explanation: ASGs specify egress rules, restricting which external endpoints an app can reach. Question 10. Which buildpack family is based on the Paketo project and supports Cloud Native Buildpacks? A) Java Buildpack B) Node.js Buildpack C) Paketo Buildpack D) Ruby Buildpack Answer: C Explanation: Paketo provides a collection of Cloud Native Buildpacks that replace the older classic buildpacks. Question 11. When using cf push with a manifest file, which attribute sets the maximum memory a container may use? A) disk_quota B) memory C) instances D) health-check-type Answer: B Explanation: The memory attribute in the manifest defines the memory limit for each app instance. Question 12. What does the Diego Auctioneer component do? A) Stores logs for applications
B) Matches app placement requests with available cells C) Manages user authentication D) Provides DNS resolution for routes Answer: B Explanation: The Auctioneer receives placement requests from the Scheduler and runs an auction to allocate containers on Diego Cells. Question 13. Which of the following best describes the role of BOSH in a Cloud Foundry deployment? A) Provides a CLI for developers B) Deploys and manages the lifecycle of CF VMs and other software C) Handles service broker registration D) Routes HTTP traffic to apps Answer: B Explanation: BOSH is an infrastructure orchestration tool that installs, updates, and monitors CF components across IaaS. Question 14. How does Container‑to‑Container (C2C) networking differ from traditional route‑based communication? A) It uses external load balancers B) Apps communicate over the internal overlay network without external routing C) It requires public IP addresses for each container D) It only works for Java apps Answer: B Explanation: C2C networking allows apps to talk directly via the internal network, bypassing the Gorouter.
Explanation: Factor III (“Config”) recommends using environment variables for configuration. Question 18. Which component of Cloud Foundry streams logs from all app containers to external log aggregation systems? A) Diego Cell B) Loggregator Firehose C) NATS D) Router Answer: B Explanation: The Loggregator Firehose provides a unified stream of all platform logs and metrics. Question 19. When using Korifi (CF on Kubernetes), which Kubernetes resource represents a Cloud Foundry app? A) Deployment B) StatefulSet C) CFApp CRD D) Service Answer: C Explanation: Korifi introduces a Custom Resource Definition (CRD) called CFApp to model CF apps on Kubernetes. Question 20. What is the effect of executing cf map-route my-app example.com --hostname api? A) Creates a new domain called api.example.com B) Binds the route api.example.com to the app my-app
C) Deletes the existing route for my-app D) Changes the app’s internal port mapping Answer: B Explanation: cf map-route associates the specified hostname and domain with the target app. Question 21. Which of the following statements about Cloud Foundry service brokers is true? A) They are only used for database services B) They expose a REST API that the Cloud Controller calls to provision services C) They run inside each app container D) They replace the need for buildpacks Answer: B Explanation: Service brokers implement the Open Service Broker API, allowing the Cloud Controller to provision, bind, and manage services. Question 22. What does the cf restage command do? A) Restarts the app without rebuilding the droplet B) Re‑creates the droplet by re‑running the buildpack detection and compile phases C) Deletes all routes for the app D) Increases the memory limit of the app Answer: B Explanation: cf restage forces the platform to rebuild the droplet, applying any changes to the buildpack or environment. Question 23. Which of the following is NOT a valid Cloud Foundry role? A) OrgManager
Question 26. What does the “detect” phase of a buildpack accomplish? A) Downloads source code from the repository B) Determines whether the buildpack is compatible with the app’s source C) Compiles the app into a binary D) Generates the final droplet Answer: B Explanation: During detection, the buildpack checks for specific files or signatures to decide if it can handle the app. Question 27. When configuring a custom domain in Cloud Foundry, which component must be updated to resolve the domain to the Gorouter IPs? A) BOSH director B) DNS provider C) Service broker D) Diego Scheduler Answer: B Explanation: The domain’s DNS records need to point to the public IP(s) of the Gorouter for traffic to reach the platform. Question 28. Which of the following best describes “statelessness” in the context of Cloud Foundry apps? A) Apps must not use any memory B) Apps should not write data to the local filesystem that must survive restarts C) Apps cannot have environment variables D) Apps must run only one instance Answer: B
Explanation: Stateless apps store no persistent state locally; any required data should be in external services. Question 29. What is the primary advantage of using Paketo Buildpacks over classic buildpacks? A) They are written in Java only B) They produce OCI images directly and support layer caching C) They eliminate the need for a manifest file D) They require no detection phase Answer: B Explanation: Paketo (CNB) buildpacks generate OCI images and can cache layers, improving build efficiency. Question 30. Which command lists all routes currently mapped to an app? A) cf routes APP_NAME B) cf app APP_NAME --guid C) cf map-route --list APP_NAME D) cf app APP_NAME Answer: D Explanation: cf app APP_NAME displays details including the routes bound to the app. Question 31. In a multi‑tenant Cloud Foundry installation, what entity isolates resource quotas between different teams? A) Spaces B) Organizations C) Buildpacks
C) Through the VCAP_SERVICES environment variable D) By reading a file in /etc/credentials Answer: C Explanation: Binding injects connection details into VCAP_SERVICES. Question 35. Which of the following is NOT a valid Cloud Foundry scaling operation? A) Vertical scaling (memory/disk) B) Horizontal scaling (instance count) C) Auto‑scaling based on custom metrics (native feature) D) Scaling by changing the buildpack version Answer: D Explanation: Changing the buildpack does not directly scale the app; scaling refers to resources or instance count. Question 36. What is the effect of the cf set-space-quota command? A) Limits the total memory a space can consume B) Increases the number of routes an app can have C) Changes the default buildpack for the space D) Grants OrgManager permissions to all users in the space Answer: A Explanation: Space quotas restrict resources such as memory, instance count, and service instances within a space. Question 37. Which component of Cloud Foundry is responsible for routing HTTP requests to the appropriate app container? A) Diego Cell
C) GoRouter D) Cloud Controller Answer: C Explanation: The Gorouter (GoRouter) receives inbound HTTP(S) traffic and forwards it to app instances based on routes. Question 38. In Korifi, which Kubernetes object stores the binding information between an app and a service instance? A) ServiceBinding CRD B) ConfigMap C) Secret D) PersistentVolumeClaim Answer: A Explanation: Korifi defines a ServiceBinding custom resource that represents the binding relationship. Question 39. What is the purpose of the “manifest.yml” file in Cloud Foundry? A) To define the underlying BOSH deployment B) To describe the desired state of an app, including routes, env vars, and resource limits C) To store application source code D) To configure the Gorouter TLS settings Answer: B Explanation: The manifest provides a declarative description of how the app should be deployed.
Question 43. Which of the following is a recommended way to store persistent data for a Cloud Foundry app? A) Write to the container’s local filesystem B) Use a bound service such as a database or object store C) Store data in environment variables D) Keep data in the app’s source repository Answer: B Explanation: Persistence should be externalized via services; containers are ephemeral. Question 44. What is the primary function of the Diego Cell? A) Manage routing tables for the Gorouter B) Host and run application containers and tasks C) Authenticate API requests from users D) Provide DNS resolution for internal services Answer: B Explanation: Cells are the worker VMs that execute containers scheduled by Diego. Question 45. Which command retrieves the logs of a specific app instance in real time? A) cf logs APP_NAME --recent B) cf tail APP_NAME C) cf logs APP_NAME D) cf stream-logs APP_NAME Answer: C Explanation: cf logs APP_NAME streams live logs; adding --recent fetches recent logs.
Question 46. In Cloud Foundry, what does “droplet” refer to? A) The final compiled artifact (container image) ready to run B) The network packet used for routing C) The log file of an app D) The configuration file for a service broker Answer: A Explanation: A droplet is the result of the staging process, containing the compiled app and its dependencies. Question 47. Which of the following is a valid reason to use a “service key” instead of binding a service? A) To provide credentials to a CI/CD pipeline that runs outside the CF environment B) To increase the number of app instances automatically C) To change the app’s start command D) To enable auto‑scaling of the service itself Answer: A Explanation: Service keys expose credentials for external tools that cannot bind to the app. Question 48. What does the cf create-service command do? A) Registers a new service broker with the platform B) Provisions an instance of a service plan from the marketplace C) Binds an existing service to an app D) Deletes a service instance Answer: B
C) Gorouter D) Cloud Controller Answer: C Explanation: The Gorouter terminates TLS connections and serves the configured certificates. Question 52. What is the effect of setting diego_ssh_enabled: false in a Cloud Foundry deployment? A) Disables SSH access to app containers via cf ssh B) Prevents the use of the cf ssh command for any user C) Stops all SSH traffic to the BOSH director D) Removes the ability to push apps from the CLI Answer: A Explanation: Setting the flag disables SSH for apps, preventing developers from opening a remote shell. Question 53. Which command lists all service instances available in the current space? A) cf services B) cf marketplace C) cf service‑instances D) cf bind-service Answer: A Explanation: cf services shows the provisioned service instances in the targeted space. Question 54. In a Cloud Foundry environment backed by Kubernetes (Korifi), which native Kubernetes feature is used to enforce isolation between organizations? A) Namespaces
B) Pods C) Deployments D) Ingresses Answer: A Explanation: Korifi maps each CF organization to a Kubernetes namespace to provide isolation. Question 55. What does the cf target command accomplish? A) Sets the API endpoint, org, and space for subsequent CLI commands B) Deploys an app to the platform C) Lists all available routes D) Creates a new organization Answer: A Explanation: cf target configures the CLI’s context (API, org, space). Question 56. Which of the following is a valid reason to use a “sidecar” in a Cloud Foundry app? A) To replace the main app process when it crashes B) To provide additional functionality such as log forwarding without modifying the app code C) To increase the number of app instances automatically D) To store user data persistently inside the container Answer: B Explanation: Sidecars run alongside the app and can handle cross‑cutting concerns like metrics or logging. Question 57. When a service broker returns a “plan not found” error during cf create- service, what is the most likely cause?