Courseiva

CCNA Securing Workloads Questions

59 questions · Securing Workloads · All types, answers revealed

1
MCQeasy

Which component is responsible for distributing the security policies (like AuthorizationPolicy) to the Envoy sidecars?

A.Kubernetes API Server
B.Istiod
C.Prometheus
D.Envoy
AnswerB

Istiod handles configuration distribution.

Why this answer

Istiod is the control plane component responsible for distributing configuration to sidecars via the xDS protocol.

2
MCQeasy

Which protocol is used for the Istio data plane mTLS communication?

A.VPN
B.TLS 1.2/1.3
C.SSH
D.IPsec
AnswerB

Istio relies on standard TLS protocols.

Why this answer

Istio uses mutual TLS (mTLS) over HTTP/2 or standard HTTP to provide encryption and identity.

3
MCQmedium

A security team requires that all traffic to the 'payments' service must originate from a specific IP range (10.0.0.0/24). How can this be achieved?

A.Configure the Gateway to filter by IP.
B.Use a ServiceEntry to restrict traffic.
C.Create an AuthorizationPolicy with 'source.ipBlocks: ["10.0.0.0/24"]'.
D.Create a PeerAuthentication policy with 'ipBlocks'.
AnswerC

ipBlocks is the correct field for CIDR-based authorization.

Why this answer

The AuthorizationPolicy supports 'source.ipBlocks' to whitelist or blacklist specific CIDR ranges.

4
MCQeasy

Which Istio component is responsible for enforcing the AuthorizationPolicy at the workload level?

A.Envoy Proxy
B.Citadel
C.Ingress Gateway
D.Istiod
AnswerA

Envoy is the data plane component that enforces security policies locally on the pod.

Why this answer

The Envoy proxy (sidecar) intercepts all inbound and outbound traffic and enforces policies defined in AuthorizationPolicy.

5
MCQmedium

If you set 'mode: PERMISSIVE' in PeerAuthentication, what does this allow?

A.It allows both mTLS and plaintext.
B.It requires plaintext only.
C.It requires mTLS only.
D.It disables all security.
AnswerA

This enables gradual adoption of mTLS.

Why this answer

PERMISSIVE mode allows both mTLS and plaintext traffic to coexist, which is ideal for migrations.

6
MCQmedium

What happens if a RequestAuthentication policy is applied, but no JWT is provided in the request?

A.The request is routed to the login page.
B.The request is allowed by default.
C.The request is rejected automatically.
D.The request is dropped.
AnswerB

RequestAuthentication only defines validation, not access policy.

Why this answer

By default, if the request does not include a token, the request is allowed to pass. The AuthorizationPolicy should then be used to deny requests without a valid token.

7
MCQmedium

Which of the following describes the role of the 'trust-domain' in Istio?

A.It is used for load balancing.
B.It determines the namespace scope of policies.
C.It limits the number of concurrent connections.
D.It defines the root of trust for identity.
AnswerD

Identities across different meshes with the same trust domain trust each other.

Why this answer

The trust domain identifies the administrative boundary for identities. It is used to construct the SPIFFE ID.

8
MCQmedium

Which field in the AuthorizationPolicy is used to restrict access based on the verified JWT claims?

A.rules.when
B.rules.from.principals
C.rules.to.operation.methods
D.rules.from.source.namespaces
AnswerA

The 'when' block allows attribute-based filtering, including JWT claims.

Why this answer

The 'when' clause in an AuthorizationPolicy allows you to specify conditions based on attributes, including JWT claims like 'request.auth.claims'.

9
Multi-Selecthard

Which THREE fields in an AuthorizationPolicy are evaluated under the 'rules' section?

Select 3 answers
A.action
B.selector
C.from
D.when
E.to
AnswersC, D, E

Defines the source of the traffic.

Why this answer

An AuthorizationPolicy rule contains 'from' (source), 'to' (operation), and 'when' (conditions).

10
MCQmedium

How can you debug a failing AuthorizationPolicy rule?

A.Run 'istioctl analyze'.
B.Check Kubernetes logs for the API server.
C.Restart the sidecar.
D.Update the service account.
AnswerA

