Exam Developer Cloud Foundry Certified Developer Practice Exam, Exams of Technology

This exam trains candidates in developing assessment items for the CFCD certification. It covers Cloud Foundry architecture, buildpack mechanics, service bindings, app lifecycle, cf CLI operations, and security configurations. Candidates learn item-writing standards, psychometric principles, scenario-based questions, distractor design, blueprint alignment, and exam difficulty calibration. Practical exercises include creating performance tasks, troubleshooting-based questions, and ensuring fairness and technical accuracy.

Typology: Exams

2025/2026

Available from 01/11/2026

shilpi-jain-1
shilpi-jain-1 🇮🇳

4.2

(5)

29K documents

1 / 97

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Exam Developer Cloud Foundry Certified
Developer Practice Exam
**Question 1.** Which command updates the Cloud Foundry CLI to the latest version?
A) cf update
B) cf upgrade
C) cf install-plugin –upgrade
D) cf update-cli
Answer: D
Explanation: `cf update-cli` contacts the official release server and installs the newest CLI binary.
**Question 2.** In the CF hierarchy, which entity contains multiple spaces?
A) API endpoint
B) Organization (Org)
C) Space
D) Application
Answer: B
Explanation: An Org groups related spaces; each space holds its own set of applications and
services.
**Question 3.** Which role can create new organizations?
A) Org Manager
B) Space Manager
C) System Admin
D) Space Developer
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61

Partial preview of the text

Download Exam Developer Cloud Foundry Certified Developer Practice Exam and more Exams Technology in PDF only on Docsity!

Developer Practice Exam

Question 1. Which command updates the Cloud Foundry CLI to the latest version? A) cf update B) cf upgrade C) cf install-plugin – ‑upgrade D) cf update-cli Answer: D Explanation: cf update-cli contacts the official release server and installs the newest CLI binary. Question 2. In the CF hierarchy, which entity contains multiple spaces? A) API endpoint B) Organization (Org) C) Space D) Application Answer: B Explanation: An Org groups related spaces; each space holds its own set of applications and services. Question 3. Which role can create new organizations? A) Org Manager B) Space Manager C) System Admin D) Space Developer

Developer Practice Exam

Answer: C Explanation: Only a System Admin (or a user with the admin scope) can create new orgs; Org Managers manage existing orgs. Question 4. The environment variable VCAP_SERVICES provides what information? A) Application route URLs B) Bound service instance credentials C) Memory limits for the app D) Current buildpack name Answer: B Explanation: VCAP_SERVICES is a JSON object containing credentials and connection details for all services bound to the app. Question 5. Which CLI plugin command lists all installed plugins? A) cf plugins --list B) cf plugin-list C) cf plugins D) cf show-plugins Answer: C Explanation: cf plugins displays a table of installed plugins, their versions, and commands they add. Question 6. How can you discover the flags available for the cf push command? A) cf help push

Developer Practice Exam

Explanation: A droplet is a tarball that includes the staged app, its dependencies, and the start command. Question 9. Which stack provides an Ubuntu‑based root filesystem for applications? A) cflinuxfs B) windows2016fs C) cflinuxfs D) cflinuxfs Answer: A Explanation: cflinuxfs3 is the current Ubuntu‑based stack; cflinuxfs2 is based on older Debian. Question 10. To configure a health check that verifies an HTTP endpoint, which flag is used with cf push? A) – ‑health-check-type=port B) – ‑health-check-http-endpoint=/health C) – ‑health-check-type=http D) – ‑health-check-protocol=http Answer: C Explanation: –‑health-check-type=http tells CF to perform an HTTP GET on the root path (or a custom endpoint if supplied). Question 11. Which application state indicates that the app has been started but is not responding to health checks? A) stopped

Developer Practice Exam

B) started C) crashed D) down Answer: D Explanation: The “down” state means the app is started but failing health checks, so the router stops sending traffic. Question 12. What is the purpose of cf ssh? A) To push code from a remote Git repository B) To open an interactive shell inside a running container C) To restart an application without downtime D) To bind a service to an app Answer: B Explanation: cf ssh creates an SSH session to the app’s container, enabling debugging and one‑off commands. Question 13. In a manifest file, which top‑level key defines the memory limit for an app instance? A) instances B) memory C) disk_quota D) buildpack Answer: B

