Consul
Sample questions - Consul Associate (003)
The exam mainly consists of multiple choice and true/false questions. In addition, there are type-in-the-command and UI-based questions. Some of the multiple-choice questions are scenario-based questions to test your understanding of Consul usages.
Below are some examples so you can familiarize yourself with the exam format.
True/false questions
Q1: When starting the Consul agent with the consul agent -dev
command, all core security features will be initialized with the agent.
š True
š False
ā Incorrect: True
ā
Correct: False
Q2: Individual agents are responsible for defining and monitoring their own services.
š True
š False
ā
Correct: True
ā Incorrect: False
Q3: Access Control Lists (ACLs) are used to secure access to the UI, API, CLI, service communications, and agent communications.
š True
š False
ā
Correct: True
ā Incorrect: False
Multiple choice questions
When there is more than one correct answer, the question explicitly states so. For example, "Choose TWO correct answers."
Q4: Which protocol(s) need to be enabled in your network configuration to permit the nodes to communicate over the gossip protocol?
š TCP and UDP
š gRPC
š SSL
š HTTP and HTTPS
š All of the above
ā
Correct: TCP and UDP
ā Incorrect: gRPC
ā Incorrect: SSL
ā Incorrect: HTTP and HTTPS
ā Incorrect: All of the above
Q5: What are the benefits of using the Consul Enterprise feature of adding read replicas in a redundancy zone to your Consul datacenter? Choose two correct answers.
- Read-scalability
- Redundancy
- Increase quorum
- Segment your network
- Disaster recovery
ā
Correct: Read-scalability
ā
Correct: Redundancy
ā Incorrect: Increase quorum
ā Incorrect: Segment your network
ā Incorrect: Disaster recovery
Q6: You can query for services using the following HTTP API call.
$ curl http://localhost:8500/v1/catalog/service/web
The following response is returned:
[
{
"ID": "82f64bfa-22c2-5727-0f5d-0bae376f6584",
"Node": "Judiths-MBP.lan",
"Address": "127.0.0.1",
"Datacenter": "dc1",
"TaggedAddresses": {
"lan": "127.0.0.1",
"wan": "127.0.0.1"
},
"NodeMeta": {
"consul-network-segment": ""
},
"ServiceKind": "",
"ServiceID": "web",
"ServiceName": "web",
"ServiceTags": ["rails"],
"ServiceAddress": "",
"ServiceWeights": {
"Passing": 1,
"Warning": 1
},
"ServiceMeta": {},
"ServicePort": 80,
"ServiceEnableTagOverride": false,
"ServiceProxyDestination": "",
"ServiceProxy": {},
"ServiceConnect": {},
"CreateIndex": 10,
"ModifyIndex": 10
}
]
You want to retrieve a list of healthy instances of the service. Fill in the blank in the following command:
curl http://localhost:8500/v1/health/service/web______
- ?healthy
- ?valid-only
- ?available=true
- ?passing
- ?failing=false
ā Incorrect: ?healthy
ā Incorrect: ?valid-only
ā Incorrect: ?available=true
ā
Correct: ?passing
ā Incorrect: ?failing=false
UI questions
Q7: You notice the following error in the Consul UI. What is being indicated by the error?
š The node hosting the Dashboard service is down.
š The proxy in the service mesh has failed.
š The dashboard service failed to register.
š One or more health checks for the Dashboard service have failed.
ā Incorrect: The node hosting the Dashboard service is down.
ā Incorrect: The proxy in the service mesh has failed.
ā Incorrect: The dashboard service failed to register.
ā
Correct: One or more health checks for the Dashboard service have failed.
Q8: You navigate to the Intentions page in the Consul UI and see the following content. With this configuration, what will be the behavior of web -> api
service communication?
š All service to service communication will be denied, including web -> api
.
š The web service will be allowed to communicate with the api service.
š Communication from web -> api
can not occur until an api -> web
rule is created.
š The api service will be able to send traffic to web.
ā Incorrect: All service to service communication will be denied, including web -> api.
ā
Correct: The web service will be allowed to communicate with the api service.
ā Incorrect: Communication from web -> api can not occur until an api -> web rule is created.
ā Incorrect: The api service will be able to send traffic to web.
Next steps
To study all of the objectives tested on the exam, go through the materials in the learning path. For specific study materials that cover a particular exam objective, refer to the content list.