This tool identifies issues with Istio resources.

Why this answer

The 'istioctl analyze' command can detect invalid policy configurations that prevent them from taking effect.

11
Multi-Selectmedium

Which THREE items are included in an Istio SPIFFE ID?

Select 3 answers
A.Trust domain
B.Cluster Name
C.Service Account
D.Namespace
E.IP Address
AnswersA, C, D

The root of trust for the identity.

Why this answer

The SPIFFE ID format used by Istio follows 'spiffe://<trust-domain>/ns/<namespace>/sa/<service-account>'.

12
MCQeasy

What is the default behavior of Istio mTLS if no PeerAuthentication policy is applied?

A.STRICT mTLS
B.Plaintext only
C.Disabled
D.PERMISSIVE mTLS
AnswerD

Permissive mode is the default, allowing for incremental migration.

Why this answer

Istio defaults to PERMISSIVE mode, which allows both mTLS and plaintext traffic.

13
Multi-Selecthard

Which THREE factors influence whether a service in the mesh will accept traffic?

Select 3 answers
A.AuthorizationPolicy rules
B.Global MeshConfig 'proxyMetadata' settings
C.PeerAuthentication policy mode
D.Envoy proxy configuration state
E.Kubernetes Service Port definition
AnswersA, C, D

Determines if the request is permitted.

Why this answer

Traffic acceptance depends on PeerAuthentication (mTLS), AuthorizationPolicy (access), and the Envoy proxy configuration (xDS).

14
MCQmedium

If you apply an AuthorizationPolicy with a 'DENY' action and an 'ALLOW' action in the same namespace, how does Istio resolve them?

A.DENY policies always take precedence over ALLOW policies.
B.ALLOW policies take precedence.
C.The policy with the highest priority field wins.
D.The policy applied most recently wins.
AnswerA

This is the core evaluation logic in Istio RBAC.

Why this answer

The 'DENY' action takes precedence over 'ALLOW'. If any DENY policy matches, the request is rejected regardless of any ALLOW policy.

15
MCQeasy

Which resource is used to define the root certificate for a custom CA?

A.istio-ca-secret
B.root-secret
C.cacerts
D.istio-root-ca
AnswerC

This is the specific secret name Istio looks for.

Why this answer

The 'cacerts' secret in the 'istio-system' namespace is used to provide custom root certificates.

16
Multi-Selecthard

Which THREE actions occur when 'mode: STRICT' is set in a PeerAuthentication policy?

Select 3 answers
A.All non-Istio traffic is automatically routed to the gateway.
B.The client proxy initiates mTLS handshakes.
C.The sidecar proxy verifies the peer's identity via certificate.
D.The proxy automatically upgrades HTTP to HTTPS.
E.The server proxy rejects all non-mTLS traffic.
AnswersB, C, E

The client must adapt to the server's requirement.

Why this answer

STRICT mode forces mTLS, causes the proxy to reject plain text, and mandates that both client and server sidecars perform the handshake.

17
MCQeasy

What is the correct syntax for a principal in an AuthorizationPolicy?

A.spiffe://my-service
B.default/my-service
C.cluster.local/ns/default/sa/my-service
D.my-service.default
AnswerC

Matches the SPIFFE URI format.

Why this answer

The principal follows the SPIFFE ID format: 'cluster.local/ns/default/sa/my-service'.

18
MCQmedium

How do you ensure that a workload ignores a global PeerAuthentication policy?

A.Apply a PeerAuthentication policy with a selector matching the specific workload.
B.Use an AuthorizationPolicy to bypass mTLS.
C.Delete the global policy.
D.Set the 'mode' to 'DISABLE' in a DestinationRule.
AnswerA

Selectors allow granular overrides.

Why this answer

A workload-specific PeerAuthentication policy (with a selector) will override a global (namespace or root) policy.

19
MCQmedium

When multiple AuthorizationPolicies target the same workload, how are they combined?

A.The most specific policy wins, others are ignored.
B.Policies are unioned (OR logic) for ALLOW actions.
C.The first policy encountered in the API server wins.
D.All policies must match (AND logic).
AnswerB

