Skip to main content

SY0-801 practice question · Security Architecture

An organization is building a serverless application from many small functions on a cloud provider's function service.

An organization is building a serverless application from many small functions on a cloud provider's function service. Which security consideration is the customer's responsibility in this model?

  • AScope a separate least-privilege execution role to each function and keep its secrets out of the code
  • BSchedule monthly patching of the guest operating system that hosts each function's runtime
  • CShare one broad execution role across all functions so permissions stay consistent and easy to audit
  • DHarden each function's host by disabling unused services and closing listening ports on the server
Show the answer and explanation

Correct answer: A) Scope a separate least-privilege execution role to each function and keep its secrets out of the code

Serverless moves OS and host maintenance to the provider. The customer's main task is securing each function, especially a tightly scoped execution role per function and safe secret handling.

Why each option is right or wrong

  • A) Correct. In serverless, the customer controls each function's permissions (its execution role), code, dependencies and secrets. Giving each function only the permissions it needs limits the damage if one function is compromised.
  • B) Incorrect. In a managed function service, the provider maintains and patches the underlying operating system and runtime. The customer doesn't patch it.
  • C) Incorrect. A shared, broad role gives every function permissions it doesn't need, so compromising any one function exposes everything the role can reach. This violates least privilege.
  • D) Incorrect. Serverless customers have no access to the host servers. Host hardening is the provider's responsibility, so the customer's focus moves to function permissions, code and configuration.
Exam domain
Security Architecture · 19% of SY0-801
Question type
Multiple choice (one answer)

Practise the full SY0-801 exam

This question is one of a small free sample from the CertRidge SY0-801 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with CompTIA; never copied from the real exam.

Worth reading: Security+ passing score (750/900), 750 on a 100–900 scale for SY0-701, SY0-801 and the retired SY0-601, and why it isn't 83%.