Courseiva

HashiCorp Certified: Consul Associate (Consul 1.15) (Consul 1.15) (Consul 1.15) — Questions 175

194 questions total · 3pages · All types, answers revealed

Page 1 of 3

Page 2
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
MCQeasy

What is the default value for the Consul KV flags field if not provided during a write?

A.1
B.null
C.0
D.-1
AnswerC

Flags defaults to 0.

Why this answer

The default value for flags is 0.

3
MCQeasy

Which Consul agent configuration parameter defines the KV store file location when running locally?

A.server_dir
B.kv_dir
C.state_dir
D.data_dir
AnswerD

Consul stores all state data in the directory specified by data_dir.

Why this answer

While the KV store is in-memory, its persistence (if snapshots are used) is managed by the data_dir.

4
MCQmedium

You need to perform a write operation to the Consul KV store that only succeeds if the current ModifyIndex of the key is zero. Which parameter should you include in your API call?

A.acquire=0
B.cas=0
C.flags=0
D.index=0
AnswerB

The cas parameter with a value of 0 is the standard way to perform a create-if-not-exists operation.

Why this answer

The cas (Check-And-Set) parameter allows for atomic operations. Setting cas to 0 ensures the write only occurs if the key does not already exist.

5
MCQhard

You are configuring a service check that needs to be ignored if the node is in maintenance mode. What is the correct approach?

A.Use a tag named 'maintenance'.
B.Set 'maintenance_mode' to true in the service definition.
C.Set the 'status' to 'maintenance' in the API.
D.Use the 'consul maintenance' command on the node.
AnswerD

The maintenance command puts the node into a state where health checks are ignored.

Why this answer

Maintenance mode stops health checks from affecting the service's passing/failing status.

6
MCQeasy

Which interface would you use to register a service dynamically using standard tools like 'curl'?

A.HTTP API
B.DNS interface
C.Gossip protocol
D.CLI agent command
AnswerA

The HTTP API allows POSTing service definitions.

Why this answer

The Consul HTTP API is the standard interface for dynamic registration.

7
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.

8
Multi-Selecthard

Which THREE of the following represent potential bottlenecks for Consul KV performance?

Select 3 answers
A.Very large number of keys
B.Very high write throughput
C.High read frequency
D.Very large value sizes
E.Using HTTP instead of RPC
AnswersA, B, D

Massive key counts increase memory usage.

Why this answer

High update frequency, massive key counts, and large value sizes all impact KV performance.

9
MCQhard

You are monitoring service health using Consul and want to ensure that a service is automatically removed from the catalog if it remains in a 'critical' state for more than 24 hours. Which configuration key supports this?

A.cleanup_interval
B.critical_timeout
C.deregister_critical_service_after
D.remove_service_after
AnswerC

This is the correct parameter for automatic removal.

Why this answer

The 'deregister_critical_service_after' parameter specifies the threshold after which a service in a critical state is automatically deregistered.

10
MCQmedium

You need to register a health check that triggers an alert when memory usage is high. Which type of check is most appropriate?

A.gRPC Check
B.HTTP Check
C.Script Check
D.TCP Check
AnswerC

Script checks allow arbitrary local execution.

Why this answer

A script check can execute a local binary or script to monitor memory and return an exit code.

11
Multi-Selectmedium

Which TWO of the following are consequences of a primary datacenter outage in a federated environment?

Select 2 answers
A.Secondary datacenters cannot receive new ACL updates.
B.Service discovery in all datacenters stops immediately.
C.ACL policy updates cannot be performed.
D.All Consul agents in the federation crash.
E.Existing cross-datacenter traffic routes fail.
AnswersA, C

Replication relies on the primary.

Why this answer

ACL replication stops and management changes cannot be made, but existing traffic and local discovery continue.

12
MCQhard

You need to register a service that runs on a dynamic port. How should the service definition be configured to allow Consul to detect the port?

