Courseiva

CCNA Service Mesh With Consul Connect Questions

39 questions · Service Mesh With Consul Connect · All types, answers revealed

1
Multi-Selectmedium

Which THREE items are required to configure an upstream service?

Select 3 answers
A.Destination service name.
B.Local bind port.
C.Hardcoded IP address.
D.Protocol type.
E.Service description.
AnswersA, B, D

Required to identify the dependency.

Why this answer

Upstreams require a destination service name, a local bind port, and the destination datacenter (if external).

2
Multi-Selecteasy

Which TWO of the following are benefits of using Consul Connect?

Select 2 answers
A.Centralized authorization policies.
B.Automatic mTLS management.
C.Increased application latency.
D.Elimination of firewalls.
E.Automatic database replication.
AnswersA, B

Intentions provide this.

Why this answer

Consul Connect simplifies mTLS management and provides secure service-to-service authorization.

3
MCQmedium

Which command displays all active intentions in the Consul mesh?

A.consul connect intentions
B.consul kv get intentions
C.consul intention list
D.consul services intentions
AnswerC

This command lists all configured intentions.

Why this answer

The 'consul intention list' command provides the current list of intentions.

4
Multi-Selectmedium

Which THREE tasks are performed by the Consul agent for Connect?

Select 3 answers
A.Managing sidecar proxy processes.
B.Distributing certificates to proxies.
C.Writing configuration to the disk.
D.Performing service discovery.
E.Issuing certificates.
AnswersA, B, D

The agent starts/stops the proxy.

Why this answer

The agent manages proxy lifecycle, certificate retrieval, and service discovery for the mesh.

5
Multi-Selecteasy

Which TWO are common use cases for Consul Connect?

Select 2 answers
A.Managing server hardware.
B.Creating virtual machines.
C.Zero-trust networking.
D.Secure service-to-service communication.
E.Configuring network switches.
AnswersC, D

Connect enables zero-trust.

Why this answer

Consul Connect is commonly used for secure service communication and service discovery in complex environments.

6
MCQhard

You are troubleshooting a connection error where the sidecar proxy cannot reach the upstream service. Which log file provides the most detail regarding Envoy's connectivity issues?

A.System syslog
B.Consul server audit log
C.Consul agent log
D.Envoy access log
AnswerD

Envoy access logs specifically detail proxy-level connectivity.

Why this answer

The sidecar proxy logs, typically routed to stdout or a specific file via the proxy configuration, contain Envoy access logs.

7
MCQeasy

What is the function of the 'consul intention check' command?

A.To list all intentions.
B.To verify if traffic is allowed between two services.
C.To create a new intention.
D.To delete an intention.
AnswerB

This command tests the current intention configuration.

Why this answer

It tests if a connection between two services is allowed by existing intentions.

8
MCQeasy

Which service definition field is used to link a sidecar proxy to its parent service?

A.parent_service
B.destination_service_name
C.service_id
D.linked_service
AnswerB

This field links the proxy to the service it proxies.

Why this answer

The 'proxy' block inside the 'service' definition contains the 'destination_service_name' to link it.

9
MCQeasy

What does the 'kind' field in a service definition specify for a Consul Connect service?

A.The proxy type (e.g., 'connect-proxy').
B.The service version.
C.The datacenter location.
D.The language of the application.
AnswerA

Setting kind to 'connect-proxy' tells Consul this is a sidecar.

Why this answer

The 'kind' field defines if the service is a standard service or a proxy/mesh-gateway.

10
Multi-Selecthard

Which TWO of the following are features of Consul Connect native integration?

Select 2 answers
A.The app handles its own mTLS handshake.
B.The app uses the Consul agent API to obtain certificates.
C.The app must be written in Go.
D.The sidecar proxy is still required for routing.
E.It supports only non-secure traffic.
AnswersA, B

Native apps skip the sidecar for mTLS.

Why this answer

Native integration allows apps to manage their own certificates and interact directly with the Consul secret API.

