Exam Information
Free practice questions with explanations
The SecOps Group CCPenX-Az Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 14
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Azure Resource Misconfigurations
A retail company stores product images in an Azure Blob Storage account named retailmedia01. The storage account is used by a public website, and the security team has been asked to stop anonymous listing of container contents while keeping images viewable by direct URL. A penetration tester notes that anonymous users can enumerate all blobs in a container named catalog-images through the List Blobs operation. The company must not move images to a different account or break existing direct links. Which configuration change is the BEST fix?
Correct Answer: CExplanationAzure Blob Storage container public access has three levels: Private, Blob, and Container. Blob level allows anonymous read of individual blobs when the exact URL is known but disables anonymous listing of the container, which is exactly the required behaviour. Container level permits both listing and reading, so it is the misconfiguration being fixed, not the remedy. Requiring Entra ID authentication would break the anonymous direct-link access the public website depends on. Soft delete protects against accidental deletion and does nothing to stop anonymous listing.
-
2 Question 2 Single choice Enumeration & Reconnaissance
During an external assessment of a company's Azure footprint, a tester has a list of 400 subdomains gathered from certificate transparency logs. Many resolve to CNAME records pointing at azurewebsites.net, cloudapp.azure.com, or blob.core.windows.net endpoints. The client's rules of engagement prohibit any active port scanning against IP ranges that are not clearly owned by the client, and the tester wants to find dangling records that could allow subdomain takeover. Which step should be performed FIRST?
Correct Answer: DExplanationDangling CNAME records are identified by resolving each subdomain and following its CNAME chain to see whether the Azure target hostname returns not-found or is unclaimed. This is passive-to-light DNS work that respects the rules of engagement. Port sweeping of unowned IP ranges is explicitly prohibited, so it cannot be first. Azure Resource Graph is only queryable by an authenticated principal with access to the subscriptions, so an external tester cannot use it against unknown targets. Tenant metadata enumeration does not reveal subdomain takeover candidates and would expand scope without authorisation.
-
3 Question 3 Single choice Exploitation Techniques
A penetration test has obtained code execution inside an Azure Linux VM that was deployed with a user-assigned managed identity. The VM's Azure Instance Metadata Service is reachable. The tester wants to obtain an access token for Azure Resource Manager without storing any credentials on disk, and the environment is configured so that the IMDS requests must include the Metadata header. Which request is the correct way to obtain the token?
Correct Answer: CExplanationThe Azure Instance Metadata Service exposes a managed identity token endpoint at the link-local address 169.254.169.254 under the identity path. Requests must carry the Metadata header set to true, and the resource parameter specifies the audience, here the ARM endpoint. The POST to the Entra ID endpoint needs a client secret that managed identities do not possess. Calling ARM anonymously is rejected. Managed identities have no credentials stored in Key Vault for the tester to retrieve, so that path does not exist.
-
4 Question 4 Single choice Identity and Access Management (IAM)
A tester has compromised a user who holds the Helpdesk Administrator role in an Entra ID tenant. The client wants to know what the attacker could realistically do with this role and what the most important remediation is. The tenant has Conditional Access requiring MFA for all cloud apps except a trusted location named HQ-Office. The compromised user is outside the HQ-Office range. The tester confirms the role can reset passwords for non-administrative users and for users holding certain lower-privilege roles. Which conclusion and remediation best reflect the role's actual scope?
Correct Answer: DExplanationHelpdesk Administrator can reset passwords for users who do not hold administrative roles, and for holders of a limited set of lower-privilege roles, but it cannot reset Global Administrator passwords. Its exposure lies in lateral reach into standard users and reachable roles, so reviewing role membership and requiring phishing-resistant MFA on privileged roles addresses the real path. Claiming it can reset Global Administrator passwords overstates the role. Group self-membership and Conditional Access bypass are not capabilities of this role, and excluding accounts from Conditional Access would weaken security.
-
5 Question 5 Single choice Vulnerability Identification
An organisation exposes a Python-based internal reporting API through Azure API Management. The API accepts a parameter named report_url and fetches the content server-side to render a PDF. The tester suspects server-side request forgery able to reach the Instance Metadata Service at 169.254.169.254. The client's App Service plan has the API backend on a virtual network with outbound traffic routed through a NAT gateway, and the team wants the fix to preserve PDF generation for approved external sources. Which remediation BEST addresses the vulnerability while meeting the functional requirement?
Correct Answer: BExplanationThe correct control validates the destination before the server makes the request: an allowlist of approved hosts combined with resolution and rejection of link-local and metadata address ranges defeats SSRF, including DNS-based redirection. A WAF inspects request bodies for patterns but cannot reliably stop server-side fetches to attacker-chosen internal targets. Private Link governs inbound access to services, not the backend's outbound calls to the metadata address. Removing role assignments does not stop the leak of the token or the reach to other internal services, and the metadata token would still be issued.
-
6 Question 6 Single choice Enumeration & Reconnaissance
A tester wants to identify Azure-hosted web services belonging to a client without touching any system the client does not own. The client has provided its tenant ID and a list of verified domain names. The tester plans to use only public information and unauthenticated requests. Which approach is permitted and most useful for mapping the client's Azure App Service footprint?
Correct Answer: BExplanationAzure App Service default hostnames follow the azurewebsites.net pattern, and custom domains are commonly published as CNAME records pointing to them, so public DNS reveals the footprint without any authentication. Azure Resource Graph requires an authenticated principal with read access to the subscriptions, so it is not an external reconnaissance option. Using stolen tokens is unauthorised access, not permitted recon. The sign-in page does not disclose hosted application names.
-
7 Question 7 Single choice Exploitation Techniques
A tester has gained Contributor access to an Azure subscription through a compromised automation account. The client's security team has enabled Microsoft Defender for Cloud and has a policy that alerts on any use of Run Command on virtual machines. The tester needs to execute a script on a production VM that has no public IP and an NSG permitting only the management subnet inbound. Which technique is the MOST likely to succeed while remaining within Azure's supported Run Command behaviour?
Correct Answer: AExplanationRun Command sends scripts through the VM agent over the Azure control plane, so it does not need inbound network connectivity to the VM and works against private VMs. The Contributor role is sufficient to invoke it, which is why Defender's alerting matters for detection rather than prevention. Attaching a public IP or opening NSG rules are network changes that the NSG and governance controls are designed to flag and that would not be needed here. Extensions are not evaluated ahead of NSG rules, and the NSG does not gate the control-plane agent channel, so the scale-set claim is false.
-
8 Question 8 Single choice Identity and Access Management (IAM)
A financial client uses Conditional Access to require MFA for all users, with a named location exception for a corporate network. During testing, the tester obtains a refresh token for an employee through a phishing session that completed MFA. The client's security team asks which control would most directly limit replay of such a token from an attacker-controlled device, while keeping user productivity, which includes mobile access from unmanaged personal phones, unchanged for read-only mail. Which control is the BEST fit?
Correct Answer: AExplanationToken protection in Conditional Access binds refresh and session tokens to the device that requested them, so a stolen token cannot be replayed from another device, and sign-in frequency limits how long a session persists without re-authentication. Scoping to sensitive apps preserves the read-only mobile access the client needs for other workloads. Lengthening token lifetime widens the replay window. Removing the named location exception does not stop token replay from a foreign device. Password writeback synchronises changes to on-premises AD and is not a token revocation mechanism for cloud sessions.
-
9 Question 9 Single choice Azure Resource Misconfigurations
A development team stores a database connection string in an ARM template parameter that is deployed as a Custom Script Extension to a Windows VM. The template is stored in a public GitHub repository, and the VM's extension settings include the password in plaintext within the protectedSettings block that is intended to remain encrypted. The client needs to remove the exposed credential, prevent future occurrences, and keep the deployment repeatable. Which action should be performed FIRST?
Correct Answer: AExplanationA credential that has been publicly exposed must be treated as compromised, so rotation comes first, and the replacement should be injected at deployment from Key Vault rather than embedded in a template. Moving the secret to publicSettings exposes it further because those settings are stored unencrypted. Soft delete does not address exposure and redeploying the same parameters reintroduces the problem. Deleting the repository does not remove copies in git history, forks or caches, so the secret must be rotated regardless.
-
10 Question 10 Single choice Enumeration & Reconnaissance
A tester is asked to determine whether a client has deployed Azure AD Connect synchronisation and where the synchronisation service runs, using only what is visible from a standard user account in the cloud tenant and public information. The client has disabled guest access to most directory objects. Which observable artefact is the MOST reliable indicator of hybrid identity in this scenario?
Correct Answer: BExplanationUsers synchronised from on-premises Active Directory carry onPremisesSyncEnabled set to true and on-premises attributes such as onPremisesSamAccountName, which a standard user can often read through directory queries. The sync service account exists but its visibility to a standard user is restricted and it is not reliably observable. A DNS TXT record proves domain verification, not that synchronisation is running, and the App Service is invented rather than a recognised artefact. Only the attribute-based signal is both reliable and reachable from the stated vantage point.
-
11 Question 11 Single choice Vulnerability Identification
A client's Azure DevOps pipeline builds and deploys an Azure Functions app. The pipeline is triggered by pull requests from any fork of the public repository, and the variable group holding the production service principal secret is accessible to all pipelines in the project. The client wants to keep fork-based contribution working for external developers while preventing the production secret from being exposed. Which configuration change BEST meets both requirements?
Correct Answer: BExplanationAzure Pipelines lets you scope a variable group or service connection to named pipelines and enforce branch controls, and pull request builds from forks do not receive secrets by default when this is configured. Restricting the variable group to deployment pipelines on protected branches achieves the requirement while forks still build and test. Approval gates still expose the secret to the pipeline run that the attacker controls. Renaming a variable does not protect its value, and caching does not prevent secrets being read by a malicious build.
-
12 Question 12 Multiple choice Azure Resource Misconfigurations
A security engineer reviews an Azure subscription after an incident in which an attacker read sensitive files from a storage account using a leaked shared key. The storage account is used by an App Service and a backup job. The client's compliance policy prohibits any use of shared key authorisation and requires that access be auditable per identity. Which TWO actions together meet these requirements? (Choose two.)
Correct Answer: A, EExplanationDisallowing shared key authorisation on the storage account forces all clients to use Entra ID tokens, and assigning data-plane roles such as Storage Blob Data Reader and Storage Blob Data Contributor to specific managed identities gives per-identity, auditable access at the narrowest scope. Key rotation and soft delete do not stop shared key use and do not satisfy the auditing requirement. A long-lived service SAS is itself a bearer credential that conflicts with the policy. Private endpoints and logging improve monitoring and network posture but do not eliminate shared key authorisation.
-
13 Question 13 Multiple choice Exploitation Techniques
During an authorised test, a tester has code execution on an Azure App Service that uses a system-assigned managed identity. The tester wants to pivot to an Azure Automation account and then persist access without relying on the original App Service. Which TWO approaches are the most appropriate next steps within the scope of Azure's supported identity and automation features? (Choose two.)
Correct Answer: A, EExplanationThe App Service identity endpoint issues ARM-audience access tokens, which can be used to read Automation account resources the identity is authorised for, and an Automation runbook running as the account identity can be modified and exposed through a webhook for durable access. Entra ID ID tokens are not valid bearer tokens for ARM, so that option fails. Creating an App Registration requires directory permissions the tester has not established, and the publish profile authenticates to Kudu and deployment endpoints, not to the Automation account. The chosen pair reflects realistic pivot and persistence through supported mechanisms.
-
14 Question 14 Multiple choice Identity and Access Management (IAM)
An enterprise has an Entra ID tenant where a development team uses self-service group management to let members join a group named sg-app-owners, which is assigned the Application Administrator role. The security team wants to stop privilege escalation through this path while keeping the team able to manage its own app registrations. Which TWO actions together achieve this? (Choose two.)
Correct Answer: A, EExplanationAssigned membership removes self-service joining, and removing the directory role from the group stops privileged roles flowing through membership. Granting only the Application Developer role to individuals lets the team manage its own registrations without Application Administrator rights, which is a valid path but is not one of the keyed options here; the access package approach governs joining with an approval workflow. MFA does not stop an unauthorised join. Disabling group creation does not remove the existing privileged group from self-service join. The selected pair blocks the escalation path directly.
These are 14 of the 31 questions in the full CCPenX-Az pack.
Get All 31 QuestionsGet all 31 questions & answers
Full access options for The SecOps Group CCPenX-Az
Self-study
PDF Version
- 31 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 31 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 31 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the CCPenX-Az Exam (Certified Cloud Pentesting eXpert - Azure) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.