A.Set 'port' to 'auto' in the service definition.
B.Omit the 'port' field entirely.
C.Use the 'address' field for the port.
D.Set 'port' to 0 in the service definition.
AnswerD

Setting port to 0 signals to Consul that the port is dynamic.

Why this answer

Consul allows the use of 0 as a port, and the registration process typically involves discovering the port via an external process or environment variable.

13
MCQhard

A cross-datacenter service discovery request is failing. You observe the local datacenter can resolve the service via DNS, but the remote datacenter cannot. Which configuration parameter must be checked?

A.enable_central_config
B.node_meta
C.primary_datacenter
D.check_ttl
AnswerC

The primary_datacenter must be correctly defined for ACL and gossip coordination across the federation.

Why this answer

The 'primary_datacenter' and 'allow_stale' settings are crucial, but cross-DC discovery often fails if the 'enable_local_script_checks' or specific WAN gossip configurations prevent cross-link visibility.

14
MCQhard

You are troubleshooting a partition between two datacenters. The WAN gossip shows high latency. Which Consul CLI tool provides the best insight into the WAN gossip state?

A.consul operator raft list-peers
B.consul members -wan
C.consul monitor
D.consul kv get
AnswerB

This command specifically shows members across the WAN gossip pool.

Why this answer

The 'consul members -wan' command provides a view of the nodes known to the local server in the WAN pool.

15
MCQhard

You observe that a session lock is being released unexpectedly. What is the most likely cause?

A.The Consul agent is in leader mode.
B.The index was not incremented.
C.The session TTL is too low, causing premature expiration.
D.The KV key was deleted.
AnswerC

If network latency prevents the renewal, the session expires.

Why this answer

If the session TTL is too short, the agent might fail to renew the session in time, causing it to expire.

16
MCQmedium

If you need to perform an HTTP check over HTTPS, what configuration option is required to handle self-signed certificates?

A.tls_insecure
B.disable_tls
C.tls_skip_verify
D.ignore_cert
AnswerC

This enables checking against self-signed certs.

Why this answer

The 'tls_skip_verify' parameter allows the agent to skip verification of the service's TLS certificate.

17
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.

18
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.

19
MCQmedium

You need to ensure a service instance is removed from the catalog immediately after the service process terminates. Which setting helps?

A.Use a 'pre-stop' script.
B.Set 'deregister_critical_service_after' to a short duration.
C.Enable 'auto_cleanup' in the agent config.
D.Set 'ttl' to 0.
AnswerB

This defines how long a service stays in the catalog after failing health checks.

Why this answer

The 'deregister_critical_service_after' setting defines the timeout before cleanup.

20
MCQmedium

What is the purpose of the 'Behavior' field when creating a Consul session?

A.To specify what happens to locks on session invalidation.
B.To define the node affinity.
C.To determine if the session can be renewed.
D.To set the session priority.
AnswerA

The behavior field defines if locks are released or the key is deleted.

Why this answer

The behavior field determines what happens to locks when a session is invalidated; 'release' is the default, while 'delete' removes the key.

21
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.

22
MCQmedium

When configuring ACL replication, where must the 'acl_replication_token' be defined?

A.In the secondary datacenter's server agents.
B.In the primary datacenter's client agents.
C.In the Consul Enterprise license file.
D.On all nodes in both datacenters.
AnswerA

Secondary servers need the token to authenticate with the primary.

Why this answer

The replication token is configured on the secondary datacenter's Consul servers to allow them to read from the primary.

23
MCQmedium

A service definition includes a 'meta' block. What is the intended use of this block?

A.To configure service discovery timeouts.
B.To define arbitrary key/value metadata for the service.
C.To override the default health check interval.
D.To store authentication credentials.
AnswerB

Metadata allows for extensible annotations.

Why this answer

The meta block is for arbitrary key/value pairs related to the service instance.

24
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.