11
Multi-Selecthard

Which THREE factors influence the mTLS handshake in a Consul Connect mesh?

Select 3 answers
A.The identity certificate issued to the service.
B.The CA root certificate.
C.The trust bundle.
D.The intention status.
E.The service health check result.
AnswersA, B, C

Required for authentication.

Why this answer

The CA, the identity certificate, and the trust bundle are all essential to the mTLS handshake.

12
MCQeasy

Which of the following is a key feature of Consul Connect's intentions?

A.Global load balancing.
B.Certificate rotation.
C.Traffic splitting.
D.Service authorization (allow/deny).
AnswerD

Intentions are specifically for access control.

Why this answer

Intentions provide a logical authorization layer for service-to-service communication.

13
MCQhard

What is the primary benefit of using a Mesh Gateway in a Consul Connect architecture?

A.It enables communication between services in different datacenters.
B.It encrypts traffic at the storage layer.
C.It improves local mTLS performance.
D.It provides load balancing for local services.
AnswerA

This is the core purpose of the mesh gateway.

Why this answer

Mesh gateways provide a single point of ingress/egress for cross-datacenter traffic, reducing the need for direct cross-DC networking.

14
Multi-Selectmedium

Which THREE settings are part of the 'proxy' configuration block?

Select 3 answers
A.upstreams
B.acl_token
C.local_bind_port
D.config
E.service_name
AnswersA, C, D

Defines proxy-level upstream routing.

Why this answer

Proxy config includes local bind ports, configuration for Envoy, and upstream definitions.

15
MCQhard

You need to perform a canary deployment for a service. What Consul feature should you use?

A.Service splitting via Service Resolver.
B.KV store manual updates.
C.Intentions.
D.Service mesh gateway.
AnswerA

The service resolver allows traffic splitting/canary configurations.

Why this answer

Consul's service resolver and router resources allow for traffic splitting between different service subsets.

16
Multi-Selecteasy

Which TWO of the following are valid ways to configure Consul Connect?

Select 2 answers
A.Directly modifying the Envoy binary.
B.Modifying the Consul source code.
C.Editing the agent binary.
D.JSON service definition files.
E.Consul HTTP API.
AnswersD, E

Common method for registration.

Why this answer

Consul Connect can be configured via service definition files or the HTTP API.

17
MCQhard

When configuring mTLS in Consul Connect, how are certificates distributed to the sidecar proxies?

A.They are hardcoded in the service definition.
B.Via an external secret management service only.
C.The agent fetches them from the server and provides them via the Envoy xDS API.
D.Via a shared disk volume.
AnswerC

This is the secure and standard way certificates are delivered.

Why this answer

The Consul agent, acting as the client to the Consul server, fetches the certificates and provides them to the proxy via the xDS API.

18
MCQmedium

You have a service that needs to talk to a service in a different datacenter. What configuration is required?

A.Direct VPC peering.
B.An external service definition.
C.A global intention.
D.A mesh gateway deployment.
AnswerD

Mesh gateways act as the entry/exit points for cross-DC traffic.

Why this answer

Mesh gateways are required to route cross-datacenter traffic in a Consul Connect mesh.

19
MCQhard

If you are using SPIRE for certificate management, how does this interact with Consul Connect?

A.Consul Connect can delegate CA operations to an external provider like SPIRE.
B.Only static certificates can be used.
C.Consul must be disabled.
D.SPIRE replaces the Consul agent.
AnswerA

Consul supports plugging in external CAs via the CA provider configuration.

Why this answer

SPIRE can act as the CA (Certificate Authority) for Consul, issuing identities to services within the mesh.

20
Multi-Selecthard

Which TWO of the following are valid ways to monitor Consul Connect performance?

Select 2 answers
A.Envoy stats endpoint.
B.Modifying Consul log levels to 'debug'.
C.Prometheus metrics.
D.Checking the system RAM.
E.Directly querying the database.
AnswersA, C

Standard way to see proxy metrics.

