Taking the exam in a country other than the one that resides in isn't an issue. However, I would confirm with the Pearson Vue testing center that your ID is sufficient. I have heard of some cases where the ID didn't meet the requirements for the testing center.
Hey Haroon,
My situation is the same as yours. Currently, I'm in Saudi Arabia on a valid visit visa, and I want to appear for the CC exam. so did you face any complications at the Pearson VUE test centre? cause I want to appear for the exam this week and guide me through your experience when you took the exam. Please can you reach out to me as soon as possible