25
MCQeasy

Which status indicates that a health check is successfully passing according to Consul?

A.passing
B.unknown
C.critical
D.warning
AnswerA

Passing indicates health.

Why this answer

The status 'passing' represents a healthy check in Consul.

26
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.

27
Multi-Selecteasy

Which THREE of the following are valid check types in Consul?

Select 3 answers
A.TCP
B.HTTP
C.SSH
D.Script
E.FTP
AnswersA, B, D

Standard health check type.

Why this answer

Consul supports HTTP, TCP, and Script (external) health checks.

28
MCQmedium

How does Consul handle service discovery in multi-datacenter environments when a service is requested by name?

A.It only queries the leader of the entire WAN.
B.It automatically replicates all services to all datacenters.
C.It always returns instances from all datacenters.
D.It requires the user to append the datacenter name to the DNS query.
AnswerD

Using '<service>.service.<datacenter>.consul' enables cross-datacenter lookups.

Why this answer

Consul can perform cross-datacenter lookups if the query includes the datacenter or if configured to do so.

29
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.

30
MCQeasy

How do you enable WAN federation between two Consul datacenters that do not share a network?

A.By disabling ACLs.
B.By increasing the gossip interval.
C.By using a load balancer in front of the servers.
D.By deploying Mesh Gateways.
AnswerD

Mesh gateways are the designated way to connect isolated datacenters.

Why this answer

Mesh gateways allow cross-datacenter communication in environments where direct WAN gossip is not possible.

31
MCQeasy

Which HTTP method is used to create or update a key in the Consul KV store?

A.GET
B.PUT
C.DELETE
D.POST
AnswerB

PUT is used to write/update KV data.

Why this answer

The PUT method is the standard HTTP verb used for key creation and updates in the Consul API.

32
MCQmedium

You need to verify if a node has successfully joined the cluster for service discovery. Which tool confirms this?

A.consul members
B.consul catalog nodes
C.consul info
D.consul services
AnswerA

Members shows the gossip cluster status.

Why this answer

'consul members' lists the nodes in the cluster.

33
Multi-Selecthard

Which THREE of the following are valid ways to register a service in Consul?

Select 3 answers
A.Kubernetes Custom Resource Definitions.
B.Configuration files in the agent's config directory.
C.HTTP API 'v1/agent/service/register'.
D.Directly modifying the Consul database file.
E.Manual editing of the Raft log.
AnswersA, B, C

Used with Consul K8s.

Why this answer

Services can be registered via files, HTTP API, or Consul K8s mechanisms.

34
MCQhard

You have configured a Script health check that executes a shell command. For security reasons, you want to restrict which scripts the Consul agent can run. What configuration setting must be set to 'false' in the agent configuration to disable script checks entirely?

A.allow_unprivileged_scripts
B.disable_remote_exec
C.enable_script_checks
D.enable_local_script_execution
AnswerC

This flag controls the ability of the agent to execute scripts.

Why this answer

The 'enable_script_checks' configuration parameter must be set to false to prevent the agent from executing scripts defined in configuration files.

35
MCQhard

When configuring a Service-specific health check, what is the impact of setting the 'expose' field to true?

A.The service is automatically registered with a Load Balancer
B.The check is bypassed
C.The check status is exposed on the HTTP interface
D.The agent automatically upgrades the check to HTTP
AnswerC

This makes the status publicly reachable on the agent's port.

Why this answer

Setting 'expose' to true allows the service to expose its health checks via the local agent's HTTP interface, enabling external access to the health check status.

36
MCQmedium

What is the role of a Consul server in a non-primary datacenter regarding ACLs?

A.They ignore all ACLs.
B.They can write new ACL policies independently.
C.They become the primary if the original primary fails.
D.They replicate the ACL state from the primary.
AnswerD

This is the function of ACL replication.

Why this answer

Secondary servers in an ACL-replicated setup act as a read-only mirror of the primary's ACL policy set.