Developer Practice Exam

D) Simplified scaling Answer: B Explanation: Blue‑green deploys route traffic to a new version (green) while the old version (blue) remains live, allowing seamless cut‑over. Question 17. Which command creates a custom domain called example.com for the current org? A) cf create-domain myorg example.com B) cf add-domain example.com – ‑org myorg C) cf domains create example.com – ‑org myorg D) cf set-domain myorg example.com Answer: A Explanation: cf create-domain ORG DOMAIN registers a new domain under the specified org. Question 18. When you run cf marketplace, what information is displayed? A) All applications currently deployed B) Available service offerings and their plans C) List of organizations and spaces D) All buildpacks installed on the system Answer: B Explanation: cf marketplace shows services (e.g., databases, message queues) that can be provisioned, along with plan details.

Developer Practice Exam

Question 19. Which command creates a user‑provided service instance named my-redis with a URL parameter? A) cf create-user-provided-service my-redis – ‑url redis://host: B) cf ups my-redis – ‑url redis://host: C) cf create-service user-provided my-redis – ‑url redis://host: D) cf create-upsi my-redis – ‑url redis://host: Answer: A Explanation: cf create-user-provided-service (or its alias cf ups) registers an external service with custom credentials. Question 20. After binding a service to an app, where are the credentials injected? A) In the app’s Dockerfile B) As environment variables inside VCAP_SERVICES C) In the app’s manifest file D) In a configuration file on the host OS Answer: B Explanation: Binding adds a JSON entry to VCAP_SERVICES, which the app can read at runtime. Question 21. What API does a service broker implement to provision services on Cloud Foundry? A) Open Service Broker API (OSB) B) Cloud Service Provisioning API C) Service Catalog API D) CF Service Broker Specification

Developer Practice Exam

A) Direct HTTP requests between apps without leaving the Diego cell B) Automatic load balancing across multiple orgs C) Sharing of environment variables between apps D) Persistent storage sharing Answer: A Explanation: C2C creates an internal network allowing apps to communicate via their internal IPs, improving latency and security. Question 25. What is a route service used for? A) To provide DNS resolution for custom domains B) To intercept and process HTTP requests before they reach the app C) To automatically scale an app based on traffic D) To store logs in an external system Answer: B Explanation: A route service sits in the request path, allowing authentication, transformation, or logging before the request hits the destination app. Question 26. Which of the following is NOT one of the 12‑Factor App principles? A) Config stored in the environment B) Build, release, run separation C) Monolithic codebase per repo D) Stateless processes Answer: C

Developer Practice Exam

Explanation: The 12‑Factor methodology encourages a single codebase per service, not monolithic applications spanning many services. Question 27. In a microservices architecture on CF, which pattern helps prevent cascading failures? A) Bulkhead B) Singleton C) Tight coupling D) Direct database sharing Answer: A Explanation: The bulkhead pattern isolates failures, ensuring one service’s issues don’t affect others. Question 28. Which component streams logs from app containers to external log drains? A) Diego Scheduler B) Loggregator C) Gorouter D) NATS Answer: B Explanation: Loggregator aggregates logs and metrics, and can forward them to syslog or HTTP drains. Question 29. When troubleshooting a crashing app, which command shows the most recent logs without streaming? A) cf logs myapp – ‑tail

Developer Practice Exam

Explanation: cf events APP_NAME lists lifecycle events for the given app, useful for root‑cause analysis. Question 32. Which flag disables the default health check when pushing an app? A) – ‑no-health-check B) – ‑health-check-type=none C) – ‑disable-health-check D) – ‑skip-health-check Answer: B Explanation: –‑health-check-type=none tells CF not to perform any health verification after start. Question 33. When using a Docker image as the app source, which command pushes it to CF? A) cf push myapp – ‑docker-image myrepo/myimage B) cf docker-push myapp myrepo/myimage C) cf push myapp – ‑docker‑image=myrepo/myimage – ‑no-start D) cf push myapp – ‑docker‑registry myrepo/myimage Answer: A Explanation: The –‑docker-image flag specifies the Docker image to stage; cf push handles the rest. Question 34. Which command lists all routes bound to the app inventory? A) cf routes – ‑app inventory