Multiple ALLOW policies are combined so that if any match, access is granted.

Why this answer

If multiple policies are applied to the same workload, they are evaluated using an additive approach (OR logic) for ALLOW policies within the same namespace.

20
MCQmedium

You have a global PeerAuthentication policy. What is the effect of applying a new PeerAuthentication policy in the 'default' namespace with no selector?

A.It is ignored.
B.It crashes the global policy.
C.It overrides the global policy for all workloads in the 'default' namespace.
D.It merges with the global policy.
AnswerC

Namespaced policy has precedence over global.

Why this answer

Namespaced policies override global ones within that namespace. A policy with no selector applies to all workloads in that namespace.

21
Multi-Selecthard

Which THREE conditions must be met for a PeerAuthentication policy to enforce STRICT mTLS?

Select 3 answers
A.Sidecar sidecar-injection enabled
B.Namespace must be 'default'
C.Service must be exposed via NodePort
D.PeerAuthentication mode set to STRICT
E.Certificate provisioning is healthy
AnswersA, D, E

The proxy must be present.

Why this answer

STRICT mode requires an Istio-enabled sidecar, the PeerAuthentication mode set to STRICT, and the absence of conflicting policies.

22
Multi-Selecthard

Which THREE actions are required to successfully secure a workload using OIDC and JWT authentication in Istio?

Select 3 answers
A.Apply a PeerAuthentication resource with mode STRICT.
B.Define a RequestAuthentication resource specifying the issuer and jwksUri.
C.Create an EnvoyFilter to parse the JWT.
D.Ensure the application client sends the JWT in the 'Authorization: Bearer <token>' header.
E.Use an AuthorizationPolicy to validate specific claims like 'iss' or 'sub'.
AnswersB, D, E

This tells Istio how to validate the JWT.

Why this answer

To use JWT, you must define a RequestAuthentication policy, ensure the workload accepts the token, and use an AuthorizationPolicy to enforce 'DENY' or 'ALLOW' based on claims.

23
Multi-Selectmedium

Which TWO of the following are true regarding PeerAuthentication policies?

Select 2 answers
A.They cannot be used with sidecar-less ambient mode.
B.They must be applied in the 'istio-system' namespace to work globally.
C.They validate JWT tokens.
D.They support the 'DENY' action.
E.The 'mode' can be set to 'STRICT' or 'PERMISSIVE'.
AnswersB, E

Global policy requires root namespace deployment.

Why this answer

They can be applied at mesh, namespace, or workload level, and the mode can be STRICT or PERMISSIVE.

24
MCQmedium

You want to allow traffic only from a specific namespace 'prod' to the 'backend' service. How should you define the 'AuthorizationPolicy'?

A.Set source.principals: ['prod'] in the rule.
B.Set source.namespaces: ['prod'] in the rule.
C.Set source.ipBlocks: ['prod'] in the rule.
D.Set source.remoteIp: ['prod'] in the rule.
AnswerB

This correctly filters requests originating from the prod namespace.

Why this answer

AuthorizationPolicy uses the 'source' field to restrict traffic by namespace using the 'namespaces' attribute.

25
Multi-Selectmedium

Which TWO of the following are true regarding the RequestAuthentication resource?

Select 2 answers
A.It enforces that the request MUST have a JWT token.
B.It can be applied to specific workloads using a selector.
C.It handles the issuance of JWT tokens.
D.It replaces the need for PeerAuthentication.
E.It can be applied at the namespace level to cover all services in that namespace.
AnswersB, E

Selectors allow granular policy targeting.

Why this answer

RequestAuthentication is used to validate JWTs and can be applied at the namespace or workload level.

26
MCQeasy

What does the 'jwksUri' field in a RequestAuthentication resource define?

A.The URL to register the application.
B.The URL to fetch the public keys for JWT validation.
C.The location where JWTs are stored.
D.The address of the Identity Provider login page.
AnswerB

This is the definition of a JWKS URI.

Why this answer

The jwksUri specifies the endpoint where the JWT issuer publishes its public keys, used by Istio to verify the token signature.