37
MCQmedium

What is the recommended approach for running health checks on a service that is part of a non-containerized, multi-process architecture?

A.Only check the parent process
B.Run one check per service definition
C.Use only TCP checks
D.Use a single script check that kills the service
AnswerB

Consul allows multiple checks per service.

Why this answer

Defining separate health checks for each process or a single composite check that monitors the aggregate health is the standard practice.

38
MCQhard

If a service has multiple health checks associated with it, when is the service itself considered 'critical'?

A.When any check is critical
B.When a majority of checks are critical
C.When all checks are critical
D.Only if the primary check is critical
AnswerA

A single failed check marks the service as critical.

Why this answer

Consul considers a service critical if any of its associated health checks are in a critical state.

39
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.

40
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.

41
Multi-Selectmedium

Which THREE of the following fields are returned in a typical Consul KV API GET response?

Select 3 answers
A.ModifyIndex
B.Key
C.Value
D.SessionTTL
E.CreateTime
AnswersA, B, C

The index of the last modification is returned.

Why this answer

The Key, Value, and ModifyIndex are standard fields in the KV API response.

42
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.

43
Multi-Selecthard

Which THREE network considerations are vital for Consul WAN federation?

Select 3 answers
A.Sufficient bandwidth for gossip heartbeat messages.
B.A shared NAT gateway for all datacenters.
C.Uniform MTU settings across all regions.
D.TCP and UDP traffic on the WAN gossip port (8302).
E.Connectivity between server nodes across datacenters.
AnswersA, D, E

Required for cluster stability.

Why this answer

WAN federation requires specific port accessibility, bandwidth for gossip, and routing between servers.

44
MCQmedium

Which Consul feature allows you to perform health checks against a service that does not have an exposed HTTP endpoint but resides on the same machine?

A.TCP health check.
B.Script health check.
C.HTTP health check.
D.gRPC health check.
AnswerB

Script checks can execute any command locally on the node.

Why this answer

Script-based checks run locally on the agent node, allowing monitoring of processes or system resources.

45
MCQmedium

You are configuring a Consul Watch to trigger a script whenever a specific KV key changes. Which type of watch should you define in your configuration file?

A.event
B.service
C.key
D.nodes
AnswerC

Key watches track updates to a specific KV path.

Why this answer

The 'key' watch type is specifically designed to monitor changes to a single KV entry.

46
MCQeasy

Which command-line interface command is used to set a value in the Consul KV store?

A.consul kv write
B.consul kv set
C.consul kv update
D.consul kv put
AnswerD

Put is the correct verb for setting values.

Why this answer

The 'consul kv put' command is the standard CLI utility for setting key values.

47
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.

48
MCQhard

What is the impact of setting 'enable_tag_override' to true in a service definition?

A.It allows tags to be modified via the API without updating the config file.
B.It ignores all tags in the catalog.
C.It forces all nodes to update their tags.
D.It prevents tags from being used in DNS lookups.
AnswerA

Tag override permits dynamic tag updates.

Why this answer

It allows external systems to modify service tags without updating the service definition file.

49
MCQhard

When using Consul DNS for a service, what happens if no instances are healthy?

A.It returns a 500 error.
B.It redirects to a standby service.
C.It returns an empty response (NXDOMAIN or empty set).
D.It returns all instances regardless of health.
AnswerC

If no service instances are passing, the DNS resolver returns an empty set.

Why this answer

By default, if no healthy instances are found, the DNS query will return no results.

50
MCQmedium

You need to ensure that a service is only discoverable via DNS if it passes its health checks. Which configuration setting in the service definition achieves this?

A.Enable 'only_passing' in the DNS configuration.
B.Disable the agent's 'allow_stale' read setting.
C.Set the 'passing' parameter to true in the DNS query.
D.Set 'deregister_critical_service_after' to 0.
AnswerC

