CKA EXAM, Question have issue and not able to go through

Dear Team,
I spend so much time on one question where I had to take backup of etcd server. The use ca cert and key file but they are in peer.crt and peer.key name. I used built-in snapshot but when I run the command I saw error not able to read .key file. I wasted so much time on this and still not able to find out what I am doing wrong. Any help please?

We can’t discuss individual questions from the exam here; it violates the the NDA for the exam that both you and we agreed to :frowning: Sorry!

1 Like

Thanks, I just updated the question. BTW this question is in ultimate mock exam number 3. In solution it show the same solution as I am trying. I am missing something and not able to perform backup.

I just went through UME #3 and cannot find a question that fits that description. Could you please check the exam and question number?

Have a look, If I use this approaches,

I also look for that but didn’t manage to find the exact question. I found one in Mock exam of 3 from Udemy course but it is working. This is command ETCDCTL_API=3 etcdctl --endpoints=https://127.0.0.1:2379 --cacert=/etc/kube
rnetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/e
tcd/server.key snapshot save /opt/etcd-backup.db
Snapshot saved at /opt/etcd-backup.db Lets say If I see an error that key don’t have permission OR not working Or any other issue of crt or key. What possibly be the reason? Are there any other way to take backup of etcd? Or I need to have sudo or Su access ?

I also found related, question. Etcdctl backup - permission denied exception - General Discussions - Discuss Kubernetes Do we ned to install etcd again even we already have it installed.

Not sure how that old K8s forum post was resolved. In that case, it’s possible that the cert file just wasn’t in that location. But that’s not relevant to one of our labs, or even the exam environment, which uses kubeadm installs exclusively.

@Tauqeer-Ahamd i had my exam in jan and kind of face exact same issue saying the path not found . Which is really weird . They had given the 3 path in question and i used that , and got error saying file not found . I have raised ticket now. Is it fixed for u?

Hi Karunya,
Still not able to find the solution. Location is correct file is correct and etcd path is and installation is also varified but still snapshot didnt worked. The only think missing from my side is I didnt use su -i to be as root user. Did you try that ?
Please shear whatever they answer for the ticket.

I have also not used sudo -i . I got file not found for key file which was weird . Then i went etcd folder there i could not see any related files although etcd pod was running and i saw those files there . This is weird . Inbox be if possible

Ps, the key file path in question itself and i cross checked from etcd. Still the backup command failed with not found for key

I did same like etcd backup from udemy mock exam where it was right but in exam incorrect

Why is need to do sudo -i , it’s not asked in question or etcd backup doc

Since it’s a key file, its access mode is probably a bit restricted. Using sudo -i your command line process to “see” the file. Knowing about Unix access modes is probably assumed, so they figure you can troubleshoot that during the exam w/o any special instructions.