Why this answer

Consul exposes metrics via Prometheus and Envoy provides stats through its own API.

21
MCQhard

A service 'api' is configured with mTLS. You want to rotate the CA root certificate without interrupting existing connections. What is the recommended strategy?

A.Disable mTLS globally, update, and re-enable.
B.Delete the existing CA and restart all agents.
C.Update the CA configuration to include the new root in the 'additional_roots' field.
D.Use the 'consul tls ca create' command with the --rotate flag.
AnswerC

Adding to additional_roots allows for a transition period where both CAs are trusted.

Why this answer

Consul supports a 'prepared_ca' rotation where the new CA is added to the trust bundle before the old one is removed.

22
MCQeasy

Which component acts as the default sidecar proxy for Consul Connect?

A.Nginx
B.HAProxy
C.Envoy
D.Linkerd
AnswerC

Envoy is the primary supported proxy for Consul Connect.

Why this answer

Envoy is the default and recommended sidecar proxy for Consul Connect.

23
MCQmedium

What is the purpose of the 'upstreams' block in a service definition?

A.To set the service's health check interval.
B.To limit the total number of connections.
C.To define the ingress rules.
D.To configure the outbound dependencies of the service.
AnswerD

Upstreams are the outbound dependencies.

Why this answer

It defines the targets that the sidecar proxy should be allowed to proxy requests to.

24
MCQmedium

When using 'Consul Connect native' integration, how does the application handle mTLS?

A.mTLS is disabled by default for native apps.
B.The application uses the local Consul agent API to fetch identity certificates.
C.The sidecar proxy handles all mTLS.
D.The Consul agent performs the TLS handshake on behalf of the app.
AnswerB

Native apps use the Consul secret API to get their identity.

Why this answer

In native integration, the application uses the Consul API to retrieve certificates and handles the mTLS handshake itself.

25
MCQeasy

What is the primary role of the Consul Connect 'upstream' configuration?

A.To define the services that a local service can connect to.
B.To set intention priority.
C.To register external services.
D.To define health check ports.
AnswerA

Upstreams define what a service depends on.

Why this answer

Upstreams define the dependencies of a service, allowing the proxy to route to specific services.

26
MCQmedium

What is the correct way to specify a local bind port for an upstream service?

A.service { upstream = { 9000 } }
B.proxy { upstream_port = 9000 }
C.upstream { port = 9000 }
D.upstreams { destination_name = "svc", local_bind_port = 9000 }
AnswerD

This is the correct syntax for an upstream definition.

Why this answer

Inside the upstream block, the 'local_bind_port' key sets the port the proxy listens on.

27
MCQmedium

How do you enable mTLS globally in a Consul datacenter?

A.Run 'consul tls enable'.
B.Set 'connect { enabled = true }' in the agent configuration.
C.consul config write -enable-mtls
D.There is no global enable setting.
AnswerB

This is the standard agent-level configuration for Connect.

Why this answer

mTLS is enabled by default in modern Consul versions, but can be configured in the agent config via 'connect.enable_connect'.

28
MCQmedium

How are intentions applied to services in different partitions or namespaces?

A.Intentions only work within the 'default' namespace.
B.You must specify the namespace in the intention definition.
C.Intentions are always global.
D.They must be created via API only.
AnswerB

Namespaces require explicit scoping in intentions.

Why this answer

Intentions are scoped to the namespace, and cross-namespace intentions require the namespace name.

29
MCQmedium

You need to deny all traffic between 'service-a' and 'service-b' using intentions. What is the most efficient way to achieve this?

A.consul intention create -allow-none service-a service-b
B.consul intention set -action=drop service-a service-b
C.consul intention create -deny service-a service-b
D.consul intention delete service-a service-b
AnswerC

This command directly creates a deny-type intention.

Why this answer

Intentions can be set to 'deny' explicitly, which overrides any 'allow' rules.

30
Multi-Selectmedium

Which THREE of the following are components of a Consul Connect service definition?

