Ultimate Certified Kubernetes Administrator (CKA) Mock Exam Series Exam 4 doubt

Question 9 of this exam was:

An etcd backup is already stored at the path /opt/cluster1_backup_to_restore.db on the cluster1-controlplane node. Use /root/default.etcd as the --data-dir and restore it on the cluster1-controlplane node itself.

This was to be done on cluster1-controlplane.

I skipped over this question and did other question before coming back to this (did it last). In particular I did q.15 which was the question of Gateways and q.12 which was the troubleshooting question related to services. Both of these were also done on cluster1-controlplane.

As I did the questions, I verified that the answers were correct. For q.15 I did:

cluster1-controlplane ~ ➜ curl localhost:30080
Hostname: external-app-6f9cc8cbb9-sbxpt
IP: 127.0.0.1
IP: ::1
IP: 172.17.1.6
IP: fe80::f4cf:6eff:fec7:b134
RemoteAddr: 172.17.1.3:57408
GET / HTTP/1.1
Host: localhost:30080
User-Agent: curl/7.81.0
Accept: /
Connection: close
X-Forwarded-For: 172.17.0.0
X-Forwarded-Host: localhost
X-Forwarded-Port: 80
X-Forwarded-Proto: http
X-Real-Ip: 172.17.0.0

For q.12 I did:

cluster1-controlplane ~ ➜ kubectl exec curlpod-cka01-svcn – curl curlme-cka01-svcn
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 615 100 615 0 0 365k 0 --:–:-- --:–:-- --:–:-- 600k

Welcome to nginx! html { color-scheme: light dark; } body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; }

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx.

And verified that both answers were correct. At the very end, I went to q.9 and did the etcd restore which was to be done on cluster1-controlplane.

When being marked, q.9 was marked correct but the other two were marked wrong. And I noticed that I could not access the resources after exam until I changed the etcd.yaml back to /var/lib/etcd.

So I guess if I didn’t skip over q9 and did it in the order q9 → q12 → q15, everything would have gotten marked correct but since I restored etcd after I had finished q12 → q15, the objects were no longer there?

It didn’t occur to me that it would happen while doing the exam. I was under the impression questions could be answered in any order. Is that wrong? And will a situation like this happen in the real exam? Should we always answer questions in order?

Thanks in advance!