The mock exam 1 of RHCSA course is broken

Hello kodekloud.

Tried to pass mock exam 1 on RHCSA course “twice” and got reconnection issue both times.

So, I have a plenty of time left on mock timer (something about 125 minutes out of 180 minutes) - I don’t know why I always got errors like this.

Another moment I noticed (and it’s not the last one):

image

The test check this question to fail, but why at swap mountpoint “the swap” word even exists?

man fstab:

Addition:

This what I got on reconnection issue:

This question failed, but I’ve done everything in correct way:

tar -cjvf asset_backup.tar.bz2 --absolute-names /opt/assets/*

What’s wrong with this command?

sudo dd if=/dev/zero of=/swap_file bs=1M count=1024

sudo mkswap /swap_file

sudo swapon /swap_file

About fstab I’ve written above.

What’s wrong with this?

I can continue, but I will not.

Thank you.

The reset issue I think is something that is only partially under our control, since we use CDNs to distribution our content, and some CDNs tend to reset things as you get towards an hour into a session. It’s a bit annoying I’d agree, but while you lose the terminal session (with its environment and command history) the file system used in the mock exam persists.

As for the specific questions – please check the answers that get posted when you click on “End Exam” – I suspect they will propose solutions for your specific questions here.

For Q4, make sure:

  • You have a script file with a proper #! line.
  • That it’s been given the right chmod.

For Q9:

Your solution is different in some subtle ways from the one offered in the key (he’s using fallocate and does chmod 600 on the resulting file, which you don’t) so I’m not sure why the grader likes that and not yours. Might be a grader issue, or you may simply not pass it with your approach. Try the solution in the key and see if you don’t get a different result.

Hello Robert.

Thank you for reply.

I would not write if I could gain access to mock terminal again, but thing is - I could not.

The Reconnect button is persists on my screen and it’s understandable because of 404 response on load balancer’s nginx, nowhere to reconnect, I think. (I provided above the screenshot with 404 issue).

image

That’s also understandable, but I did not miss such things as “shabang”.

What about differences in solution’s approaches, fallocate and dd do the same things more or less (the first one is faster I think). But anyway thing is, that inside the course the tutor himself used the approach that I used in answer.

This one:
image

It is a misprint (or bug) in the test, I think. (man fstab)

Anyway, the issue with reconnect here is more important because if I do it for fun, other users of this site do it for real purpose (ready for real exams for example) and such things are really interfere here.

Thank you again for reply.

Hello Robert.

Tried to pass the mock 1 for the third time.

I didn’t experience the reconnect issue this time, possibly due to my activity within the terminal, or other factors.

The test for the question about the swap file is incorrectly check if you add the string:

/swap_file swap swap defaults 0 0

in the /etc/fstab file, and if the string differs from what test checks - you will get fail.