Courseiva
Operations and MaintenanceeasyMultiple ChoiceObjective-mapped

PAS-C01 Operations and Maintenance Practice Question

A company is running SAP on AWS and wants to automate the deployment of new SAP application servers. The company uses AWS CloudFormation to manage infrastructure. Which AWS service should they use to run custom scripts during the CloudFormation stack creation to configure the SAP application?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

AWS Lambda

AWS CloudFormation supports custom resources, which can invoke AWS Lambda functions to run custom scripts during stack creation, making it suitable for configuring SAP applications. Option A is wrong because AWS Systems Manager Run Command is not directly integrated into CloudFormation as a custom resource; it can be invoked via Lambda or other means but not natively. Option B is wrong because AWS CodeDeploy is used for code deployments to existing instances, not for initial configuration during CloudFormation stack creation. Option D is wrong because AWS OpsWorks is a configuration management service using Chef/Puppet, not directly integrated with CloudFormation for running custom scripts.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • AWS Systems Manager Run Command

    Why it's wrong here

    Run Command is used after instance launch, not during CloudFormation stack creation.

  • AWS CodeDeploy

    Why it's wrong here

    CodeDeploy is for application updates, not initial setup.

  • AWS Lambda

    Why this is correct

    Lambda can be used as a custom resource in CloudFormation to run scripts.

  • AWS OpsWorks

    Why it's wrong here

    OpsWorks is a separate configuration management service.

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

About these practice questions

One of 1,616 original PAS-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PAS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PAS-C01 exam.