CCSP · Domain 4 of 6 · 17% of the exam

CCSP Domain 4: Cloud Application Security

35 free practice questions for Cloud Application Security in the Certified Cloud Security Professional exam. Try each question first, then open "Show answer" for the correct option and explanation.

Cloud Application Security practice questions

  1. Question 1. Which risk category is ranked #1 in the OWASP Top 10 (2021)?

    1. Injection
    2. Broken Access Control
    3. Cryptographic Failures
    4. Security Misconfiguration
    Show answer

    Answer: B. Broken Access Control

    In the 2021 edition, Broken Access Control moved to #1, with Cryptographic Failures at #2 and Injection at #3.

  2. Question 2. Which security testing technology runs inside the application at runtime and can detect and block attacks as they happen?

    1. Runtime application self-protection (RASP)
    2. Software composition analysis (SCA)
    3. Dynamic application security testing (DAST)
    4. Static application security testing (SAST)
    Show answer

    Answer: A. Runtime application self-protection (RASP)

    RASP instruments the running application so it can see how inputs are processed and stop attacks in context. SAST, DAST, and SCA are testing techniques.

  3. Question 3. Which component commonly provides authentication, rate limiting, request validation, and logging in front of an organization's APIs?

    1. Hypervisor
    2. API gateway
    3. CDN edge cache only
    4. DNS resolver
    Show answer

    Answer: B. API gateway

    API gateways centralize cross-cutting security controls for APIs, including authentication, throttling, schema validation, and monitoring.

  4. Question 4. Which statement BEST contrasts SOAP and REST APIs?

    1. SOAP is an XML protocol with WS-Security; REST is an HTTP style
    2. REST is limited to internal use, while SOAP is public
    3. SOAP can't be secured, while REST always uses TLS
    4. REST requires XML payloads, while SOAP uses only JSON
    Show answer

    Answer: A. SOAP is an XML protocol with WS-Security; REST is an HTTP style

    SOAP has built-in standards such as WS-Security. REST relies on HTTP, TLS, and token-based schemes like OAuth.

  5. Question 5. In OAuth 2.0, what is the PRIMARY purpose of an access token?

    1. To prove the user's identity to the client app
    2. To authorize access to resources on the user's behalf
    3. To encrypt the user's password in transit
    4. To replace TLS between client and server
    Show answer

    Answer: B. To authorize access to resources on the user's behalf

    OAuth 2.0 is an authorization framework. OpenID Connect adds an ID token for authentication.

  6. Question 6. Where should a cloud application store database passwords and API keys?

    1. Hard-coded in the application source code
    2. In the repository's configuration README
    3. In a secrets manager with access control
    4. In environment variables baked into images
    Show answer

    Answer: C. In a secrets manager with access control

    Secrets managers keep credentials out of code, encrypt them, control access, and support automatic rotation.

  7. Question 7. Which practice identifies known vulnerabilities in the open-source libraries a cloud application depends on?

    1. Load testing
    2. Penetration testing of the network
    3. Software composition analysis (SCA)
    4. User acceptance testing
    Show answer

    Answer: C. Software composition analysis (SCA)

    SCA inventories dependencies and matches them against vulnerability databases, which is essential given how much modern code is third-party.

  8. Question 8. In ISO/IEC 27034, which element is the organization-wide repository of all application security best practices, from which each application draws its own set?

    1. Application Normative Framework (ANF)
    2. Security Target
    3. Organizational Normative Framework (ONF)
    4. Application Security Control (ASC)
    Show answer

    Answer: C. Organizational Normative Framework (ONF)

    The ONF holds the organization's application security standards and practices. Each application has its own ANF, derived from the ONF, containing the controls relevant to it.

  9. Question 9. A team documents how an attacker might abuse a new cloud application's password reset feature to take over accounts. What activity is this?

    1. Regression testing of existing features
    2. Capacity planning for peak demand
    3. Misuse case development for threat modeling
    4. Load and performance testing
    Show answer

    Answer: C. Misuse case development for threat modeling

    Abuse cases describe malicious use and drive security requirements and test cases early in the SDLC.

  10. Question 10. Which control monitors SQL activity against databases in real time to detect suspicious queries, such as mass data extraction?

    1. Database activity monitoring (DAM)
    2. Web application firewall
    3. Network address translation
    4. Content delivery network
    Show answer

    Answer: A. Database activity monitoring (DAM)

    DAM inspects database traffic and activity independently of the database's own logging, catching abuse by attackers or insiders.

  11. Question 11. Which device specializes in inspecting and filtering XML traffic, such as SOAP messages, for malformed or malicious content?

    1. Load balancer
    2. VPN concentrator
    3. XML gateway (XML firewall)
    4. Stateful packet filter
    Show answer

    Answer: C. XML gateway (XML firewall)

    XML gateways validate schemas, detect XML-specific attacks (like entity expansion), and can enforce WS-Security policies.

  12. Question 12. A multi-tenant SaaS application stores all customers' records in shared tables. What is the MOST important control to prevent cross-tenant data exposure?

    1. Relying on the user interface to hide other tenants
    2. Larger database servers with more memory
    3. Encrypting database backups only
    4. Tenant-scoped queries and authorization checks
    Show answer

    Answer: D. Tenant-scoped queries and authorization checks

    Tenant isolation must be enforced server-side on every data access, for example through tenant-scoped queries or row-level security. The UI can't be trusted to enforce it.

  13. Question 13. Which authentication practice requires users to re-authenticate or use a stronger factor before a sensitive action, such as changing banking details?

    1. Session fixation
    2. Password hints
    3. Step-up authentication
    4. Single sign-on
    Show answer

    Answer: C. Step-up authentication

    Step-up (adaptive) authentication raises assurance for high-risk operations without burdening users for routine actions.

  14. Question 14. What is the BEST practice for permissions granted to individual serverless functions?

    1. Give each function its own role with only the permissions it needs
    2. Grant permissions only to the developer's account
    3. Give all functions a shared administrator role
    4. Disable authentication between functions
    Show answer

    Answer: A. Give each function its own role with only the permissions it needs

    Per-function least-privilege roles limit the damage if any single function is compromised.

  15. Question 15. In which SDLC phase are security requirements such as encryption and logging needs BEST defined?

    1. Deployment and release
    2. Operations and maintenance
    3. Disposal and decommissioning
    4. Requirements and design
    Show answer

    Answer: D. Requirements and design

    Defining security requirements early is far cheaper than retrofitting controls after coding or deployment.

  16. Question 16. A team wants to find how a deployed cloud API handles malformed and unexpected input by sending large volumes of generated requests. Which technique fits?

    1. Static code analysis
    2. Fuzz testing
    3. Code signing
    4. Threat modeling
    Show answer

    Answer: B. Fuzz testing

    Fuzzing sends invalid or random data to find crashes and input-handling flaws. Static analysis reviews code without running it.

  17. Question 17. What is the security benefit of signing container images and verifying signatures before deployment?

    1. It encrypts data stored inside the container
    2. It removes known vulnerabilities from images
    3. It makes container images smaller
    4. It verifies image origin and integrity
    Show answer

    Answer: D. It verifies image origin and integrity

    Signature verification in the deployment pipeline blocks untrusted or modified images, which is an important supply chain control.

  18. Question 18. Which federation standard is MOST commonly used for browser-based single sign-on between an enterprise identity provider and SaaS applications, using XML assertions?

    1. SNMP
    2. Kerberos
    3. SAML 2.0
    4. LDAP
    Show answer

    Answer: C. SAML 2.0

    SAML 2.0 exchanges signed XML assertions between an IdP and service providers. OIDC is a common JSON/JWT-based alternative.

  19. Question 19. An application in a sandbox environment is tested with production-like data. What is the MOST important precaution?

    1. Disable logging to protect the data
    2. Mask or anonymize sensitive data first
    3. Give testers production admin access
    4. Use real customer data without any changes
    Show answer

    Answer: B. Mask or anonymize sensitive data first

    Non-production environments usually have weaker controls, so sensitive data should be masked or synthetic.

  20. Question 20. Which is the MOST effective way to prevent injection flaws in a cloud application that queries a database?

    1. Hiding database error messages from users
    2. Parameterized queries plus input validation
    3. Escaping single quotes in all user input
    4. Using a longer database account password
    Show answer

    Answer: B. Parameterized queries plus input validation

    Parameterization keeps data separate from commands. Input validation adds defense in depth. Escaping and hiding errors are incomplete measures.

  21. Question 21. Which OWASP project provides a detailed standard of security requirements for verifying web applications at different levels?

    1. Application Security Verification Standard (ASVS)
    2. OWASP Top 10 awareness document
    3. OWASP ZAP dynamic scanning proxy
    4. OWASP Juice Shop training application
    Show answer

    Answer: A. Application Security Verification Standard (ASVS)

    ASVS defines testable requirements across three levels of assurance. The Top 10 is an awareness list.

  22. Question 22. Which testing approach combines instrumentation inside a running application with active testing to find vulnerabilities?

    1. Interactive application security testing (IAST)
    2. Static application security testing (SAST)
    3. Manual code review
    4. Software composition analysis (SCA)
    Show answer

    Answer: A. Interactive application security testing (IAST)

    IAST agents observe code execution during tests, pinpointing vulnerable code paths with fewer false positives.

  23. Question 23. What is the PRIMARY benefit of secure defaults in a cloud application?

    1. Documentation becomes unnecessary
    2. Applications run faster without configuration
    3. Users are protected even if they don't change settings
    4. Developers don't need to write tests
    Show answer

    Answer: C. Users are protected even if they don't change settings

    Secure-by-default designs reduce reliance on users to harden configurations correctly.

  24. Question 24. In a federated identity setup for a cloud app, which party asserts the user's identity?

    1. The identity provider
    2. The certificate revocation list
    3. The relying party
    4. The end user's browser
    Show answer

    Answer: A. The identity provider

    The identity provider authenticates the user and issues assertions or tokens that the relying party trusts.

  25. Question 25. Which practice BEST protects API keys used by a cloud-hosted mobile app backend?

    1. Embed keys in the mobile app binary
    2. Share one key across all customers
    3. Keep keys server-side and issue short-lived user tokens to clients
    4. Publish keys in documentation for convenience
    Show answer

    Answer: C. Keep keys server-side and issue short-lived user tokens to clients

    Mobile apps can be reverse engineered. Secrets should stay on the server, with clients using scoped, expiring tokens.

  26. Question 26. What is the purpose of threat modeling during cloud application design?

    1. Measure application performance under load
    2. Identify threats and design mitigations before coding
    3. Choose a programming language
    4. Estimate cloud hosting costs
    Show answer

    Answer: B. Identify threats and design mitigations before coding

    Threat modeling finds design-level weaknesses when they are cheapest to fix.

  27. Question 27. Which threat rating model scores threats on Damage, Reproducibility, Exploitability, Affected users, and Discoverability?

    1. STRIDE
    2. PASTA
    3. DREAD
    4. CVSS
    Show answer

    Answer: C. DREAD

    DREAD rates each threat on five factors to prioritize it. STRIDE categorizes threats, PASTA is a seven-stage risk-centric process, and CVSS scores vulnerabilities.

  28. Question 28. What does a software bill of materials (SBOM) enable for cloud applications?

    1. Faster application startup in containers
    2. Automatic licensing of all cloud services used
    3. Quickly finding affected components when flaws are disclosed
    4. Lower hosting costs across cloud regions
    Show answer

    Answer: C. Quickly finding affected components when flaws are disclosed

    An SBOM inventories dependencies so teams can quickly assess exposure to new vulnerabilities.

  29. Question 29. Which is the MOST secure way to handle user sessions in a cloud web application?

    1. Session IDs placed in URLs so links can be shared easily
    2. Secure, HttpOnly cookies with short lifetimes and server validation
    3. User passwords stored in cookies for quick re-login
    4. Sessions that never expire so users stay signed in
    Show answer

    Answer: B. Secure, HttpOnly cookies with short lifetimes and server validation

    Proper cookie flags, expiry, and validation reduce session hijacking and fixation risks.

  30. Question 30. What is black-box testing?

    1. Testing without knowledge of the internal code or design
    2. Testing performed by developers on their own code
    3. Testing only the database layer
    4. Testing with full access to source code
    Show answer

    Answer: A. Testing without knowledge of the internal code or design

    Black-box testers see only external behavior, which simulates an outside attacker.

  31. Question 31. What is the main risk of using outdated open-source libraries in a cloud application?

    1. The application will use more storage
    2. The provider will suspend the account
    3. Known vulnerabilities may be exploited by attackers
    4. Users will need to reinstall the app
    Show answer

    Answer: C. Known vulnerabilities may be exploited by attackers

    Unpatched components with public vulnerabilities are a common breach vector.

  32. Question 32. Which control reduces the risk of cross-site request forgery (CSRF) in cloud web apps?

    1. Larger server instances for the web tier
    2. Anti-CSRF tokens and SameSite cookie attributes
    3. Longer minimum password requirements
    4. Disabling HTTPS on internal endpoints
    Show answer

    Answer: B. Anti-CSRF tokens and SameSite cookie attributes

    CSRF tokens and SameSite cookies prevent browsers from sending authenticated requests forged by other sites.

  33. Question 33. A cloud app accepts file uploads from users. Which set of controls is MOST appropriate?

    1. Execute uploaded files to check they work
    2. Validate type and size, scan for malware, and store outside the web root
    3. Allow all file types to maximize flexibility
    4. Store uploads in a public bucket for performance
    Show answer

    Answer: B. Validate type and size, scan for malware, and store outside the web root

    Upload handling needs validation, malware scanning, and isolation to prevent code execution and data exposure.

  34. Question 34. What is the purpose of quality assurance (QA) in the secure SDLC?

    1. Verify functional and security requirements before release
    2. Replace peer code reviews entirely with testing
    3. Market the finished application to new customers
    4. Negotiate hosting contracts with cloud providers
    Show answer

    Answer: A. Verify functional and security requirements before release

    QA validates that the application behaves as intended, including its security requirements.

  35. Question 35. Which deployment practice reduces risk when releasing new versions of a cloud application?

    1. Gradual rollouts such as canary or blue-green deployments
    2. Deploying to all users at once without monitoring
    3. Disabling rollback capabilities
    4. Skipping testing to release faster
    Show answer

    Answer: A. Gradual rollouts such as canary or blue-green deployments

    Gradual releases limit the blast radius of defects and allow quick rollback.

CCSP is a registered mark of ISC2, Inc. These questions are original study material, not questions from the real exam.