27
MCQmedium

Which attribute can be used in an AuthorizationPolicy to verify that the request was made via mTLS?

A.destination.port
B.source.principal
C.connection.mtls
D.request.auth.principal
AnswerB

If 'source.principal' is present, the connection is authenticated via mTLS.

Why this answer

The 'source.principal' attribute is only populated if the connection is authenticated via mTLS, making it a reliable way to verify mTLS use.

28
MCQmedium

You have a namespace 'prod' and you need to ensure that all workloads in this namespace only accept mutual TLS (mTLS) encrypted traffic. What is the most effective way to configure this?

A.Apply a DestinationRule with trafficPolicy.tls.mode set to ISTIO_MUTUAL.
B.Apply a global MeshConfig setting to enforce mTLS.
C.Apply a PeerAuthentication resource with spec.mtls.mode set to STRICT in the 'prod' namespace.
D.Create an AuthorizationPolicy that denies all traffic without a client certificate.
AnswerC

Setting the mode to STRICT ensures that only mTLS traffic is accepted.

Why this answer

A PeerAuthentication policy scoped to the namespace with mode set to STRICT ensures all sidecars in that namespace enforce mTLS.

29
MCQeasy

What does an AuthorizationPolicy's 'operation' field represent?

A.HTTP methods and paths.
B.Certificate details.
C.IP addresses.
D.User identities.
AnswerA

Used for layer 7 traffic control.

Why this answer

The operation field defines the methods (GET, POST) and paths allowed or denied.

30
Multi-Selecthard

Which THREE items are required to successfully authenticate a user via JWT in Istio?

Select 3 answers
A.A PeerAuthentication resource.
B.A Kubernetes ServiceAccount per user.
C.The 'audiences' field to restrict token scope.
D.The 'jwksUri' field pointing to the public key set.
E.The 'issuer' field in RequestAuthentication.
AnswersC, D, E

Optional but highly recommended for security.

Why this answer

You need the issuer URL, the JWKS URI, and the audience to validate the JWT correctly.

31
MCQmedium

When using JWT authentication, where does the Istio sidecar fetch the public key (JWKS) required for token verification?

A.The sidecar fetches it directly from the URL specified in the 'jwksUri' field of the RequestAuthentication resource.
B.It is hardcoded in the Envoy binary.
C.The Istio Control Plane (istiod) fetches it and pushes it to the sidecar.
D.The user must manually upload the public key as a Kubernetes Secret.
AnswerA

The sidecar directly queries the JWKS endpoint.

Why this answer

The sidecar automatically fetches the JWKS from the URL defined in the 'jwksUri' field within the RequestAuthentication policy.

32
Multi-Selectmedium

Which THREE things are required for mTLS to be successful?

Select 3 answers
A.PeerAuthentication configuration
B.External load balancer
C.Sidecar proxy presence
D.Ingress Gateway
E.Certificate distribution
AnswersA, C, E

Defines the mTLS requirement.

Why this answer

mTLS needs certificates issued to the workloads, a mutual agreement on using mTLS (PeerAuthentication), and sidecar proxies to perform the handshake.

33
Multi-Selectmedium

Which THREE components are involved in the Istio certificate management process?

Select 3 answers
A.Istiod
B.The Workload
C.Ingress Gateway
D.Envoy Proxy
E.Kubernetes Secret
AnswersA, B, D

Acts as the CA.

Why this answer

The certificate lifecycle involves Istiod (CA), the control plane agent, and the workload sidecar/proxy.

34
Multi-Selectmedium

Which TWO scenarios indicate that a PeerAuthentication policy is working correctly?

Select 2 answers
A.Requests are rejected when mTLS is not used by the client.
B.Traffic from outside the mesh can reach the service in STRICT mode without modification.
C.All traffic is logged in plain text in the Envoy logs.
D.Services with sidecars can communicate with each other in STRICT mode.
E.The API server allows non-mTLS traffic by default.
AnswersA, D

Rejection confirms the policy is enforcing security.

Why this answer

