Consul Interview Question-Answer

Q.1 Consul supports 3rd party proxy integrations

       A. True

       B. False

Ans : True


Q.2 While configuring an Agent, using an external configuration file will override the environment variables defined to configure an agent.

       A. True

       B. False

Ans : False


Q.3 Connect feature is enabled by default and only needs to be configured in both the Servers and the Clients.

       A. True

       B. False

Ans : False


Q.4 Service Mesh is made up of

       A. Service Discovery

       B. Configuration

       C. Segmentation

       D. All the options

Ans : All the options


Q.5 Which command is used to query for the network round trip time between any two nodes?

       A. consul round_time

       B. consul ttr

       C. consul rtt

       D. consul rrt

Ans : consul rtt


Q.6 Applications can discover the services which they require using

       A. Either HTTP or DNS Interface

       B. HTTP Interface

       C. TCP Interface

       D. UDP interface

       E. DNS Interface

Ans : Either HTTP or DNS Interface


Q.7 With which community can Consul be linked the closest

       A. Full-Stack Community

       B. Web Development Community

       C. Back-end Development Community

       D. DevOps Community

Ans : DevOps Community


Q.8 How many possible states does a Raft node have?

       A. 3

       B. 1

       C. 2

       D. 4

       E. There is nothing such as state of Node

Ans : 3


Q.9 Which tag is used in the service configuartion optionally identify the service as a Connect proxy instance?

       A. kind

       B. proxy

       C. config

       D. type

Ans : kind


Q.10 Which command is used for DNS queries?

       A. agent

       B. join

       C. dig

       D. query_get

Ans : dig


Q.11 The Consul Intentions can be managed via

       A. CLI

       B. API

       C. UI

       D. All the options

Ans : All the options


Q.12 The resposibilitirs of the server include

       A. participating in the Raft quorum

       B. maintaining cluster state

       C. responding to RPC queries

       D. forwarding queries to leaders

       E. exchanging WAN gossip with other datacenters

       F. All the options

Ans : All the options


Q.13 To receive Telemetry data, what is the code that needs to be passed for Windows Platform.

       A. DATA

       B. BREAK

       C. STDERR

       D. DUMP

Ans : BREAK


Q.14 The connect proxies can be registered via API only.

       A. True

       B. False

Ans : False


Q.15 Each datacenter has its own LAN Gossip pool

       A. True

       B. False

Ans : False


Q.16 Consul intentions are defined using static Firewall rules.

       A. True

       B. False

Ans : False


Q.17 All nodes within a Consul cluster must share the same encryption key to send and receive cluster information.

       A. True

       B. False

Ans : True


Q.18 Choose the correct Statement

       A. A cluster receives new log entries inspite of having a leader

       B. A cluster with zero nodes receives log entries

       C. A cluster receives new log entries only when it has a leader

       D. A cluster never receives new log entries

Ans : A cluster receives new log entries only when it has a leader


Q.19 What does ACL stand for?

       A. Access Control List

       B. Anti-Entropy Control List

       C. Agent Control List

       D. API Control List

Ans : Access Control List


Q.20 The system continues to operate despite an arbitrary number of messages being dropped (or delayed) by the network between nodes.Which aspect of CAP theorem does this statement highlight?

       A. vailability

       B. Consistency

       C. Partition Tolerance

       D. CAP theorem is not concerned here

Ans : Partition Tolerance


Q.21 Choose the correct Statement

       A. Only the servers participate in the Gossip pool

       B. All Nodes in one Datacenter participate in the Gossip pool

       C. Only the clients participate in the Gossip pool

       D. The Agents across multiple datacenters participate in the Gossip pool

Ans : The Agents across multiple datacenters participate in the Gossip pool


Q.22 How many prevailing types of Gossip protocol are there?

       A. 2

       B. 3

       C. 4

       D. 5

Ans : 3


Q.23 Any member in the peer set can acknowledge log entries

       A. True

       B. False

Ans : False


Q.24 The gossip protocol uses symmetric key cryptosystem.

       A. True

       B. False

Ans : True


Q.25 Stale Reads can be used to __________ . Complete the sentence

       A. Increase latency and increase the throughput of DNS queries

       B. Reduce latency and increase the throughput of DNS queries

       C. Reduce latency and Reduce the throughput of DNS queries

       D. Increase latency and reduce the throughput of DNS queries

Ans : Reduce latency and increase the throughput of DNS queries


Q.26 Datacenter has the following attributes

       A. high latency and high bandwidth

       B. high latency and low bandwidth

       C. low latency and low bandwidth

       D. low latency and high bandwidth

Ans : low latency and low bandwidth


Q.27 Choose the precedence of configuring an Agent.

       A. Configuration Files>Command Line Arguments>Environment Variables

       B. Command Line Arguments<Environment Variables<Configuration Files

       C. Command Line Arguments>Configuration Files>Environment Variables

       D. Command Line Arguments<Configuration Files<Environment Variables

Ans : Command Line Arguments>Configuration Files>Environment Variables


Q.28 Keeping Health checks in mind, choose the correct one

       A. Exit Code 0: Check is Failing Exit Code 1: Error Any other exit code: Check is passing

       B. Exit Code 0: Error Exit Code 1: Check is passing Any other exit code: Check is Failing

       C. Exit Code 0: Check is passing Exit Code 1: Check is Failing Any other exit code: Error

       D. Exit Code 0: Check is failing Exit Code 1: Check is passing Any other exit code: Error

Ans : Exit Code 0: Check is failing Exit Code 1: Check is passing Any other exit code: Error


Q.29 What is the format of the DNS query for Connect-capable Service Lookups?

       A. <service>.connect.<domain>

       B. <service>.node.<connec>.<domain>

       C. <node>.<service>.connect.<domain>

       D. <service>.<node>.connect.<domain<

Ans : <service>.connect.<domain>


Q.30 How many processor roles does PAXOS have?

       A. 3

       B. 4

       C. 5

       D. 6

Ans : 5


Q.31 How many types of Network Tomography are there?

       A. 2

       B. 3

       C. 4

       D. 5

Ans : 2


Q.32 Consul automatically removes all the dead Nodes and deregistered services.This process is called

       A. Autocleaning

       B. Dumping

       C. Reaping

       D. Cleaning

Ans : Reaping


Q.33 Which port is used by HTTP interface by default?

       A. 8080

       B. 8600

       C. 8500

       D. 8000

Ans : 8500


Q.34 How many types of RPS requests are there?

       A. 2

       B. 3

       C. 4

       D. 5

Ans : 2


Q.35 Each datacenter has its own WAN Gossip pool

       A. True

       B. False

Ans : True


Q.36 A session is used to build distributed locks.

       A. True

       B. False

Ans : True


Q.37 All Nodes are initially in the follower state.

       A. True

       B. False

Ans : True


Leave a Comment