Exam Information
Free practice questions with explanations
Linux Foundation CNPA Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 13
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Continuous Delivery & Platform Engineering
A platform team runs Argo CD to deploy services from a Git repository into a production Kubernetes cluster. An engineer pushed a hotfix directly to the production namespace using kubectl patch to restore service during an incident. Two hours later, Argo CD shows the Application as OutOfSync and its automated sync policy has not corrected the change. The security team requires that the Git repository remain the single source of truth and that manual cluster changes never persist. Which action should the platform engineer take FIRST?
Correct Answer: CExplanationArgo CD treats Git as the desired state, so the sustainable fix is to record the hotfix in the repository and let the controller converge the cluster to it. This keeps the audit trail intact and honours the single source of truth requirement. Disabling automated sync leaves the drift in place and contradicts the requirement that manual changes never persist. Deleting and recreating the Application does not change the live objects' desired state and risks disrupting running workloads. A prune-only sync removes resources absent from Git but does not realign the patched field, so the drift remains.
-
2 Question 2 Single choice IDPs and Developer Experience
A large retail company is building an internal developer platform. Its platform team wants developers to provision a PostgreSQL database for their services without filing tickets or learning cloud provider consoles. The database must be created with encryption at rest, a fixed set of instance sizes approved by finance, and a tag identifying the owning team. Developers should discover the offering from a central catalogue in the developer portal. Which design BEST meets these requirements?
Correct Answer: CExplanationA Crossplane composition exposed as a claim gives developers a self-service API with the platform's guardrails baked in: the schema can limit instance sizes, the composition can enforce encryption and tagging, and the portal can surface the definition from a catalogue. Copying Terraform with personal credentials bypasses the guardrails and spreads control across every repository. Admin rights and after-the-fact cost reviews contradict the requirement to enforce approved sizes. Running a database as a container inside an application namespace does not provide managed encryption at rest or the required cloud-level tagging for a production relational store.
-
3 Question 3 Single choice Measuring your Platform
A platform team reports its success using the number of new Helm charts published to the internal registry each month. Leadership asks for measurements aligned with the DORA metrics so the platform's delivery impact can be compared across teams. Over the last quarter, teams deployed frequently, but many production deployments were rolled back within an hour because a shared ingress configuration change was not validated. Which change to the measurement approach BEST aligns with the DORA metrics for this platform initiative?
Correct Answer: CExplanationThe four DORA metrics are deployment frequency, lead time for changes, change failure rate and time to restore service. Here the rolled-back ingress changes show that throughput alone is misleading, so the change failure rate and time to restore must be measured alongside frequency and lead time. Counting chart versions or closed tickets measures activity rather than delivery outcomes. Node CPU utilisation is a capacity and efficiency signal, not a DORA metric for software delivery performance.
-
4 Question 4 Single choice Platform APIs and Provisioning Infrastructure
A platform team implements a custom resource named Database in the group platform.example.com. A controller watches these objects and creates cloud database instances. During a cluster upgrade, the controller pod is restarted and the Database objects are unchanged, but the controller logs show repeated attempts to create a second instance for one object whose status was never written after the first creation succeeded. The team must prevent duplicate cloud resources while keeping the reconciliation loop idempotent. What should the team change FIRST?
Correct Answer: CExplanationA reconciler must converge toward the desired state using observed state, so before creating a cloud instance it should look up whether one already exists by a stable identifier and persist that identifier in status. This makes repeated reconciliation idempotent even when a previous status write was lost. Increasing concurrency can worsen duplicate creation races. Recreating objects discards the link to existing resources and would trigger more duplicates. Removing the status subresource eliminates the only durable record of what was provisioned and makes the loop less reliable after a restart.
-
5 Question 5 Single choice Platform Engineering Core Fundamentals
A company is designing a platform for several product teams that each deploy to development, staging and production clusters. Auditors require that the configuration for every environment be reviewable, reproducible from version control, and free of unreviewed manual changes. Teams also want to avoid copying the same manifests three times, since small drift has caused past outages. Which approach BEST satisfies these constraints?
Correct Answer: CExplanationDeclarative manifests kept in Git with a shared base and environment overlays avoid duplication and keep the only per-environment differences visible and reviewable. A GitOps controller then reconciles each cluster to what the repository declares, which removes unreviewed drift. Maintaining three independent manifests reintroduces exactly the copy-and-drift problem described. Imperative scripts do not describe desired state and cannot detect drift. Leaving non-production clusters configured through a dashboard produces changes that are neither in version control nor reproducible.
-
6 Question 6 Multiple choice Continuous Delivery & Platform Engineering
A team runs a continuous integration pipeline that builds container images and publishes them to a registry, after which a GitOps controller deploys them to clusters. Recent incidents show that a rebuilt image with the same tag was deployed to production, that the pipeline ran with a broad registry credential, and that staging deployments were not reproducible. The team must fix these issues without slowing feature delivery. (Choose two.)
Correct Answer: A, EExplanationPinning references to an immutable digest ensures that the exact artifact tested is the one deployed, which fixes both the tag-overwrite problem and reproducibility. Scoping the pipeline credential and using short-lived tokens limits blast radius if the pipeline is compromised. Giving the pipeline cluster-admin access expands the attack surface. Rebuilding during deployment means staging and production can receive different artifacts. Disabling signing removes a control that protects artifact integrity.
-
7 Question 7 Single choice IDPs and Developer Experience
A platform team is adding AI-assisted automation to its internal developer platform. The goal is for an assistant to suggest remediation steps when a service fails its health checks. The organisation's policy forbids sending production logs that contain customer identifiers to external model providers, and any automated action that changes a cluster must be approved by a human. Which design BEST meets these constraints while still providing value?
Correct Answer: CExplanationRedacting identifiers and keeping inference inside the boundary satisfies the data policy, and routing proposed changes through a pull request preserves human approval in the GitOps workflow. Sending raw logs to an external provider violates the stated policy, and letting it run commands bypasses the approval rule. Training on historical logs in an external bucket has the same data exposure problem. Automatically restarting pods based on a confidence score is an automated cluster change with no human approval.
-
8 Question 8 Single choice Platform Observability, Security, and Conformance
A platform team runs a service mesh with mutual TLS enabled between workloads in a production namespace. Engineers report that a legacy batch job in a different namespace can no longer reach a service, and the error is a connection reset during the TLS handshake. The batch job is not part of the mesh and cannot be modified before the next maintenance window. The security policy requires that all traffic into the production namespace remain encrypted and authenticated. What is the MOST appropriate immediate action?
Correct Answer: CExplanationA gateway that accepts connections from non-mesh clients and re-originates them over mTLS keeps traffic inside the production namespace encrypted and authenticated, while an authorization policy restricts which identity may call the service. Permissive mode accepts plaintext and breaks the stated policy. Disabling mTLS cluster-wide removes protection for all workloads. A NetworkPolicy allow list changes which packets may flow but does not fix the TLS handshake failure and does not provide workload identity.
-
9 Question 9 Single choice Continuous Delivery & Platform Engineering
A platform engineer is responding to an incident in which a GitOps-managed Deployment repeatedly enters CrashLoopBackOff after a configuration change merged to the main branch. The rollback target is known. Customers are impacted and the on-call team wants service restored as quickly as possible while preserving an accurate audit trail. Which action should the engineer take FIRST?
Correct Answer: DExplanationReverting the commit restores the desired state in Git, and the GitOps controller then converges the cluster back to it, giving a clean audit trail for the incident. Rolling back with kubectl leaves Git declaring the broken state, so the controller will eventually reapply it. Scaling to zero causes an outage without restoring service. Editing the cluster directly and pausing the controller creates unrecorded drift and reproduces the manual-change problem.
-
10 Question 10 Single choice Platform Observability, Security, and Conformance
A platform team needs to troubleshoot intermittent latency between an API gateway and a payments service. Metrics show a p99 latency increase, but not which hop is responsible. The team wants to follow a single request across the gateway, an authorization service and the payments service without changing application code for each team. Which observability approach BEST meets this need?
Correct Answer: CExplanationDistributed tracing with propagated context produces spans from each service that share a trace identifier, which lets the team see per-hop latency for a single request. Higher scrape frequency still yields aggregated metrics without request paths. Matching timestamps across logs is fragile and cannot reliably attribute latency to a hop. Kubernetes events describe cluster object lifecycle, not individual HTTP requests, so they cannot show a request path.
-
11 Question 11 Single choice Platform Engineering Core Fundamentals
A platform team maintains a shared cluster used by four product teams. A recent change allowed one team's workload to run as root with a host path mount, which was not noticed until an audit. The organisation wants a preventive control that is enforced at admission time, applies to all namespaces including ones created in the future, and reports violations without blocking deployments during a two-week trial. Which approach BEST meets these requirements?
Correct Answer: CExplanationA cluster-wide policy engine evaluates admission requests in every namespace, including future ones, and audit mode reports violations without rejecting workloads, which fits the two-week trial requirement. A nightly script is detective rather than preventive. Pod Security Admission labels must be applied per namespace, so new namespaces would be unprotected unless developers remember to label them, and it does not offer a report-only trial with the same cluster-wide reach. Metadata-level audit logs record requests but do not capture pod spec details needed to detect root or host path use, and they are not preventive.
-
12 Question 12 Multiple choice Platform APIs and Provisioning Infrastructure
A platform team exposes a self-service API so developers can request a message queue. Requests are stored as custom resources, and a controller provisions cloud resources. The controller sometimes fails halfway through creating a queue and a cloud quota error is raised, leaving partial resources behind. The team wants the controller to report accurate state, recover automatically when quota becomes available, and avoid leaking resources. Which TWO changes meet these goals? (Choose two.)
Correct Answer: C, DExplanationWriting step outcomes into status conditions makes the actual provisioning state visible, and returning an error to trigger requeue with backoff lets the reconciler retry idempotently once quota recovers. Marking the object Ready misreports state. Deleting on error discards the request and may orphan partially created resources. Moving provisioning outside the controller removes the reconciliation guarantees the platform relies on.
-
13 Question 13 Single choice Continuous Delivery & Platform Engineering
A platform team wants to reduce the time between merging a change to a service and that change running in production. Currently each service team uses its own Jenkins job with manual approval steps, and the platform team cannot see deployment history across services. The organisation wants a common, auditable delivery path. Which change BEST establishes the relationship between continuous integration and continuous delivery for this platform?
Correct Answer: CExplanationContinuous integration produces verified, versioned artifacts from every merged change, and continuous delivery promotes those same artifacts through environments with policy gates, producing a common auditable path. Manual builds slow integration and reintroduce variability. Building only at scheduled release time delays feedback and confuses the two stages. Unversioned combined jobs prevent promoting a tested artifact and make deployment history impossible to audit across services.
These are 13 of the 85 questions in the full CNPA pack.
Get All 85 QuestionsGet all 85 questions & answers
Full access options for Linux Foundation CNPA
Self-study
PDF Version
- 85 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 85 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 85 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the CNPA Exam (Certified Cloud Native Platform Engineering Associate) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.