Correct operation is confirmed by successful communication under STRICT mode (using sidecars) and by observing mTLS metrics/logs.

35
MCQmedium

What happens when an AuthorizationPolicy is applied to a workload without a sidecar?

A.The policy is logged but not enforced.
B.The workload crashes.
C.The policy is ignored.
D.Traffic is denied by default.
AnswerC

Policy enforcement requires the sidecar.

Why this answer

AuthorizationPolicy relies on the Envoy sidecar to enforce rules. If no sidecar is present, the policy is ignored for that traffic.

36
MCQhard

A service 'orders' requires a specific AuthorizationPolicy that allows GET requests only from the 'frontend' service while denying all other methods. Which configuration is correct?

A.Create an EnvoyFilter to intercept and drop requests.
B.Use a PeerAuthentication policy to filter based on HTTP methods.
C.Set 'action: ALLOW', 'rules: [{from: [{source: {principals: [cluster.local/ns/default/sa/frontend]}}], to: [{operation: {methods: [GET]}}]}]'.
D.Set 'action: DENY', 'rules: [{to: [{operation: {methods: [POST, PUT, DELETE]}}]}]'.
AnswerC

This policy correctly restricts access to the GET method for the specified service account.

Why this answer

The AuthorizationPolicy should specify the 'GET' method in the 'rules' section and match the 'frontend' principal in the 'from' source block.

37
MCQmedium

In an AuthorizationPolicy, what does the 'ALLOW' action mean when combined with an empty rule set?

A.It allows all requests.
B.It crashes the proxy.
C.It requires valid mTLS.
D.It denies all requests.
AnswerA

No constraints mean no filtering.

Why this answer

An empty 'rules' section in an 'ALLOW' policy effectively allows all requests that meet the identity criteria, or if no source/to constraints are specified, it allows everything.

38
MCQeasy

Which command is used to display the currently active PeerAuthentication policies in the mesh?

A.istioctl analyze
B.istioctl get peerauthentication
C.kubectl get peerauthentication -A
D.kubectl describe mtls
AnswerC

Standard kubectl command for K8s resources.

Why this answer

The 'kubectl get peerauthentication -A' command is the standard way to list all PeerAuthentication resources in the cluster.

39
Multi-Selecthard

Which THREE elements are part of a 'RequestAuthentication' resource?

Select 3 answers
A.accessPolicy
B.issuer
C.mTLSMode
D.jwtRules
E.selector
AnswersB, D, E

Part of the jwtRule.

Why this answer

RequestAuthentication includes the selector, the list of JWT rules (issuer, jwksUri), and the target namespace/scope.

40
MCQeasy

What is the primary function of the 'root-cert.pem' file in the Istio control plane?

A.To authorize HTTP requests.
B.To authenticate JWT tokens.
C.To encrypt user data in transit.
D.To establish the chain of trust for mTLS.
AnswerD

Workloads verify the peer's certificate against the root CA.

Why this answer

The root certificate is used to sign the intermediate CA certificates that sign workload certificates, establishing the trust chain.

41
MCQeasy

Which of the following is NOT a valid action in an Istio AuthorizationPolicy?

A.AUDIT
B.ALLOW
C.REDIRECT
D.DENY
AnswerC

REDIRECT is not an action in AuthorizationPolicy.

Why this answer

'AUDIT' and 'DENY' and 'ALLOW' are valid, but 'REDIRECT' is not a valid action in AuthorizationPolicy.

42
MCQmedium

Which of the following is true regarding PeerAuthentication and sidecar-less ambient mode?

A.It requires manual certificate rotation.
B.It only works with sidecar proxies.
C.PeerAuthentication is not supported in ambient mode.
D.It is enforced by the ztunnel on the node.
AnswerD

In ambient mode, the ztunnel handles mTLS configuration.

Why this answer

PeerAuthentication applies to the ztunnel in ambient mode to enforce mTLS for traffic between nodes.

43
MCQhard

Why might a 'RequestAuthentication' policy fail to validate a JWT even if the issuer is correct?

A.The proxy cannot reach the JWKS URI.
B.The pod is missing a sidecar.
C.The namespace is missing.
D.The JWT is too long.
AnswerA