Using the passing query parameter filters results to only include services with passing health checks.

Why this answer

Consul allows filtering services based on health checks via the 'passing' parameter in the DNS interface or by defining the service with a health check.

51
Multi-Selecteasy

Which THREE of the following are true about Consul KV keys?

Select 3 answers
A.Keys must start with a slash
B.Keys support storing binary data
C.Keys are case-sensitive
D.Keys cannot contain spaces
E.Keys can be organized in a folder-like hierarchy
AnswersB, C, E

Values are base64 encoded, allowing binary.

Why this answer

Keys are organized in a hierarchy, they are case-sensitive, and they can store arbitrary data.

52
Multi-Selectmedium

Which TWO of the following are true regarding the Consul Service Catalog?

Select 2 answers
A.It provides a unified view of all services in the cluster.
B.It is replicated across the cluster using Raft.
C.It is strictly read-only.
D.It is only accessible via the CLI.
E.It is stored in the local disk of every agent.
AnswersA, B

The catalog is the source of truth.

Why this answer

The catalog is replicated via Raft and can be queried via API or DNS.

53
MCQmedium

You want to delete a key and all its children in the KV store using the CLI. Which flag should you use?

A.-force
B.-recurse
C.--all
D.--cascade
AnswerB

-recurse allows recursive operations in the CLI.

Why this answer

The -recurse flag in the CLI allows the delete operation to act on the key and all nested keys.

54
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.

55
MCQmedium

Which Consul API endpoint is used to create a new session that can be used for locking KV keys?

A./v1/kv/acquire
B./v1/session/create
C./v1/lock/init
D./v1/session/renew
AnswerB

This endpoint creates the session required for session-based locking.

Why this answer

The /v1/session/create endpoint is the standard way to initialize a session object in Consul.

56
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.

57
MCQmedium

In a multi-datacenter environment, what happens if the 'primary_datacenter' server cluster becomes unavailable?

A.Secondary datacenters elect a new primary.
B.Secondary datacenters continue to operate, but ACL updates are blocked.
C.All secondary datacenters immediately shut down.
D.The entire WAN federation is dismantled.
AnswerB

ACL replication requires the primary, but local operations are unaffected.

Why this answer

While ACL replication will stall, the secondary datacenters continue to function using their own local raft states.

58
MCQhard

When a service check transitions to 'critical', what does Consul do with the service's DNS entry?

A.It marks the record as 'stale'.
B.It removes the instance from the DNS response.
C.It returns the IP but with a low TTL.
D.It returns a 503 status code.
AnswerB

Consul dynamic DNS removes failed instances.

Why this answer

Consul removes the service instance from DNS results when its health check is critical.

59
MCQeasy

When using the Consul KV store, what is the maximum size allowed for a single value in a key?

A.There is no limit.
B.128 KB
C.1 MB
D.512 KB
AnswerD

Consul limits the value size to 512 KB.

Why this answer

Consul enforces a hard limit of 512 KB per KV entry value.

60
MCQmedium

When providing a session TTL, what is the minimum duration allowed?

A.10 seconds
B.30 seconds
C.5 seconds
D.1 second
AnswerA

The minimum is 10s.

Why this answer

The minimum session TTL allowed is 10 seconds.

61
MCQeasy

To verify if two datacenters are connected via WAN, which command shows the remote datacenter's server nodes?

A.consul members
B.consul info
C.consul members -wan
D.consul operator raft list-peers
AnswerC

This command shows WAN participants.

Why this answer

The 'consul members -wan' command lists all nodes participating in the WAN gossip pool, regardless of their local datacenter.

62
Multi-Selecteasy

Which TWO of the following are standard DNS records returned by Consul for service discovery?

Select 2 answers
A.NS
B.SRV
C.A
D.SOA
E.PTR
AnswersB, C

Provides service port and target.

Why this answer

Consul uses SRV and A records for service resolution.