Developer Practice Exam

B) cf app inventory – ‑routes C) cf routes – ‑service inventory D) cf map-route inventory Answer: A Explanation: cf routes – ‑app APP_NAME displays the routes (domains + paths) associated with the app. Question 35. What is the purpose of the cf set-env command? A) To permanently modify the manifest file B) To set an environment variable for a running app (requires restage) C) To change the default buildpack D) To create a new service instance Answer: B Explanation: cf set-env APP_NAME VAR VALUE updates the env var; the app must be restaged for the change to take effect. Question 36. Which of the following statements about buildpacks is true? A) Only one buildpack can be used per app B) Buildpacks run after the app has started C) Buildpacks are responsible for detecting language, compiling, and providing a start command D) Buildpacks are stored in the app’s source repository Answer: C

Developer Practice Exam

B) cf delete-route example.com – ‑hostname www C) cf remove-route myapp example.com – ‑hostname www D) cf route-unmap myapp example.com Answer: A Explanation: cf unmap-route detaches the route from the app while leaving the route definition intact. Question 40. What is the default health check type for most buildpacks? A) port B) process C) http D) none Answer: A Explanation: Unless overridden, Cloud Foundry uses a TCP port health check to verify that the app is listening. Question 41. Which option in a manifest file tells CF to use a specific buildpack by name? A) buildpacks: B) buildpack: C) stack: D) runtime: Answer: B Explanation: The singular buildpack key specifies the exact buildpack URL or name to use.

Developer Practice Exam

Question 42. When you bind a service to an app, which CLI command is used? A) cf bind-service APP SERVICE_INSTANCE B) cf attach-service APP SERVICE_INSTANCE C) cf link-service APP SERVICE_INSTANCE D) cf connect-service APP SERVICE_INSTANCE Answer: A Explanation: cf bind-service creates the binding and updates VCAP_SERVICES. Question 43. Which of the following is a valid reason to use a user‑provided service instead of a marketplace service? A) The service is a managed PostgreSQL instance not listed in the marketplace B) You need automatic scaling of the service C) You want CF to handle service updates automatically D) The service requires a custom buildpack Answer: A Explanation: UPSIs allow you to register credentials for any external service not available via the marketplace. Question 44. What does the cf apps command display? A) All services in the current org B) List of applications in the targeted space with their state and URLs C) All routes across the org D) Buildpack versions installed on the system

Developer Practice Exam

B) Store them in a config file inside the repository C) Inject them via environment variables (e.g., VCAP_SERVICES) D) Place them in the manifest under env: Answer: C Explanation: The 12‑Factor methodology advises storing config, including secrets, in the environment. Question 48. What does the cf enable-ssh command do? A) Allows any user to SSH into the Diego cell B) Enables SSH access for a specific app C) Starts the SSH daemon on the CF API server D) Grants root access to the app container Answer: B Explanation: cf enable-ssh APP_NAME permits cf ssh connections to that app’s container. Question 49. Which component of Cloud Foundry routes HTTP traffic to the appropriate app instance? A) Diego Scheduler B) Gorouter C) NATS Messaging Bus D) Loggregator Answer: B Explanation: Gorouter is the HTTP(S) router that matches incoming requests to mapped routes.

Developer Practice Exam

Question 50. To view the recent audit events for your org, which command is used? A) cf org-events myorg B) cf events – ‑org myorg C) cf audit myorg D) cf events myorg Answer: A Explanation: cf org-events ORG_NAME lists actions performed within the organization. Question 51. Which flag on cf push tells CF to use a specific stack? A) – ‑stack=cflinuxfs B) – ‑rootfs=cflinuxfs C) – ‑os=cflinuxfs D) – ‑base-stack=cflinuxfs Answer: A Explanation: –‑stack selects the root filesystem stack for the app. Question 52. What is the effect of running cf stop myapp? A) Deletes the app from the platform B) Terminates all running instances but leaves the app definition intact C) Scales the app to zero instances automatically D) Restarts the app with a fresh droplet