GIAC Cloud Penetration Tester Exam Prep
Free practice questions

Free GCPN Practice Questions

10 exam-style questions with answers and explanations, straight from our 1,030-question bank. Tap an answer to check yourself. When you're ready, take the scored version in the free practice test.

Start the free practice test → ★★★★★4.9/5 from 2,400+ candidates · No signup

The GCPN exam has 75 questions and runs 2 hours.

These 10 free GCPN questions are organized by exam domain, so you can see how each part of the GIAC Cloud Penetration Tester blueprint is tested. Reveal the answer and explanation under each question.

Domain 1: AWS Authentication and Cloud Services

Question 1

A release identity can update an existing Lambda function's code and invoke its unqualified ARN. It has neither s3:GetObject nor iam:PassRole. The function's current execution role trusts Lambda and can read a designated S3 canary object; no signing, network, or other policy control blocks the stated operations. The attached role will remain unchanged. What access path does this create?

Show answer & explanation

Correct answer: C - Changed code can read the canary using the function's existing execution role.

Domain 2: Azure Functions and Windows Containers

Question 2

An Azure function app exposes Quote and Reconcile, both with HTTP authorization level function. Its two callers are a supplier that should invoke only Quote and an internal client using Reconcile's own function key. The supplier was given a host key and can invoke both functions. Routes and downstream access must stay intact. What correction gives each caller only the invocation access it needs?

Show answer & explanation

Correct answer: A - Revoke the supplier's host key and issue Quote's function-specific key.

Domain 3: Cloud CLI and Application Mapping

Question 3

An inventory script runs this command: aws ec2 describe-instances --profile audit --region eu-west-1 --no-paginate --query 'Reservations[].Instances[].InstanceId' --output json The underlying AWS response includes a NextToken, but the saved inventory contains only the first page's instance IDs. The account, Region, and permissions are correct. Which single edit restores automatic retrieval of the remaining pages?

Show answer & explanation

Correct answer: B - Remove --no-paginate.

Domain 4: Cloud Native Applications and CI/CD Pipelines

Question 4

External pull-request tests receive no secrets, but they share a persistent self-hosted runner with approved releases. A controlled test leaves a helper outside the Git checkout; the next release job executes it with deployment credentials available. The release commit was reviewed and its checkout was clean. How can the team close this path while continuing to test external contributions?

Show answer & explanation

Correct answer: C - Run untrusted tests and credentialed releases in separate fresh VMs, destroyed after each job.

Domain 5: Cloud Penetration Testing Fundamentals

Question 5

During an authorized cloud API test, the production 5xx error rate rises to 6% and stays there for 90 seconds. The engagement's stop rule requires immediate suspension of active probes if that rate exceeds 2% for 60 seconds, followed by notification of the named operations contact. Errors also affect endpoints the tester has not touched, so the cause is uncertain. What must the tester do immediately?

Show answer & explanation

Correct answer: B - Suspend active probes and notify the operations contact.

Domain 6: Containers and Kubernetes Structure

Question 6

In the build namespace, a test identity can create Pods and read Pod logs but cannot get, list, or watch Secrets through the API. It knows the name of a canary Secret in build. Admission requires non-root containers and prohibits privileged containers and host mounts; it permits the canary to be mounted with file permissions readable by the container process. An access reviewer concludes that the Secret's contents are inaccessible to this identity. Which assessment is justified?

Show answer & explanation

Correct answer: D - The conclusion fails: a permitted Pod can read the Secret and expose it through its logs.

Domain 7: Discovering Cloud Services and Data

Question 7

An unsigned list request against a client's S3 bucket returns 403 AccessDenied. Written scope permits that check and one unsigned GET for a named, harmless canary object; other object reads are excluded. The exact canary key is available, service health is normal, and no stop condition has been met. How should anonymous object-read exposure be checked?

Show answer & explanation

Correct answer: A - Issue the authorized unsigned GET for the supplied canary key.

Domain 8: Microsoft Azure Cloud Services and Attacks

Question 8

Two Azure vaults give a test identity only the Key Vault Contributor role. Vault P uses legacy access policies; Vault R uses Azure RBAC. The identity can update vault settings but initially cannot retrieve either canary secret. Self-grant validation is authorized, changing authorization models is excluded, and no additional restrictions apply. In which vault can the identity grant itself secret-read access?

Show answer & explanation

Correct answer: B - Vault P only, by adding a legacy access policy.

Domain 9: Password Attacks on Cloud Environments

Question 9

A password-spraying plan assumes that repeating an identical wrong password will not advance Microsoft Entra's lockout counters. The tenant uses pass-through authentication, with password validation in on-premises Active Directory. Cloud and on-premises lockout controls are both enabled. Which premise must be discarded?

Show answer & explanation

Correct answer: D - Entra's recent-bad-password hash tracking will suppress the repeated failures.

Domain 12: Web Application Attacks

Question 10

A multi-tenant invoice API validates the caller's session and uses a parameterized query to retrieve invoices by unpredictable identifiers. Signed in as a Tenant A user, an authorized tester supplies a synthetic Tenant B invoice's identifier and receives that invoice from the database. The user may use the endpoint but has no access to Tenant B; no shared cache is involved. Which server-side change addresses the defect?

Show answer & explanation

Correct answer: D - Check the caller's tenant and object permissions before returning the invoice.

The rest of the GCPN blueprint

The GCPN exam also covers these domains. Drill them in the full free practice test:

That's 10 of 1,030

The full bank has 1,020 more GCPN questions with explanations.

Continue in the free practice test →

View plans