Connectivity is required for key verification.

Why this answer

The most common reason is that the 'jwksUri' is unreachable from the Istio proxy, often due to network policies or egress restrictions.

44
MCQeasy

What is the default behavior of Istio when no AuthorizationPolicy is present for a workload?

A.Allow only traffic within the same namespace.
B.Deny all traffic.
C.Require mTLS for all traffic.
D.Allow all traffic.
AnswerD

Without policies, Istio does not restrict access.

Why this answer

By default, Istio allows all traffic (PERMISSIVE/ALLOW ALL) unless an explicit policy is defined.

45
MCQhard

Which of the following is true about the 'principals' vs 'source.principals' fields?

A.Only 'principals' is valid.
B.They refer to the same concept.
C.Only 'source.principals' is valid.
D.They refer to different concepts.
AnswerB

Both refer to the authenticated identity (SPIFFE ID).

Why this answer

They are synonymous in the context of AuthorizationPolicy; 'principals' is a shorthand within the 'source' object for identifying the workload's SPIFFE ID.

46
MCQmedium

You have a namespace 'finance' where all traffic must be encrypted using mutual TLS. You apply a PeerAuthentication policy with 'mode: STRICT' at the namespace scope. A developer reports that a legacy service in the same namespace is failing to communicate. What is the most likely reason?

A.The legacy service is not using an Istio sidecar to handle mTLS handshakes.
B.The Gateway is misconfigured for the legacy service.
C.The DestinationRule for the service is missing the 'mode: ISTIO_MUTUAL' setting.
D.The AuthorizationPolicy is missing a rule for the legacy service.
AnswerA

In STRICT mode, mTLS is mandatory. Without a sidecar, the service cannot participate in the mTLS handshake.

Why this answer

Setting PeerAuthentication to STRICT forces mTLS for all traffic. If the legacy service does not have an Istio sidecar or is not configured to perform mTLS, it will be rejected.

47
MCQmedium

How can you restrict traffic to a service based on the presence of a specific request header?

A.Use the 'from' field.
B.Use an EnvFilter.
C.Use the 'to' field.
D.Use the 'when' field with 'request.headers'.
AnswerD

This is the correct way to validate headers.

Why this answer

The 'when' field in an AuthorizationPolicy supports checking request headers using 'request.headers[<header-name>]'.

48
MCQhard

You have an external service 'legacy-db' outside the mesh. You want to allow access to it from 'webapp' while ensuring 'webapp' presents a valid certificate. How is this achieved?

A.Apply a RequestAuthentication policy.
B.Configure an Egress Gateway and use a DestinationRule with client-side mTLS certificates.
C.Configure an Ingress Gateway.
D.Use a PeerAuthentication policy on the external service.
AnswerB

Egress Gateways can handle mTLS termination/origination for external traffic.

Why this answer

You must use an Egress Gateway with mTLS configured to the external service.

49
MCQmedium

How can you restrict a service to only accept requests from users authenticated via a specific JWT issuer?

A.Only DestinationRule.
B.Only ServiceEntry.
C.Only PeerAuthentication.
D.RequestAuthentication for issuer, then AuthorizationPolicy to verify.
AnswerD

The two-step validation is the standard pattern.

Why this answer

You define a RequestAuthentication policy that specifies the trusted issuer, and then use an AuthorizationPolicy that checks for the 'request.auth.claims[iss]' claim.

50
MCQmedium

What is the result of applying an AuthorizationPolicy that has no 'action' field?

A.The request is rejected.
B.It defaults to DENY.
C.The policy is invalid.
D.It defaults to ALLOW.
AnswerD

Default action is ALLOW.

Why this answer

If the action field is missing, it defaults to 'ALLOW', which is the standard behavior in Istio.

51
MCQeasy

Which tool would you use to verify if a pod has an active mTLS connection?

A.istioctl proxy-config endpoint <pod-name>
B.istioctl dashboard envoy <pod-name>
C.kubectl get mTLS
D.istioctl proxy-config secret <pod-name>
AnswerD

