You are using Fn Project CLI to deploy an OCI Function. Which command is used to build, push, and deploy the function to your application in OCI in a single streamlined step?
The fn deploy command packages the function, pushes the image to the configured registry, and creates or updates the function within the specified application. Supplying --app targets that application, completing build, push and deploy in one streamlined invocation.
Why this answer
The Fn Project CLI command 'fn deploy --app <app-name>' performs the full lifecycle in one step: it builds the function image from the func.yaml, pushes it to the configured Docker registry (such as OCIR), and creates or updates the function and its route in the specified OCI Functions application. This is the canonical streamlined deployment command used with OCI Functions.
Exam trap
1Z0-997-26 often tests whether candidates know the difference between the Fn Project CLI (fn) and the raw OCI CLI (oci), so the trap is selecting an oci functions command that only manages metadata instead of the fn deploy command that builds, pushes, and deploys in one step.
How to eliminate wrong answers
Option A is wrong because 'oci functions function create' is a raw OCI CLI command that only creates the function resource metadata — it does not build or push the container image, so it is not a single streamlined step. Option B is wrong because 'kubectl apply -f function.yaml' is a Kubernetes manifest operation and OCI Functions is not deployed via kubectl manifests. Option C is wrong because 'docker build' and 'docker push' only produce and upload the image; they do not register or deploy the function into an OCI Functions application.