BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

The SecOps Group CCPenX-Az Exam - Topic 4 Question 7 Discussion

Posted by Georgiann on Aug 14, 2026 at 01:34 AM

Using the previously retrieved credentials, authenticate as the App Registration within the tenant and enumerate potential lateral movement vectors. Which of the following roles is assigned to the App Registration?

Suggested Answer: A

Detailed Solution:

Use the app registration credentials recovered from blob storage.

az login --service-principal

-u '<client-id>'

-p '<client-secret>'

--tenant f015f36d-c07f-41fb-9bde-fffc3a22ee8b

Confirm that you are authenticated as a service principal:

az account show

Now enumerate role assignments for the app registration.

az role assignment list

--assignee '<client-id>'

--all

--output table

If the --assignee lookup fails, first resolve the service principal object ID:

az ad sp show

--id '<client-id>'

--query id

--output tsv

Then query role assignments by object ID:

SP_OBJECT_ID=$(az ad sp show --id '<client-id>' --query id -o tsv)

az role assignment list

--assignee '$SP_OBJECT_ID'

--all

--output table

The assigned role is:

Key Vault Secrets User

This role allows the principal to read secret values from Azure Key Vault. That is the lateral movement path into the final flag.

Final Answer:

A . Key Vault Secrets User

================


Get Premium CCPenX-Az Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
21 comments · newest first
JU
Juan 1 day ago
D) is a safe bet if none fit perfectly. Always good to be cautious.
EL
Eladia 7 days ago
I agree with Cristy. A) is the best choice for security.
LE
Leana 12 days ago
I feel like B) Cosmos DB Built-in Data Reader could be useful too.
PE
Pearline 17 days ago
A) makes sense for accessing secrets. Good for lateral movement.
CE
Cecilia 22 days ago
I'm leaning towards D) None of the above. Could be a trick question.
CR
Cristy 27 days ago
I think it's A) Key Vault Secrets User. Seems most relevant.
VE
Velda 1 month ago
I agree with D) None of the above. It could be misleading.
KR
Kris 1 month ago
A) Key Vault Secrets User is crucial for managing secrets.
CO
Cordell 1 month ago
I feel like C) Container Apps Reader Role is too specific.
TE
Telma 2 months ago
B) Cosmos DB Built-in Data Reader seems plausible for data access.
RI
Rikki 2 months ago
I’m leaning towards D) None of the above. Could be a trick question.
BA
Barrie 2 months ago
I think it's definitely A) Key Vault Secrets User. It makes sense for security.
AL
Alease 2 months ago
Definitely not B) Cosmos DB Reader, that's too specific.
LA
Lauran 2 months ago
Wait, none of these roles? That seems odd!
JO
Josphine 2 months ago
A) Key Vault Secrets User makes sense for access.
ST
Stephaine 3 months ago
I disagree, I think it's D) None of the above.
EA
Earleen 3 months ago
I'm pretty sure it's A) Key Vault Secrets User.
AL
Alton 3 months ago
I’m leaning towards "None of the above," but I need to double-check what roles are typically assigned to App Registrations.
AR
Art 3 months ago
I feel like the Container Apps Reader Role could be a possibility, but I’m not sure if it’s relevant for lateral movement.
DA
Daren 3 months ago
I think we practiced a similar question about Azure roles, and I want to say it might be the Key Vault Secrets User, but I’m not completely confident.
FE
Felicia 3 months ago
I remember we discussed how App Registrations can have specific roles assigned, but I’m not entirely sure which one fits here.
0/2000 characters

Save Cancel