KCSA · Domain 5: Platform Security · 16% of the exam
Task 5.4: Service Mesh
What a service mesh adds for security: mutual TLS between workloads, workload identity and traffic authorization.
Study it
Service mesh, PKI and connectivity
Lesson coming
Sample questions
Try each one before opening the answer. Every option is explained, with the CNCF documentation page that proves it.
Question 1 · choose 1
A company adopts SPIFFE as the standard for identifying workloads across several clusters. It now needs software that attests workloads and issues their SPIFFE identities at run time. Which CNCF project provides that?
ASPIRE, the SPIFFE Runtime Environment
BKeycloak, an identity and access management solution
CNotary Project, a tool to sign and verify artifacts
DKyverno, a policy-as-code project
Show the answer and why
ASPIRE, the SPIFFE Runtime Environment
Correct
CNCF describes SPIRE as the SPIFFE Runtime Environment, the runtime that implements the SPIFFE identity standard.
BKeycloak, an identity and access management solution
Incorrect
Keycloak manages identities and access for applications and their users; CNCF does not describe it as a SPIFFE runtime.
CNotary Project, a tool to sign and verify artifacts
Incorrect
Notary Project signs and verifies artifacts; it does not issue identities to running workloads.
DKyverno, a policy-as-code project
Incorrect
Kyverno checks and changes resources as policy as code; it does not attest workloads or issue identities to them.
SPIFFE is described by CNCF as a universal identity control plane for distributed systems, and SPIRE as the SPIFFE Runtime Environment, the software that puts those workload identities into practice.
A platform team is choosing a CNCF project to proxy the traffic of its services. Which CNCF project does CNCF describe as an open source edge and service proxy designed for cloud-native applications?
Acert-manager
BKyverno
CNotary Project
DEnvoy
Show the answer and why
Acert-manager
Incorrect
CNCF describes cert-manager as a project that automatically provisions and manages TLS certificates in Kubernetes, not as a proxy.
BKyverno
Incorrect
CNCF describes Kyverno as unified policy as code, not as a proxy.
CNotary Project
Incorrect
CNCF describes Notary Project as a CLI tool to sign and verify artifacts, not as a proxy.
DEnvoy
Correct
CNCF describes Envoy as an open source edge and service proxy designed for cloud-native applications; the CNCF Kuma project calls itself the universal Envoy service mesh.
Envoy is the CNCF project described as an edge and service proxy for cloud-native applications, and meshes such as Kuma are built on it. The other options are a certificate manager, a policy engine and a signing tool.
A team wants all internal traffic between its services to pass through a common gateway. The NetworkPolicy documentation lists this among the things the NetworkPolicy API cannot do. What does it suggest instead?
AA NetworkPolicy with an ipBlock for the gateway's address
BA ResourceQuota on Services
CA service mesh or another proxy
DThe Pod Security Restricted profile
Show the answer and why
AA NetworkPolicy with an ipBlock for the gateway's address
Incorrect
The documentation lists this need among the things NetworkPolicy cannot implement.
BA ResourceQuota on Services
Incorrect
Quotas limit how many objects exist; they do not route traffic.
CA service mesh or another proxy
Correct
The documentation says forcing internal cluster traffic through a common gateway might be best served with a service mesh or other proxy.
DThe Pod Security Restricted profile
Incorrect
Pod Security profiles check Pod fields, not traffic paths.
NetworkPolicy allows or blocks connections but cannot route them. For forcing internal traffic through a common gateway, the documentation points to a service mesh or another proxy.