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
-
Question 1. Which risk category is ranked #1 in the OWASP Top 10 (2021)?
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.
-
Question 2. Which security testing technology runs inside the application at runtime and can detect and block attacks as they happen?
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.
-
Question 3. Which component commonly provides authentication, rate limiting, request validation, and logging in front of an organization's APIs?
Show answer
Answer: B. API gateway
API gateways centralize cross-cutting security controls for APIs, including authentication, throttling, schema validation, and monitoring.
-
Question 4. Which statement BEST contrasts SOAP and REST APIs?
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.
-
Question 5. In OAuth 2.0, what is the PRIMARY purpose of an access token?
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.
-
Question 6. Where should a cloud application store database passwords and API keys?
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.
-
Question 7. Which practice identifies known vulnerabilities in the open-source libraries a cloud application depends on?
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.
-
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?
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.
-
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?
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.
-
Question 10. Which control monitors SQL activity against databases in real time to detect suspicious queries, such as mass data extraction?
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.
-
Question 11. Which device specializes in inspecting and filtering XML traffic, such as SOAP messages, for malformed or malicious content?
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.
-
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?
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.
-
Question 13. Which authentication practice requires users to re-authenticate or use a stronger factor before a sensitive action, such as changing banking details?
Show answer
Answer: C. Step-up authentication
Step-up (adaptive) authentication raises assurance for high-risk operations without burdening users for routine actions.
-
Question 14. What is the BEST practice for permissions granted to individual serverless 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.
-
Question 15. In which SDLC phase are security requirements such as encryption and logging needs BEST defined?
Show answer
Answer: D. Requirements and design
Defining security requirements early is far cheaper than retrofitting controls after coding or deployment.
-
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?
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.
-
Question 17. What is the security benefit of signing container images and verifying signatures before deployment?
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.
-
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?
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.
-
Question 19. An application in a sandbox environment is tested with production-like data. What is the MOST important precaution?
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.
-
Question 20. Which is the MOST effective way to prevent injection flaws in a cloud application that queries a database?
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.
-
Question 21. Which OWASP project provides a detailed standard of security requirements for verifying web applications at different levels?
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.
-
Question 22. Which testing approach combines instrumentation inside a running application with active testing to find vulnerabilities?
Show answer
Answer: A. Interactive application security testing (IAST)
IAST agents observe code execution during tests, pinpointing vulnerable code paths with fewer false positives.
-
Question 23. What is the PRIMARY benefit of secure defaults in a cloud application?
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.
-
Question 24. In a federated identity setup for a cloud app, which party asserts the user's identity?
Show answer
Answer: A. The identity provider
The identity provider authenticates the user and issues assertions or tokens that the relying party trusts.
-
Question 25. Which practice BEST protects API keys used by a cloud-hosted mobile app backend?
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.
-
Question 26. What is the purpose of threat modeling during cloud application design?
Show answer
Answer: B. Identify threats and design mitigations before coding
Threat modeling finds design-level weaknesses when they are cheapest to fix.
-
Question 27. Which threat rating model scores threats on Damage, Reproducibility, Exploitability, Affected users, and Discoverability?
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.
-
Question 28. What does a software bill of materials (SBOM) enable for cloud applications?
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.
-
Question 29. Which is the MOST secure way to handle user sessions in a cloud web application?
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.
-
Question 30. What is black-box testing?
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.
-
Question 31. What is the main risk of using outdated open-source libraries in a cloud application?
Show answer
Answer: C. Known vulnerabilities may be exploited by attackers
Unpatched components with public vulnerabilities are a common breach vector.
-
Question 32. Which control reduces the risk of cross-site request forgery (CSRF) in cloud web apps?
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.
-
Question 33. A cloud app accepts file uploads from users. Which set of controls is MOST appropriate?
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.
-
Question 34. What is the purpose of quality assurance (QA) in the secure SDLC?
Show answer
Answer: A. Verify functional and security requirements before release
QA validates that the application behaves as intended, including its security requirements.
-
Question 35. Which deployment practice reduces risk when releasing new versions of a cloud application?
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.