Viewing secrets confirms certificates are present.

Why this answer

The 'istioctl proxy-config secret' command shows the certificates loaded into the proxy, which is a good indicator of mTLS readiness.

52
MCQhard

You have a legacy service that cannot handle mTLS. How can you exclude this specific service from the namespace-wide STRICT mTLS policy?

A.Add an annotation 'sidecar.istio.io/inject: false'.
B.Delete the namespace-wide PeerAuthentication policy.
C.Use an AuthorizationPolicy to allow plaintext traffic.
D.Apply a PeerAuthentication with mode: PERMISSIVE using a selector that targets the legacy service.
AnswerD

A workload-level policy overrides a namespace-level policy.

Why this answer

You can apply a PeerAuthentication policy at the workload level (using 'selector') to override the namespace-wide policy.

53
MCQhard

You have a requirement to use a custom JWT claim to authorize users. How can you map this claim in an 'AuthorizationPolicy'?

A.Use the 'when' field with 'key: request.auth.claims[custom-claim]' and 'values' to match.
B.Use the 'principals' field.
C.Use the 'from' field in the 'source' object.
D.Use an 'EnvoyFilter' because AuthorizationPolicy does not support claims.
AnswerA

The 'when' clause allows checking specific claims against values.

Why this answer

AuthorizationPolicy supports 'when' conditions to evaluate JWT claims using the 'request.auth.claims' key.

54
MCQhard

You want to implement a 'Deny-All' strategy for your mesh and explicitly whitelist only necessary traffic. What is the correct order to achieve this?

A.Modify the Istio mesh configuration to default to DENY.
B.Use NetworkPolicies instead of AuthorizationPolicies.
C.Create an AuthorizationPolicy with action 'DENY' and no rules, then add ALLOW policies.
D.Use PeerAuthentication to block all traffic.
AnswerC

An empty DENY policy denies everything, then specific ALLOW policies override or permit necessary paths.

Why this answer

Apply a global AuthorizationPolicy with action 'DENY' and selector 'matchLabels: {}', then apply granular 'ALLOW' policies for specific services.

55
MCQmedium

What is the primary purpose of the 'RequestAuthentication' resource?

A.To issue new JWTs.
B.To define JWT validation requirements.
C.To store user credentials.
D.To encrypt traffic between services.
AnswerB

It tells the proxy how to check token validity.

Why this answer

RequestAuthentication is used to define which JWT issuers are trusted and how to validate tokens.

56
Multi-Selectmedium

Which TWO of the following are valid sources for an AuthorizationPolicy?

Select 2 answers
A.headers
B.httpMethods
C.principals
D.jwtClaims
E.ipBlocks
AnswersC, E

Principals refer to the identity of the caller.

Why this answer

AuthorizationPolicies can match based on 'principals' (identity) and 'namespaces'.

57
MCQhard

When using JWT, what is the 'forwardOriginalToken' flag in the RequestAuthentication resource?

A.It deletes the token from the request.
B.It forwards the token to the application.
C.It encrypts the token.
D.It logs the token to the audit log.
AnswerB

The application can inspect claims.

Why this answer

When set to true, the proxy forwards the original JWT to the application, allowing the application to use the token for backend calls.

58
MCQmedium

Your team needs to allow end-users to authenticate using JWT tokens issued by an external OIDC provider. Which resource should you define to validate these tokens?

A.AuthorizationPolicy
B.ServiceEntry
C.PeerAuthentication
D.RequestAuthentication
AnswerD

RequestAuthentication is the primary resource for JWT validation in Istio.

Why this answer

RequestAuthentication is specifically designed to configure how Istio validates JWT tokens.

59
Multi-Selectmedium

Which TWO of the following are valid modes for PeerAuthentication?

Select 2 answers
A.ENABLED
B.OPTIONAL
C.STRICT
D.PERMISSIVE
E.DISABLED
AnswersC, D

Forces mTLS for all connections.

Why this answer

The two primary modes for PeerAuthentication are PERMISSIVE and STRICT.

Ready to test yourself?

Try a timed practice session using only Securing Workloads questions.