Select 3 answers
A.proxy
B.acl_policy
C.kv_store
D.upstreams
E.connect
AnswersA, D, E

The proxy block defines sidecar settings.

Why this answer

Connect services typically use 'proxy', 'upstreams', and 'connect' blocks to define their behavior in the mesh.

31
MCQmedium

Which protocol is used for the control plane communication between the Consul agent and the sidecar proxy?

A.Consul RPC
B.REST
C.gRPC
D.HTTP/1.1
AnswerC

Consul uses the gRPC-based xDS API to push configuration to Envoy.

Why this answer

The Consul agent communicates with the sidecar proxy (Envoy) using the Envoy xDS API.

32
MCQmedium

What is the function of the 'consul connect envoy' command?

A.To launch and manage the Envoy proxy sidecar for a service.
B.To generate TLS certificates for Envoy.
C.To verify the Envoy binary installation.
D.To update the Envoy configuration via CLI.
AnswerA

This command runs the Envoy process with the correct Consul configuration.

Why this answer

This command bootstraps and manages the lifecycle of the Envoy sidecar process.

33
MCQhard

When troubleshooting a service that fails to start its Envoy proxy, which service definition field should you check for incorrect configuration?

A.proxy
B.checks
C.meta
D.tags
AnswerA

Errors here directly impact proxy startup.

Why this answer

The 'proxy' configuration block is where all Envoy-specific settings, including ports and upstreams, are defined.

34
Multi-Selectmedium

Which TWO of the following are true regarding intentions?

Select 2 answers
A.They are automatically synced to all datacenters.
B.They operate at the transport layer.
C.They determine allowed service-to-service communication.
D.They require a separate database.
E.They can be managed using the CLI.
AnswersC, E

This is their core purpose.

Why this answer

Intentions are managed via API/CLI and define allowed communication patterns between services.

35
Multi-Selectmedium

Which THREE of the following are supported as sidecar proxy types in Consul?

Select 3 answers
A.HAProxy
B.Envoy
C.Caddy
D.NGINX
E.Traefik
AnswersA, B, D

Supported as an alternative proxy.

Why this answer

Consul natively supports Envoy, and has legacy or plugin support for others like HAProxy.

36
MCQmedium

What happens if a service proxy loses its connection to the local Consul agent?

A.The proxy shuts down automatically.
B.The proxy enters a 'stale' state and uses the last known config.
C.The proxy automatically switches to a local health-check mode.
D.The proxy attempts to connect to a random Consul server.
AnswerB

Envoy retains the last received xDS configuration.

Why this answer

The proxy will be unable to receive configuration updates and health status, potentially leading to service disruption.

37
MCQeasy

Which CLI command would you use to check the status of a Connect-enabled service?

A.consul status
B.consul connect status
C.consul proxy check
D.consul health service <name>
AnswerD

This displays the health of the service and its sidecars.

Why this answer

The 'consul catalog services' or 'consul health service' command shows the status, including Connect capabilities.

38
MCQmedium

What is the 'Consul Connect proxy' kind used for?

A.To define a gateway.
B.To mark a service definition as a sidecar proxy.
C.To define the service that the proxy runs in front of.
D.To enable mTLS for the service.
AnswerB

This 'kind' identifies the resource as a proxy.

Why this answer

It defines a service that is explicitly a sidecar proxy.

39
MCQmedium

You are configuring a sidecar proxy for a service named 'web'. Which configuration stanza in the service definition correctly defines the proxy's inbound port for Connect traffic?

A.sidecar { port = 8080 }
B.config { inbound_port = 8080 }
C.proxy { local_bind_port = 8080 }
D.service { connect { port = 8080 } }
AnswerC

The local_bind_port correctly specifies where the proxy listens for local traffic.

Why this answer

The 'proxy' configuration block within the service definition allows for the 'local_bind_port' and 'config' keys to define proxy behavior.

Ready to test yourself?

Try a timed practice session using only Service Mesh With Consul Connect questions.