63
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.

64
Multi-Selecteasy

What information does the Consul HTTP API return for a health check? (Select TWO)

Select 2 answers
A.Service CPU usage
B.Output
C.Service port
D.Check uptime
E.Status
AnswersB, E

Message returned by the check.

Why this answer

The API returns the status and the human-readable output of the check.

65
Multi-Selecthard

Which of these are required fields for a TCP health check definition? (Select THREE)

Select 3 answers
A.timeout
B.http
C.name
D.tcp
E.interval
AnswersC, D, E

Check identifier.

Why this answer

TCP checks require tcp, interval, and name fields.

66
Multi-Selecteasy

What is true about Consul health checks? (Select TWO)

Select 2 answers
A.They run on the local agent
B.They can be associated with a service
C.They only support GET requests
D.They always run on the server
E.They cannot be disabled
AnswersA, B

Locality is required.

Why this answer

They run locally on the agent and can be associated with specific services.

67
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.

68
MCQmedium

When multiple agents are in a cluster, how does Consul ensure that service discovery information is consistent across all nodes?

A.Using a centralized database like PostgreSQL.
B.By polling the leader every second.
C.Via the Raft consensus protocol for catalog changes.
D.By broadcasting all service updates to every node.
AnswerC

Raft ensures a consistent replicated state machine for the catalog.

Why this answer

The Gossip Protocol (serf) and Raft consensus maintain state across nodes.

69
MCQeasy

What happens if you try to write to a key that is currently locked by a session you do not own?

A.The write is rejected.
B.The write overwrites the lock.
C.The lock is transferred.
D.The write is queued.
AnswerA

Writes to locked keys require the matching session ID.

Why this answer

The write will be rejected if the session ID is not provided or if the session does not match the lock holder.

70
MCQmedium

What is the benefit of using a Mesh Gateway in a multi-datacenter deployment with overlapping IP space?

A.It allows cross-datacenter traffic without routing overlapping networks.
B.It reduces the server memory usage.
C.It eliminates the need for ACLs.
D.It increases the gossip speed.
AnswerA

Mesh gateways proxy traffic at Layer 7, bypassing IP routing issues.

Why this answer

Mesh gateways allow communication between datacenters with overlapping IP ranges by acting as an SNI-based proxy that terminates and re-originates the mTLS connection.

71
MCQeasy

Which HTTP status code range does Consul interpret as a passing state for an HTTP health check?

A.3xx
B.Any code less than 500
C.1xx
D.2xx
AnswerD

Consul interprets 2xx as passing.

Why this answer

Consul considers any 2xx status code as a passing health check. Codes 4xx and 5xx result in a critical state.

72
MCQmedium

An operator observes that a service is failing its HTTP health check because the application takes 15 seconds to start up, exceeding the default timeout. Which parameter should be adjusted in the service definition to prevent premature failure?

A.InitialStatus
B.Timeout
C.Interval
D.DeregisterCriticalServiceAfter
AnswerB

Specifies the duration the agent waits for a response.

Why this answer

The 'timeout' parameter defines how long the agent waits for a response; increasing it allows the service time to initialize.

73
Multi-Selectmedium

When troubleshooting a failing health check, which tools are recommended? (Select TWO)

Select 2 answers
A.Consul UI
B.Agent logs
C.DNS query
D.Consul key-value store
E.System metrics
AnswersA, B

Provides a visual check status.

Why this answer

Inspecting logs and using the CLI/API to query status are essential for troubleshooting.

74
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.

75
MCQhard

You need to ensure that a read operation from the KV store is strongly consistent. Which consistency mode should you specify?

A.default
B.consistent
C.quorum
D.stale
AnswerB

Consistent forces a leader check for strong consistency.

Why this answer

The 'consistent' consistency mode forces the leader to verify its leadership with a quorum of peers, ensuring strong consistency.

Page 1 of 3

Page 2

All pages