CAP production capstone — SAP Guided Tutorial
Free sample lesson · open to everyone
Putting it all together: a production-readiness review for a CAP app covering model, API contract, security, performance, integration resilience, events, deployment and operations — with the evidence you should be able to show for each.
In this lessonShow sectionsHide sections
Visual overview
The situation: a real project scenario
Before go-live of a procurement app, a readiness review found the app still used a mocked remote service in production config, a list page issued 300 SQL statements, and the admin service lacked @requires. All three were invisible in demos. Fixing them took two days; finding them after go-live would have cost an outage and a data exposure.
Explanation
Production readiness for a CAP app is something you demonstrate with evidence, not something you assert from a feeling after a successful demo — for every area, you should be able to point to a specific test, log, or configuration setting that backs up the claim.
On the model and API side, that means compositions are used wherever a child record genuinely shares its parent's lifecycle, services expose projections scoped to each consumer rather than raw tables, and $metadata has actually been reviewed rather than assumed to be fine.
On security, it means every service defaults to denied access via @requires, instance-level restrictions with $user conditions are in place wherever data is personal or company-specific, and negative authorization tests exist for every role — not just the happy path.
Performance and integration resilience is where a lot of hidden assumptions from cds watch surface for the first time: constant SQL statement counts per request regardless of row count, server-side paging instead of unbounded result sets, explicit timeouts and fallbacks on every remote call, and the persistent outbox enabled so events are published only after a successful commit, with consumers built to tolerate duplicates.
These are exactly the things that "work" in a demo against a handful of rows and mocked services, and then fail under real data volumes and real network conditions.
On the deployment and operations side, readiness means CI actually builds and tests the app, a single .mtar artifact is promoted through environments rather than rebuilt per environment, and schema changes have been rehearsed rather than attempted for the first time against production.
It also means application logs carry correlation IDs, alerts exist for error rates and latency, and there's a runbook spelling out how to restart, roll back, or upgrade tenants, with a named owner for each alert — because "someone will figure it out" is not an operational plan.
The point of pulling all of this together at the end of the track is that it doubles as a strong interview narrative: walking through one CAP app end to end and, for each area — model, API, security, performance, integration, events, deployment, operations — naming the decision you made and the evidence that it actually worked, is a far stronger answer than describing features in isolation.
To put this into practice: take your own app through this checklist and attach one piece of evidence to each line; run a load test against the busiest list page and record statements per request; run negative authorization tests for every role in a hybrid profile; and do a rehearsal deployment that includes a schema change and a rollback.
The bar to clear is that another engineer should be able to read your readiness evidence and agree the app is safe to go live without having to ask you anything further.
Watch out
Common mistakes
- Treating a successful demo as production readiness.
- No negative authorization or load tests.
- No runbook or alert ownership.
- Unrehearsed schema changes in the first production release.
Do this
Best practices
- Keep a readiness checklist in the repository and update it with each release.
- Automate the key evidence (tests, statement counts, security tests) in CI.
- Review the checklist with operations before go-live.
In the interview
Interview angle
Use the capstone as your interview story: describe one CAP app end to end and, for each area — model, API, security, performance, integration, events, deployment, operations — name the decision you made and the evidence you had that it worked.
Practice this lesson
Original educational case studies for SAP consultants, not official SAP certification exam questions. Verify product edition and implementation details against the current SAP documentation.
Quick check
0 of 4 questions attempted
Question 1 of 4
Which is the strongest evidence that a CAP list page is ready for production volume?
Question 2 of 4
During readiness review you find production config still points a remote service to a mock. What is the risk?
Question 3 of 4
What should a production runbook for a CAP app contain?
Question 4 of 4
Which security evidence is most important before go-live?
Practise this in an interview
Answer in your own words and get instant feedback, the way an interviewer would judge it.
1Describe how you would review a CAP application for production readiness.
2Tell me about a CAP issue that only appeared in production and how you would prevent it next time.
Was this lesson helpful?
Keep exploring
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.